This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] fo-stylesheets: Bug in bibliography handling?
- From: Bob Stayton <bobs at sco dot com>
- To: Gisbert Amm <gia at webde-ag dot de>
- Cc: "'docbook-apps at lists dot oasis-open dot org'" <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 5 Sep 2003 14:55:59 -0700
- Subject: Re: [docbook-apps] fo-stylesheets: Bug in bibliography handling?
- References: <74ADFA8C453ED611A71E00508BBBA135D9F030@exchange1.cinetic.de>
On Fri, Sep 05, 2003 at 05:30:00PM +0200, Gisbert Amm wrote:
> Hi list,
>
> consider the following document structure:
>
> <book>
> <bookinfo>... (some info)</bookinfo>
> <part id="somepart"><title>Some Part</title>
> ... (some_chapters)
> </part>
> <part id="appendices"><title>Appendixes</title>
> ... (some appendices)
> <bibliography id="literatur"><title>Literatur</title>
> ... (some bibliodivs)
> </bibliography>
> <index/>
> </part>
> </book>
>
> Tihs is valid Docbook and chunked HTML is produced as expected. But if I try
> to produce PDF with the FO stylesheets, Fop stops with the following
> message:
>
> [snip] ...
>
> [exec] [ERROR] null
> [exec] org.apache.fop.apps.FOPException
> [exec] at org.apache.fop.apps.CommandLineStarter.run(Unknown
> Source)
This is a bug in the fo stylesheet.
It is generating invalid FO output when bibliography
is a child of a part element because it is failing
to start a page sequence for the bibliography.
I checked in this fix to fo/bibliography.xsl:
24c24
< <xsl:when test="not(parent::*) or parent::book">
---
> <xsl:when test="not(parent::*) or parent::part or parent::book">
That fixed the problem.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.