W3C home > Mailing lists > Public > www-xsl-fo@w3.org > January 2012

Generating pdf from xsl and xml file

From: <prasmitapansare@gmail.com>
Date: Tue, 3 Jan 2012 01:03:31 -0800 (PST)
Message-ID: <33070454.post@talk.nabble.com>
To: www-xsl-fo@w3.org
I am trying to generate PDF from input xml and xsl file but i am getting
below error, even if i remove empty tags for fo:table-cell. i am getting
wrong output. I am using FOP1.0 version.

SEVERE: Exception
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: "fo:table-cell" is missing child
elements. Required content model: marker* (%block;)+ (No context info
available)
        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:174)
        at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: "fo:table-cell" is missing child
elements. Required content model: marker* (%block;)+ (No context info avail
able)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1410)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:392)
        at
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.java:246)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java: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:299)
        ... 3 more
-- 
View this message in context: http://old.nabble.com/Generating-pdf-from-xsl-and-xml-file-tp33070454p33070454.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Tuesday, 3 January 2012 10:58:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 January 2012 10:58:27 GMT