diff options
author | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2007-07-21 15:00:15 +0000 |
---|---|---|
committer | Manuel Canales Esparcia <manuel@linuxfromscratch.org> | 2007-07-21 15:00:15 +0000 |
commit | 60a5a938e6657250d228742b8367f8dbe7dd28d4 (patch) | |
tree | 6d7c4dffd49992a47185e53deacabe1d41036b28 /stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl | |
parent | 85117fe2b9fa404a21083ba975e06b57a6866d1b (diff) |
Merged r8226 from new-xsl branch.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8228 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl b/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl index 98050d012..38b123a35 100644 --- a/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl +++ b/stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl @@ -193,12 +193,31 @@ element label.</para> <xsl:value-of select="@label"/> </xsl:when> <xsl:when test="string($reference.autolabel) != 0"> + <xsl:if test="$component.label.includes.part.label != 0 and + ancestor::part"> + <xsl:variable name="part.label"> + <xsl:apply-templates select="ancestor::part" + mode="label.markup"/> + </xsl:variable> + <xsl:if test="$part.label != ''"> + <xsl:value-of select="$part.label"/> + <xsl:apply-templates select="ancestor::part" + mode="intralabel.punctuation"/> + </xsl:if> + </xsl:if> <xsl:variable name="format"> <xsl:call-template name="autolabel.format"> <xsl:with-param name="format" select="$reference.autolabel"/> </xsl:call-template> </xsl:variable> - <xsl:number from="book" count="reference" format="{$format}" level="any"/> + <xsl:choose> + <xsl:when test="$label.from.part != 0 and ancestor::part"> + <xsl:number from="part" count="reference" format="{$format}" level="any"/> + </xsl:when> + <xsl:otherwise> + <xsl:number from="book" count="reference" format="{$format}" level="any"/> + </xsl:otherwise> + </xsl:choose> </xsl:when> </xsl:choose> </xsl:template> |