[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Apache FOP...
Carlos wrote: >Same thing happened to me. Norm looked at the document and realized that >it's not wellformed XML to begin with. Run it through a validating parser >and see what it tells you. > Dear Carlos, I checked my documents with Xerces-J version 2.0.0beta4, and it says that they're well formed and valid. I used the sample utility sax.Counter with the "-v" option to turn on validation. Here is a short document (named a.xml) which is valid but can't be converted to PDF: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE article SYSTEM "/usr/local/lib/docbookx/docbookx.dtd"> <article> <articleinfo> <abstract> <simpara> Trivial notes... </simpara> </abstract> <author> <firstname>Andrea</firstname> <surname>Giuliano</surname> </author> </articleinfo> <section> <title>DocBook</title> <para> Very interesting, but you need much time to waste... </para> </section> </article> Now, see what happens: $ java sax.Counter -v a.xml a.xml: 2716 ms (10 elems, 0 attrs, 66 spaces, 107 chars) $ java org.apache.xalan.xslt.Process -IN file:///home/giuliano/iccu/appunti/sparsi/a.xml -XSL file:///usr/local/lib/docbook-xsl-1.48/fo/docbook.xsl -OUT a.fo file:///usr/local/lib/docbook-xsl-1.48/fo/docbook.xsl; Line 94; Column 16; Making portrait pages on USletter paper (8.5inx11in) $ fop a.fo a.pdf [INFO]: FOP 0.20.2 [INFO]: building formatting object tree [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [ERROR]: property 'master-reference' ignored [WARN]: property - "last-line-end-indent" is not implemented yet. [ERROR]: 'master-name' for 'fo:page-sequence'matches no 'simple-page-master' or 'page-sequence-master' The result of the above session if a 15 bytes long file name a.pdf! I don't know what to do now! Anyway, thanks a lot for your answer. -- Andrea Giuliano, Ph. D. Virtual System Administrator Istituto Centrale per il Catalogo Unico (ICCU) Viale Castro Pretorio 105, Rome - ITALY Tel. +3964989509
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC