Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26095 - docbook2pdf doesn't work
Summary: docbook2pdf doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-06 19:51 UTC by Ollie Rutherfurd
Modified: 2003-09-16 04:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output from docbook2pdf (output,56.49 KB, text/plain)
2003-08-22 02:14 UTC, Henrik Brix Andersen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ollie Rutherfurd 2003-08-06 19:51:50 UTC
I've tried converting several minimal docbook xml documents using docbook2pdf,
and it doesn't work.

Using stylesheet: /usr/share/sgml/docbook/utils-0.6.12/docbook-utils.dsl#print
Working on: /home/oliver/tmp/TaskList/foo.xml
jade:/home/oliver/tmp/TaskList/foo.xml:4:64:E: URL not supported by this version

Here's the contents of "foo.xml":

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article 
        PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
        "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
<article>
<title>Article Title</title>
<para>Here's a paragraph</para>
</article>

I tried using "4.2" and "4.1" version of the DocBook XML DTD, but I got similar
errors for all of them.  A "foo.tex" file is created, but no pdf.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
Was hoping for a pdf file ;-).
Comment 1 Henrik Brix Andersen 2003-08-22 02:14:43 UTC
Created attachment 16454 [details]
Output from docbook2pdf

I get the same error as above plus a lot of other error when running
'docbook2pdf foo.xml' - attached a copy of the output.
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2003-09-13 03:00:07 UTC
[from /usr/share/doc/docbook-sgml-utils-0.6.12-r1/html/jw.html] 
"For the moment, jw does not handle XML, but only SGML."

(the docbook2* are wrappers around jw), not sure how old the documentation is though, but looks like it's unsupported, you'll see it only lists the sgml catalogs in the list.
Comment 3 Mike Gardiner (RETIRED) gentoo-dev 2003-09-16 03:02:45 UTC
okay, i've been playing around a lot trying to get this to work, but it seems to be refusing. it needs to do a 2 stage conversion to get to pdf, docbook -> tex -> pdf, and it completes the tex conversion, just wont go to pdf. all the other tools seem to work, which is annoying.
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2003-09-16 04:08:37 UTC
okay, docbook2pdf works fine for me on both XML/SGML DocBook files. the trick is to ensure you have _no errors_ at all. for example the line

jade:/home/brix/tmp/foo.xml:4:64:E: URL not supported by this version

in the attachment in comment #1 will cause openjade to return 1, and docbook2pdf (which is really just a simple bash wrapper) needs it to return 0 before it will proceed on to pdflatex.

here's the correct DocBook for the example in comment #0.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN">
<article>
<articleinfo>
<title>Article Title</title>
</articleinfo>
<para>Here's a paragraph</para>
</article>

if you can provide a concrete log where your DocBook file has _no_ errors, yet docbook2pdf still doesnt work, then we'll reopen. until then this is invalid.