This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]