Subject: XML to PDF problems........... From: "Joaquin Bravo" <jbravo@xxxxxxxxxx> Date: Thu, 4 Feb 1999 14:45:46 +0100 |
Hello I, m trying to convert a XML document to PDF using the FOP by James Tauber, but it is imposible to me. The steps I, m following are these: test2.xml ..................... <?xml version="1.0"?> <doc> <para>Este es el primer parrafo</para> <para>Este es el segundo parrafo</para> </doc> test2.xsl ...................... <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns:fo="http://www.w3.org/TR/WD-xsl/FO" result-ns="fo"> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="para"> <fo:block> <xsl:apply-templates/> </fo:block> </xsl:template> </xsl:stylesheet> I play XT: xt test2.xml test2.xsl test2.fob and return: <fo:block xmlns:fo="http://www.w3.org/TR/WD-xsl/FO">Este es el primer parrafo</fo:block> <fo:block xmlns:fo="http://www.w3.org/TR/WD-xsl/FO">Este es el segundo parrafo</fo:block> I play FOP: java com.jtauber.fop.FOP test2.fob test2.pdf But, It always returns the following message: James Tauber's FOP 0.5.1 java.lang.NullPointerException at com.jtauber.fop.Document.setfont(Document.java:242) at com.jtauber.fop.fo.FObj.start(FObj.java:30) at com.jtauber.fop.fo.Block.start(Block.java:17) at com.jtauber.fop.Document.startElement(Document.java:93) at com.jclark.xml.sax.Driver.startElement(Driver.java) at com.jclark.xml.parse.EntityParser.parseContent(EntityParser.java) at com.jclark.xml.parse.EntityParser.parseDocumentEntity(EntityParser.ja va) at com.jclark.xml.parse.DocumentParser.parse(DocumentParser.java) at com.jclark.xml.parse.base.ParserImpl.parseDocument(ParserImpl.java) at com.jclark.xml.sax.Driver.parse(Driver.java) at com.jtauber.fop.Document.go(Document.java:166) at com.jtauber.fop.FOP.main(FOP.java:18) Could anyone tell me what I, m doing wrong? I,m working with tre last XT version thank you very much XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Add my own Flow Objects, parul agarwal | Thread | Re: XML to PDF problems..........., Lars Marius Garshol |
Re: Venting, Paul Prescod | Date | RE: Question, Vun Kannon, David |
Month |