This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: FO stylesheets copy fo:blocks into fo:root
- From: Bob Stayton <bobs at caldera dot com>
- To: Jeff Beal <jeff dot beal at ansys dot com>,"DocBook Mailing List (E-mail)" <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 11 Jan 2002 09:52:40 -0800
- Subject: Re: DOCBOOK-APPS: FO stylesheets copy fo:blocks into fo:root
- References: <7D70697C0E38D111B4FF080036B39A030327F2A1@ntdevexc.win.ansys.com>
On Fri, Jan 11, 2002 at 12:01:52PM -0500, Jeff Beal wrote:
> I just ran the 1.48 stylesheets on a document which includes refentries.
> The refentries were not included inside of an <fo:page-sequence>, but were
> instead children of the <fo:root> element. I assume this is a bug in the
> stylesheets, but haven't tracked it down yet. Has anyone else seen this?
Yes, this looks like a bug. The relevant test in
fo/refentry.xml is:
<xsl:template match="refentry">
...
<xsl:choose>
<xsl:when test="not(parent::*) or parent::reference">
<!-- make a page sequence -->
<fo:page-sequence hyphenate="{$hyphenate}"
This says to start a page sequence
if the refentry is the root element,
or if it is a child of <reference>.
But that should be "not(parent::reference)"
because a reference element already started a page
sequence.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com