[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] RE: [XSL-FO] RTF Limitation


Subject: [xsl] RE: [XSL-FO] RTF Limitation
From: "Jean-Pierre Lamon" <jpl@xxxxxxxxxx>
Date: Sat, 14 Sep 2013 08:39:28 +0200

Hi all,

I made a fo stylesheet that works pretty well for PDF output (xslt 1.0).
But if I want to generate my doc in RTF with the same stylesheet, Im
getting an error for this line (388):

<fo:static-content flow-name="Header-even">

Are FOP rules different for PDF or RTF output?

Thx
JP

FOP messages :

SEVERE: org.xml.sax.SAXParseException; systemId:
file:/C:/Users/Public/Documents/ezpump/XSL/TOC_BHS/fo_List_with_table_of_con
tent_BHS.xsl; lineNumber: 388; columnNumber: 44;
java.lang.NullPointerException
sept. 14, 2013 8:20:37 AM org.apache.fop.cli.Main startFOP
SEVERE: Exception
org.apache.fop.apps.FOPException: java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException
                at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
                at
org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
                at org.apache.fop.cli.Main.startFOP(Main.java:177)
                at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: javax.xml.transform.TransformerException:
java.lang.NullPointerException
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2416)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2281)
                at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1367)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
709)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1284)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1262)
                at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
                ... 3 more
Caused by: java.lang.NullPointerException
                at
org.apache.fop.render.rtf.RTFHandler.startPageSequence(RTFHandler.java:221)
                at
org.apache.fop.fo.pagination.PageSequence.startOfNode(PageSequence.java:119)
                at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav
a:325)
                at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175)
                at
org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java
:204)
                at
org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
                at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler
..java:348)
                at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler
..java:318)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1315)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                ... 13 more

---------

; SystemID:
file:/C:/Users/Public/Documents/ezpump/XSL/TOC_BHS/fo_List_with_table_of_con
tent_BHS.xsl; Line#: 388; Column#: 44
javax.xml.transform.TransformerException: java.lang.NullPointerException
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2416)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2281)
                at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1367)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
709)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1284)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1262)
                at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
                at
org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
                at org.apache.fop.cli.Main.startFOP(Main.java:177)
                at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: java.lang.NullPointerException
                at
org.apache.fop.render.rtf.RTFHandler.startPageSequence(RTFHandler.java:221)
                at
org.apache.fop.fo.pagination.PageSequence.startOfNode(PageSequence.java:119)
                at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav
a:325)
                at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175)
                at
org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java
:204)
                at
org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
                at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler
..java:348)
                at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler
..java:318)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1315)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                ... 13 more
---------
java.lang.NullPointerException
                at
org.apache.fop.render.rtf.RTFHandler.startPageSequence(RTFHandler.java:221)
                at
org.apache.fop.fo.pagination.PageSequence.startOfNode(PageSequence.java:119)
                at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.jav
a:325)
                at
org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:175)
                at
org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java
:204)
                at
org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:277)
                at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler
..java:348)
                at
org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler
..java:318)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1315)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)
                at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)
                at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2281)
                at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1367)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
709)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1284)
                at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1262)
                at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
                at
org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
                at org.apache.fop.cli.Main.startFOP(Main.java:177)
                at org.apache.fop.cli.Main.main(Main.java:208)


Parsing ok. Trying to generate PDF. See messages if errors


Current Thread