Why not? The error message tells you exactly what is wrong and where. It's a ValidationException which means your XML/XSL-FO isn't valid. The error message says: "fo:page-sequence is not a valid child element of fo:flow." (on line 1, position 56740)
That means there's an fo:page-sequence element as a child of an fo:flow element and that is illegal. And now you need to find out why and correct the XSLT. Given that I see the term "docbook" in the filename it could also be that your DocBook XML is invalid in the first place and you get a bad result because of that. But maybe there's a bug in the DocBook XSLTs which is less likely. I suggest validating your XMLs (i.e. "my.book") first. On 14.01.2008 05:48:09 Travis Staloch wrote: > Hello, > > I'm trying to use fop along with xsltproc to create a pdf from docbook xml. > xsltproc successfully creates an fo document with the command: > xsltproc /usr/share/sgml/docbook/xsl-stylesheets-1.73.2-2.fc8/fo/docbook.xsl > my.book > sf.fo > > However, when I run the fop command: > fop sf.fo -pdf sf.pdf > I get the error: > SEVERE: Exception > javax.xml.transform.TransformerException: > org.apache.fop.fo.ValidationException: > file:///home/trav/open/SportsFeed/doc/help/docbook/sf.fo:1:56740: > Error(1/56740): fo:page-sequence is not a valid child element of fo:flow. > at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) > at > org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) > at org.apache.fop.cli.Main.startFOP(Main.java:166) > at org.apache.fop.cli.Main.main(Main.java:197) > > Can anyone provide any guidance on what might be going wrong? I have fop > 0.94 with java version "1.4.2_16". I've attached the fo document. When I > looked at the fo document, I couldn't find any fo:page-sequence elements > which were children of fo:flow. So I'm not really sure what the problem is. > > Thanks for any advice, > > Travis Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
