I am trying to get started with using Docbook/xml using free tools and
am stymied in generating printable documentation from even the simplest
source. I have attempted to generate a PDF using xmlto (which I guess is
a shell interface to xsltproc) for the docbook source on a variety of
platforms: Debian GNU/Linux stable, Gentoo GNU/Linux, FreeBSD, and Cygwin.
In no case have I been successful, and the error messages are certainly not
helpful.
Minimal docbook document:
-------------------------
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"/usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd">
<book>
<bookinfo>
<title>Hello, world</title>
</bookinfo>
<chapter>
<title>Hello, world</title>
<para>This is my first DocBook file.</para>
</chapter>
</book>
-------------------------
Debian GNU/Linux stable (sarge):
--------------------------------
10 isis$ xmlto pdf test.xml
Making portrait pages on letter paper (215.9 mm x 279.4 mm)
This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5)
entering extended mode
(./tmp.fo{/usr/share/texmf/pdftex/config/pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, basque, czech, icelandic, slovak, slovene, loaded.
xmltex version: 2002/06/25 v1.9 (Exp):
(/usr/share/texmf/tex/xmltex/config/xmltex.cfg)
No File: tmp.cfg (/usr/share/texmf/tex/xmltex/passivetex/fotex.xmt)
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/xmltex/passivetex/fotex.sty
)
No file tmp.aux.
(/usr/share/texmf/tex/latex/cyrillic/t2acmr.fd)
[more stuff snipped for brevity]
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.304 ..." hyphenation-remain-character-count="2">
Chapter 1. Hello...
?
! Emergency stop.
...
l.304 ..." hyphenation-remain-character-count="2">
Chapter 1. Hello...
! ==> Fatal error occurred, the output PDF file is not finished!
Transcript written on tmp.log.
Gentoo GNU/Linux:
-----------------
203 nephthys$ xmlto pdf test.xml
Making portrait pages on A4 paper (210mmx297mm)
This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5)
(./tmp.fo{/usr/share/texmf/pdftex/config/pdftex.cfg}
xmltex version: 2002/06/25 v1.9 (Exp):
(/usr/share/texmf/tex/xmltex/xmltex.cfg)
! I can't find file `tmp.cfg'.
\@filef@und ->\jobname .cfg
....
l.1
<?xml version="1.0"?>
Please type another input file name:
! Emergency stop.
\@filef@und ->\jobname .cfg
....
l.1
<?xml version="1.0"?>
No pages of output.
Transcript written on tmp.log.
FreeBSD:
---------------------------------------
nephthys% xmlto pdf test.xml
Making portrait pages on USletter paper (8.5inx11in)
/usr/local/share/xmlto/format/docbook/../fo/pdf: Can't open /usr/local/share/xmlto/format/docbook/../fo/pdf: No such file or directory
(I don't have a Windows machine handy at the moment, so I can't paste
the error messages Cygwin produces, but it doesn't work there either.)
So, is *anyone* using this toolchain to produce docbook documentation?
I want to stick with free tools and avoid Java if at all possible.
- Will