OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: 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.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC