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] | [List Home]


Subject: mode question


Hi,
For certain sections in my document I use a customization to change the numbering (mode=label.markup) and the title (mode=title.markup). However, when the TOC is created it appears that the label.markup is getting called twice. That is,
<section role="Example"> is rendered as
"Example 13.1: Analysis" and in the TOC the number is repeated--the entry appears as
"13.1. Example 13.1: Analysis"

Can someone tell me what I'm doing wrong?
thanks,
--Tim

The code:
(1) change the numbering:
<xsl:template match="d:section[attribute::role='Example']" mode="label.markup" priority="1">
  <xsl:number level="multiple" format="1"
              count="d:chapter|d:section[attribute::role='Example']" />
</xsl:template>

(2) Add "Example: " after the label and call original stylesheets
<xsl:template match="d:section[attribute::role='Example']" mode="title.markup"  priority="1">
  <xsl:text>Example </xsl:text>
  <xsl:apply-templates select="." mode="label.markup" >
    <xsl:with-param name="allow-anchors" select="1"/>
  </xsl:apply-templates>
  <xsl:text>: </xsl:text>
  <xsl:apply-imports />
</xsl:template>



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