This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Norm : Bug in the 1.27 fo XSL stylesheets ?
- To: Norman Walsh <ndw at nwalsh dot com>,DocBook-Apps <docbook-apps at lists dot oasis-open dot org>
- Subject: DOCBOOK-APPS: Norm : Bug in the 1.27 fo XSL stylesheets ?
- From: Stéphane Bline <sbline at apsydev dot com>
- Date: Wed, 10 Jan 2001 11:46:11 +0100
Norm,
I believe there is a bug in the fo XML stylesheets (1.27) in the
components.xsl file, that causes the page number not to appear in the TOC
for the chapter element.
The 1.27 file contains this :
<xsl:template name="component.title">
<xsl:param name="node" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$node"/>
</xsl:call-template>
</xsl:variable>
<fo:block>
<xsl:apply-templates select="$node" mode="title.ref"/>
</fo:block>
</xsl:template>
the reference to the computed object id is not there in the fo:block text.
So I suggest the following patch (tested):
<xsl:template name="component.title">
<xsl:param name="node" select="."/>
<xsl:variable name="id">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$node"/>
</xsl:call-template>
</xsl:variable>
<fo:block id="{$id}">
<xsl:apply-templates select="$node" mode="title.ref"/>
</fo:block>
</xsl:template>
Regards,
Stéphane Bline.