Generate pdf from a Docbook 5

View: New views
2 Messages — Rating Filter:   Alert me  

Generate pdf from a Docbook 5

by fips :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Forum

I am a newbie at Docbook. I started to write a book using the "XML mind XML (xxe)" editor with the Docbook 5 format (I have verified the output using RELAXNG 5.0CR5 and the relames.jar together with the docbookxi.rng).
Everything seams good (valid) in my multi-file document. There are no problems with XML and RELAXNG at all.

Now, I wonder what is the standard way to generate Adobe pdf Files as output.

Most sites tell me, that it is not very different from the way "docbooc 4" documents had to go.
Many many pages explain the difference between "docbook 4" and "docbook 5".
Thats all great.

But I started with "docbook 5" straight away and had never used (and am not willing to use) "docbook 4".

Now I am looking for an explanation how to transform my document to pdf.

a) which files and tool do I need?
c) which process my files have to go through?


PS:
1) Any good description is wellcome. I don't prefer latex or FO.
2) At the moment I just want to have a standard "book". Any configuration of fonts, logos and page layout is secondary. I will learn about that later.

Thanks for any hint

fips

Re: Generate pdf from a Docbook 5

by Brett Leber :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 8/23/2007 10:22 AM, fips wrote:
> Now I am looking for an explanation how to transform my document to pdf.
>
> a) which files and tool do I need?
> c) which process my files have to go through?

I am using Apache FOP 0.93, together with the DocBook 5 namespace-aware
stylesheets and xsltproc (an xslt processor), to transform DocBook 5 XML
to PDF. To do this, you will need the DocBook stylesheets
(docbook-xsl-ns-1.73.1 is the most recent release) [1], Apache FOP [2],
and an XSLT engine [3].

My process for transforming is:

1. Transform DocBook 5 XML to XSL-FO, the interim format needed for a
transformation to PDF, using xsltproc and the DocBook FO stylesheets. (I
have a customization layer stuck in here, but that you will only need
when you are customizing the output.)
2. Transform the FO file to PDF using Apache FOP.

To get these tools set up, see Bob Stayton's topic on this from his
excellent book:
http://www.sagehill.net/docbookxsl/ToolsSetup.html

Brett

[1] http://docbook.sf.net/files/xsl-ns/latest
[2] http://xmlgraphics.apache.org/fop/download.html
[3] http://www.sagehill.net/docbookxsl/InstallingAProcessor.html

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...