473,396 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

trying to get started with docbook/xml + xmlto/xsltproc

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&#xA0;1.&#xA0;Hello...

?
! Emergency stop.
...

l.304 ..." hyphenation-remain-character-count="2">
Chapter&#xA0;1.&#xA0;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
Apr 14 '06 #1
1 2652
I'm not familiar with the "xmlto" tool. You might want to try doing this
in separate stages -- use a standard xslt stylesheet for converting
docbook-xml to xsl-fo, then put that through an xsl-fo rendering tool
such as fop to obtain a pdf file. I think that would avoid the side
jaunt through LaTeX.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Apr 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Dr. Laurence Leff | last post by:
I am having trouble doing the basics with xmlto on Redhat to convert DocBook XML into the various files. I believe the problem is the first line on the files: Here is starter file (notes.xml):...
2
by: Simon Strandgaard | last post by:
I am trying to understand how to create a 'catalog.xml' file for my docbook-xml documents. If I understand correct a local catalog.xml file can both avoid hardcoding in makefiles (portability),...
0
by: Dr. Laurence Leff | last post by:
I am having trouble with tables under docbook. I am using xmlto under Redhat Linux. When I process a simple table as below, I get an error message about the Unit of Measure. If I change the...
2
by: Yarco | last post by:
I'm learning for docbook under win32. I download: openjade-1_3_1-2-bin docbook-xml-4.4 docbook-dsssl-1.79 ldp.dsl And then copy all openjade bin\ to win32 system\, and then create a directory...
12
by: Jim Anderson | last post by:
This is my first attempt at XML documentation. I'm trying to get started with docbook so I can put a set of documentation into docbook tags. I'm using 'XML In A Nutshell" and "DocBook The...
0
by: Dubravko Gorupic | last post by:
Hi there. I'm using linux with xsltproc/docbook2html/xmleditor(xmlmind) to generate html/javahelp from docbook xml. If I put <refentry> inside of <chapter> tag, all 3 mentioned above generate...
5
by: Darel Finkbeiner | last post by:
This may be the wrong group, so let me know. My "problem" is this: I am writing my commentary in DocBook 5 and using the program xsltproc and the docbook5 XSL stylesheets to produce XHTML...
1
by: Arndt Jonasson | last post by:
The way I read the XPath 1.0 specification, queries like "//*/ text()/.." and "//*/child::text()" should be valid. xmllint seems to agree with me, but xsltproc gives syntax errors for those...
0
by: Tommy Nordgren | last post by:
Do anyone on this list know of a Python module for generating DocBook programlisting elements for programming language source code merked with special comments. I want to write a programming book,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.