473,508 Members | 2,250 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can't create PDFs from DocBook XML

Hi all,

I'm trying to transform a simple test document to PDF using
Passivetex. I'm not sure where to look for the error, but something in
the toolchain doesn't cooperate, resulting in the following TeX error
message:

! Missing number, treated as zero.
<to be read again>
p
l.2 ...egy="character-by-character" language="en">
<fo:layout-master-set><fo:...

The start of the FO file up to what the error message points to looks
like this:

<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="serif" font-s
ize="10pt" text-align="justify" line-height="normal" font-selection-strategy="ch
aracter-by-character" language="en"><fo:layout-master-set>

that is, it chokes on the first element. The transformation to HTML
works just fine BTW.

My setup is:

FreeBSD 4.7
docbook-xsl-1.61.3_1
Passivetex 1.21
xmltex 1.9
xsltproc --version says: Using libxml 20428, libxslt 10023 and libexslt 714
(same result with Saxon though)

The sequence of commands to reproduce the problem:

xsltproc /usr/local/share/xsl/docbook/fo/docbook.xsl test1.xml >
test1.fo

pdfxmltex test1.fo

A test document to reproduce the problem:

--8<----
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"/usr/local/share/xml/docbook/4.1.2/docbookx.dtd">
<book>
<title>Test document</title>
<chapter>
<title>Example</title>
<para>This is a para.</para>
</chapter>
</book>
--8<----

Any hints? Am I missing something obvious?

TIA
Markus
Jul 20 '05 #1
0 1352

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

Similar topics

3
2706
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):...
0
1500
by: Thomas Kellerer | last post by:
Hello, I'm not sure if this is the right newsgroup, but I feel it is more approriate then comp.lang.java.* I'm writing documentation with DocBook and I'm converting the xml file through an...
3
4054
by: ZJT | last post by:
What are the ways and corresponding tools to transform a docbook document to a pdf document? Thanks a lot!
2
3605
by: Matti Järvinen | last post by:
Hi I am trying to find a tool for converting XML Docbook to format that is recognized by microsoft word. I have been trying combinations such as (xsltproc, jfor) and (xalan, jfor), but the...
2
3649
by: Antonio Amato | last post by:
Hi, I want to transform XML docbook to HTML with docbook stylesheet (docbook-xsl-1.67.0.zip). I'm using javax.xml.transform.TransformerFactory to apply XSLT to XML but it generates an...
1
1343
by: Daniel Meilleur | last post by:
Hi, I try to use a customization stylesheet following example given by B.Stayton (http://www.sagehill.net/docbookxsl/CustomGentext.html#CustomGenText) i.e.: <?xml version='1.0'?>...
7
8079
by: mike p. | last post by:
I have a docbook xml file, and am using standard docbook 1.61.3 xsl stylesheets to do xhtml transform. Transform works fine when using MSXML. When I try to do the following using asp.net 1.1: ...
3
2133
by: Otmar Ganahl | last post by:
Hi! In my application I transform a docbook file to a html view using the webcontrol "Xml" (with a xsl).It works fine, except the using of the tag "fileref" in the docbook-file will cause an...
2
3328
by: Joseph Kesselman | last post by:
Since the recent "Docbook on Windows" question brought this up... I did a bit of checking on the current status of these schemas, what they're intended for and how they interrelate. IBM's Robert...
0
7331
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7391
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7501
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...
1
5056
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4713
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3204
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1564
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
768
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
424
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.