Ignore:
Timestamp:
07/21/2007 03:01:56 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
3f96749
Parents:
f5da8e9
Message:

Merged r8226 from new-xsl branch.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6943 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl

    rf5da8e9 rbbe9b3da  
    194194    </xsl:when>
    195195    <xsl:when test="string($reference.autolabel) != 0">
     196      <xsl:if test="$component.label.includes.part.label != 0 and
     197                      ancestor::part">
     198        <xsl:variable name="part.label">
     199          <xsl:apply-templates select="ancestor::part"
     200                               mode="label.markup"/>
     201        </xsl:variable>
     202        <xsl:if test="$part.label != ''">
     203          <xsl:value-of select="$part.label"/>
     204          <xsl:apply-templates select="ancestor::part"
     205                               mode="intralabel.punctuation"/>
     206        </xsl:if>
     207      </xsl:if>
    196208      <xsl:variable name="format">
    197209        <xsl:call-template name="autolabel.format">
     
    199211        </xsl:call-template>
    200212      </xsl:variable>
    201       <xsl:number from="book" count="reference" format="{$format}" level="any"/>
     213      <xsl:choose>
     214        <xsl:when test="$label.from.part != 0 and ancestor::part">
     215          <xsl:number from="part" count="reference" format="{$format}" level="any"/>
     216        </xsl:when>
     217        <xsl:otherwise>
     218          <xsl:number from="book" count="reference" format="{$format}" level="any"/>
     219        </xsl:otherwise>
     220      </xsl:choose>
    202221    </xsl:when>
    203222  </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.