Ignore:
Timestamp:
Jul 21, 2007, 8:07:11 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
master
Children:
a6966fa
Parents:
3ca2208
Message:

Merged r8226 from new-xsl branch.

File:
1 edited

Legend:

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

    r3ca2208 r00b1e11  
    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.