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]

Norm : Bug in the 1.27 fo XSL stylesheets ?


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.


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