Probably obvious, but I'm assuming you mean you used "force-page-count" and not "forcae..."

Glen

Remo Liechti wrote:

Hi Chris
Thanks a lot for the answers.

I think the only problem I have now is to pass the parameters to the XSL
document.

Fop -xsl C:\xsl\fo\docbook.xsl -xml "myDocBook.xml" -pdf "myPdf.pdf"

How do I pass this parameter forcae-page-count="no-force". To this xsl?
I Tried a lot of ways, nothing worked... like:

Fop -xsl C:\xsl\fo\docbook.xsl forcae-page-count="no-force" -xml
"myDocBook.xml" -pdf "myPdf.pdf"


Any idea?

Remo




-----Original Message-----
From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 9. August 2006 15:18
To: [email protected]
Subject: Re: PDF generation

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]

This message may contain legally privileged or confidential information and is 
therefore addressed to the named persons only. The recipient should inform the 
sender and delete this message, if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity and punctuality of 
this message. The sender has activated an automatic virus scanning, but does 
not guarantee the virus free transmission of this message.

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




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

Reply via email to