Re: Converting DocBook into PDF
* Rico [EMAIL PROTECTED] [2006-06-06 03:41:50 +0200]: I am working on a documentation project and needs to convert some DocBook files into several formats. I have installed xmlto amongst others and I can convert the DocBook into XHTML, TXT but not into PDF or PS. This doesn't really help you with your xmlto problem, but I use the following toolchain to produce PDF from DocBook - write the XML file against the DocBook DTD - validate the file with xmllint --valid --noout foo.xml xmllint is part of libxml2 (Theoretically, this step is not necessary if you write proper XML, but xsltproc does not checks for valid XML (only well formed), and if you pass it non-valid DocBook XML, it spits out all sort of cryptic errors.) - use xsltproc to convert to HTML: xsltproc --output foo.xhtml /usr/local/share/xsl/docbook/xhtml/docbook.xsl foo.xml (xsltproc is part of libxslt) - use xsltproc to convert to FO: xsltproc --stringparam fop.extensions 1 --output foo.fo /usr/local/share/xsl/docbook/fo/docbook.xsl foo.xml - use fop to convert FO to DPF: fop foo.fo foo.pdf You can find libxml2, libxslt, fop, docbook-xml, and docbook-xsl in ports. Thomas -- N.J. Thomas [EMAIL PROTECTED] Etiamsi occiderit me, in ipso sperabo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Converting DocBook into PDF
N.J. Thomas wrote: * Rico [EMAIL PROTECTED] [2006-06-06 03:41:50 +0200]: I am working on a documentation project and needs to convert some DocBook files into several formats. I have installed xmlto amongst others and I can convert the DocBook into XHTML, TXT but not into PDF or PS. This doesn't really help you with your xmlto problem, but I use the following toolchain to produce PDF from DocBook - write the XML file against the DocBook DTD - validate the file with xmllint --valid --noout foo.xml xmllint is part of libxml2 (Theoretically, this step is not necessary if you write proper XML, but xsltproc does not checks for valid XML (only well formed), and if you pass it non-valid DocBook XML, it spits out all sort of cryptic errors.) - use xsltproc to convert to HTML: xsltproc --output foo.xhtml /usr/local/share/xsl/docbook/xhtml/docbook.xsl foo.xml (xsltproc is part of libxslt) - use xsltproc to convert to FO: xsltproc --stringparam fop.extensions 1 --output foo.fo /usr/local/share/xsl/docbook/fo/docbook.xsl foo.xml - use fop to convert FO to DPF: fop foo.fo foo.pdf You can find libxml2, libxslt, fop, docbook-xml, and docbook-xsl in ports. Thomas Thank you very much! I will use that solution then! Rico. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Converting DocBook into PDF
Hi, I am working on a documentation project and needs to convert some DocBook files into several formats. I have installed xmlto amongst others and I can convert the DocBook into XHTML, TXT but not into PDF or PS. Trying to do so I get the error: $xmlto --skip-validation pdf My_DocBook.xml Making portrait pages on USletter paper (8.5inx11in) XPath error : Undefined variable $ulink.footnotes != 0 ^ error: file file:///usr/local/share/xsl/docbook/fo/footnote.xsl line 94 element number Failed to compile predicate /usr/local/bin/xmlto: line 379: 17329 Segmentation fault: 11 (core dumped) xsltproc $XSLTOPTS -o $XSLT_PROCESSED $STYLESHEET $INPUT_FILE /usr/local/share/xmlto/format/docbook/../fo/pdf: Can't open /usr/local/share/xmlto/format/docbook/../fo/pdf: No such file or directory How can I make xmlto work? I used this on a GNU/Linux system with great succes and would like to use the same tool since it is very easy and it renderes greatly. If not possible how can it be done otherwise. Best and kind regards, Rico ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Converting DocBook into PDF
On Tue, Jun 06, 2006, Rico wrote: Hi, I am working on a documentation project and needs to convert some DocBook files into several formats. This is normally done with openjade in conjunction with tex. I would go to http://www.docbook.org for tools. Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 ``Good luck to all you optimists out there who think Microsoft can deliver 35 million lines of quality code on which you can operate your business.'' -- John C. Dvorak ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]