summaryrefslogtreecommitdiff
path: root/common/labels.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'common/labels.xsl')
-rw-r--r--common/labels.xsl27
1 files changed, 8 insertions, 19 deletions
diff --git a/common/labels.xsl b/common/labels.xsl
index 78f6026..eb01dff 100644
--- a/common/labels.xsl
+++ b/common/labels.xsl
@@ -5,7 +5,7 @@
version='1.0'>
<!-- ********************************************************************
- $Id: labels.xsl 9286 2012-04-19 10:10:58Z bobstayton $
+ $Id: labels.xsl 9706 2013-01-16 18:56:16Z bobstayton $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
@@ -378,24 +378,7 @@ element label.</para>
</xsl:template>
<xsl:template match="bridgehead" mode="label.markup">
- <!-- FIXME: could we do a better job here? -->
- <xsl:variable name="contsec"
- select="(ancestor::section
- |ancestor::simplesect
- |ancestor::topic
- |ancestor::sect1
- |ancestor::sect2
- |ancestor::sect3
- |ancestor::sect4
- |ancestor::sect5
- |ancestor::refsect1
- |ancestor::refsect2
- |ancestor::refsect3
- |ancestor::chapter
- |ancestor::appendix
- |ancestor::preface)[last()]"/>
-
- <xsl:apply-templates select="$contsec" mode="label.markup"/>
+ <!-- bridgeheads are not normally numbered -->
</xsl:template>
<xsl:template match="refsect1" mode="label.markup">
@@ -791,6 +774,10 @@ element label.</para>
<xsl:number value="$item-number" format="{$type}"/>
</xsl:template>
+<xsl:template match="production" mode="label.markup">
+ <xsl:number count="production" level="any"/>
+</xsl:template>
+
<xsl:template match="abstract" mode="label.markup">
<!-- nop -->
</xsl:template>
@@ -817,6 +804,8 @@ element label.</para>
</xsl:variable>
<xsl:choose>
+ <!-- bridgeheads are not numbered -->
+ <xsl:when test="$section/self::bridgehead">0</xsl:when>
<xsl:when test="$level &lt;= $section.autolabel.max.depth">
<xsl:value-of select="$section.autolabel"/>
</xsl:when>