[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem with FOP
----- Original Message ----- From: Sebastian Rahtz <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> > You must have some formatting object containers around your > output. You are just diving straight into text, which isn't allowed. I > am not sure what a minimal set is (ie whether just > <fo:flow>..</fo:flow> is legal, or whether you need a fo:block etc) The minimal set is quite a bit larger. As far as I can tell, this is the minimal FO tree: <fo:root xmlns:fo="http://www.w3.org/XSL/Format/1.0"> <fo:layout-master-set> <fo:simple-page-master page-master-name="master"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence> <fo:sequence-specification> <fo:sequence-specifier-single page-master-name="master"/> </fo:sequence-specification> <fo:flow> <fo:block>Hello World!</fo:block> </fo:flow> </fo:page-sequence> </fo:root> > The fact that FOP gives a Java NullPointerException is presumably just > temporary. It'll give you sensible errors one of these days, I expect. Sometimes it has been know to give sensible errors but it depends on the number of prime factors in the number of seconds past the hour. I'll add it to my list of bug fixes. > I regret to say that the PassiveTeX stuff I announced last week > probably *would* process your file! At least it does good error recovery! James -- James Tauber / jtauber@xxxxxxxxxxx / www.jtauber.com Maintainer of : www.xmlinfo.com, www.xmlsoftware.com and www.schema.net XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|