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: Gisbert Amm <gia at webde-ag dot de>
- To: 'Bob Stayton' <bobs at sco dot com>
- Cc: "'docbook-apps at lists dot oasis-open dot org'" <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 8 Sep 2003 09:20:05 +0200
- Subject: RE: [docbook-apps] fo-stylesheets: Bug in bibliography handling?
> -----Original Message-----
> From: Bob Stayton [mailto:bobs@sco.com]
> Sent: Friday, September 05, 2003 11:56 PM
>
> 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.
>
Yes, it did; thank you. Just one little correction: the name of the XSL file
is obviously fo/biblio.xsl, not fo/bibliography.xsl.
Kind regards,
Gisbert Amm
http://web.de/
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.