Thanks a lot for your help. Now I can open the pdf in both IE and Netscape
browsers.
Now I am trying to include a template for the table inside the stylesheet
used for pdf formatting. I have another stylesheet which converts the xml
to html and this works perfectly well. I have written the stylesheet to
convert the xml to pdf very similar to this one. But I get a
NullPointerException while using this. Can you please help me with this
stylesheet now. I have attached both the html and pdf stylesheets. I need
your help in writing the template for the element named "cms:table".
The exception thrown is:
java.lang.NullPointerException
at org.apache.fop.fo.flow.TableRow.layout(Compiled Code)
at org.apache.fop.fo.FObjMixed.layout(Compiled Code)
at org.apache.fop.fo.FObjMixed.layout(Compiled Code)
at org.apache.fop.fo.flow.Block.layout(Compiled Code)
at org.apache.fop.fo.flow.Flow.layout(Compiled Code)
at org.apache.fop.fo.pagination.PageSequence.format(Compiled
Code)
at org.apache.fop.fo.pagination.Root.format(Compiled Code)
at org.apache.fop.fo.FOTreeBuilder.format(Compiled Code)
at org.apache.fop.apps.Driver.format(Compiled Code)
at org.apache.cocoon.formatter.FO2PDFFormatter.format(Compiled
Code)
at org.apache.cocoon.Engine.handle(Compiled Code)
at org.apache.cocoon.Cocoon.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
com.netscape.server.http.servlet.NSServletRunner.Service(Compiled Code)
at
com.netscape.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
at
com.netscape.server.http.servlet.NSServletSession.internalRedirect(Compiled
Code)
at
com.netscape.server.http.servlet.NSRequestDispatcher.forward(Compiled Code)
at emscmf.cmf.RequestHandler.sendToCocoon(Compiled Code)
at emscmf.cmf.RequestHandler.processNormalFlow(Compiled Code)
at emscmf.cmf.RequestHandler.doPost(Compiled Code)
at emscmf.cmf.RequestHandler.doGet(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
com.netscape.server.http.servlet.NSServletRunner.Service(Compiled Code)
-----Original Message-----
From: Bjarne Jensen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: SV: PDF format not seen in Internet Explorer browser
Have you tried to fake the IE5 by making the url in the location end with
".pdf"? You can du that with an unused cgi-variable like
"content.xml?unused=.pdf". If that dosen't work I don't know what is wrong.
/Bjarne
-----Oprindelig meddelelse-----
Fra: Veeramani S [mailto:[EMAIL PROTECTED]]
Sendt: 12. juni 2001 08:40
Til: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Emne: PDF format not seen in Internet Explorer browser
Hi All,
> I have an xml file which has to be converted to PDF format. The PDF file
> can be opened or viewed only when I work with the Netscape Communicator
> 4.51 and above versions. But I am not able to view or open the PDF file
> when working with Internet Explorer 5 browser. I am running this XML file
> using IPLANET webserver. I am using cocoon's xslt ptocessor to convert to
> PDF format. I have attached both the xml and the xsl file used to
> tranform it. Somebody please help me.
>
> regards,
> Hema.
>
> <<subpdf.xml>> <<subpdf.xsl>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
final-html.xsl
final-pdf2.xsl
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>