diff options
author | Kévin THIERRY <kevin.thierry@open.eurogiciel.org> | 2014-11-06 11:50:51 +0100 |
---|---|---|
committer | Kévin THIERRY <kevin.thierry@open.eurogiciel.org> | 2014-11-06 11:50:51 +0100 |
commit | 14b660c1b43c74e8db2abb51e38e7a1aa38220a2 (patch) | |
tree | f78a8637465b7a4c9624fef03d27eb7aeaa779d4 /common/labels.xsl | |
parent | b2d73bee5e123c5e69352a447d4bc318132612d9 (diff) | |
download | docbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.tar.gz docbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.tar.bz2 docbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.zip |
Imported Upstream version 1.78.1upstream/1.78.1
Diffstat (limited to 'common/labels.xsl')
-rw-r--r-- | common/labels.xsl | 27 |
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 <= $section.autolabel.max.depth"> <xsl:value-of select="$section.autolabel"/> </xsl:when> |