Remo Liechti wrote:
Hi all
I'm new to XSL and FOP and all that stuff. I need to create a PDF out of
a docbook. My docbook looks like:

<book lang="en">
        <bookinfo>
                <title>myTitle</title>
        </bookinfo>


        <chapter>
                <title>chapter one</title>
                <simpara>text text text</simpara>
        </chapter>
</book>

I run FOP like this:
Fop -xsl C:\xsl\fo\docbook.xsl -xml "myDocBook.xml" -pdf "myPdf.pdf"

It creates a PDF like this(I attached it to this mail):

- First page with the title -> This is ok
- Page 2: title again, but small. Nothing more on the page. -> not ok!
- page 3: Just empty. Why's that? -> NOT OK
- page 4: The index of the book -> NICE!
- page 5: My Text -> ok


My questions are:

1. How do tell the XSL to not create the page 2 with the small title and
not to create an empty page?

The empty page 3 might be because the attribute force-page-count="auto" is present on the page-sequence. This needs to forcae-page-count="no-force". I've no idea how to do that in Docbook. I also don't know why the 2nd page appears. Have you asked these questions on the docbook forum too?


2. How do I tell the XSL to create Bookmarks in the PDF?

I know how to do this in raw XSL-FO, again no idea how in docbook XML, sorry! The exact method used to creating bookmarks is different depending on which version of FOP you are using?


3. How Do I create header and footer for this document? (I think this is
a docbook issue). But the header and footer should not appear on the
first page as well as not on the index page.

This is possible using raw XSL-FO constructs, but I don't know how to do it in docbook XML.

Sorry I can't help you more, but I get the feeling most of yopur questions would be better suited on a docbook mailing list.

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to