Ignore:
Timestamp:
10/08/2013 08:03:29 PM (11 years ago)
Author:
Matthew Burgess <matthew@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
58675ce
Parents:
09a35dd
Message:

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 moved

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/autoidx.xsl

    r09a35dd r15c7d39  
    1414
    1515<!-- ********************************************************************
    16      $Id$
     16     $Id: autoidx.xsl 9647 2012-10-26 17:42:03Z bobstayton $
    1717     ********************************************************************
    1818
     
    170170
    171171
    172   <xsl:if test="not(function-available('exslt:node-set') or
    173                     function-available('exslt:nodeSet'))">
     172  <xsl:if test="$exsl.node.set.available = 0">
    174173    <xsl:message terminate="yes">
    175174      <xsl:text>ERROR: the 'kosek' index method requires the </xsl:text>
     
    295294      <xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute>
    296295    </xsl:if>
     296
     297    <xsl:for-each select="$refs/primary">
     298      <xsl:if test="@id or @xml:id">
     299        <fo:inline id="{(@id|@xml:id)[1]}"/>
     300      </xsl:if>
     301    </xsl:for-each>
     302
    297303    <xsl:value-of select="primary"/>
    298304
     
    329335        </xsl:variable>
    330336
    331         <xsl:choose>
    332           <xsl:when test="$passivetex.extensions != '0'">
    333             <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
    334               <xsl:copy-of select="$page-number-citations"/>
    335             </fotex:sort>
    336           </xsl:when>
    337           <xsl:otherwise>
    338             <xsl:copy-of select="$page-number-citations"/>
    339           </xsl:otherwise>
    340         </xsl:choose>
     337        <xsl:copy-of select="$page-number-citations"/>
    341338      </xsl:otherwise>
    342339    </xsl:choose>
     
    404401      <xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute>
    405402    </xsl:if>
     403
     404    <xsl:for-each select="$refs/secondary">
     405      <xsl:if test="@id or @xml:id">
     406        <fo:inline id="{(@id|@xml:id)[1]}"/>
     407      </xsl:if>
     408    </xsl:for-each>
     409
    406410    <xsl:value-of select="secondary"/>
    407411
     
    449453        </xsl:variable>
    450454
    451         <xsl:choose>
    452           <xsl:when test="$passivetex.extensions != '0'">
    453             <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
    454               <xsl:copy-of select="$page-number-citations"/>
    455             </fotex:sort>
    456           </xsl:when>
    457           <xsl:otherwise>
    458             <xsl:copy-of select="$page-number-citations"/>
    459           </xsl:otherwise>
    460         </xsl:choose>
     455        <xsl:copy-of select="$page-number-citations"/>
    461456      </xsl:otherwise>
    462457    </xsl:choose>
     
    523518      <xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute>
    524519    </xsl:if>
     520
     521    <xsl:for-each select="$refs/tertiary">
     522      <xsl:if test="@id or @xml:id">
     523        <fo:inline id="{(@id|@xml:id)[1]}"/>
     524      </xsl:if>
     525    </xsl:for-each>
     526
    525527    <xsl:value-of select="tertiary"/>
    526528
     
    572574        </xsl:variable>
    573575
    574         <xsl:choose>
    575           <xsl:when test="$passivetex.extensions != '0'">
    576             <fotex:sort xmlns:fotex="http://www.tug.org/fotex">
    577               <xsl:copy-of select="$page-number-citations"/>
    578             </fotex:sort>
    579           </xsl:when>
    580           <xsl:otherwise>
    581             <xsl:copy-of select="$page-number-citations"/>
    582           </xsl:otherwise>
    583         </xsl:choose>
     576        <xsl:copy-of select="$page-number-citations"/>
    584577      </xsl:otherwise>
    585578    </xsl:choose>
     
    701694    <xsl:when test="contains($zones, ' ')">
    702695      <xsl:variable name="zone" select="substring-before($zones, ' ')"/>
    703       <xsl:variable name="target" select="key('id', $zone)[&scope;]"/>
     696      <xsl:variable name="target" select="key('id', $zone)"/>
    704697
    705698      <xsl:variable name="id">
     
    714707      </fo:basic-link>
    715708
    716       <xsl:if test="$passivetex.extensions = '0'">
    717         <xsl:copy-of select="$number.separator"/>
    718       </xsl:if>
     709      <xsl:copy-of select="$number.separator"/>
    719710      <xsl:call-template name="reference">
    720711        <xsl:with-param name="zones" select="substring-after($zones, ' ')"/>
     
    726717    <xsl:otherwise>
    727718      <xsl:variable name="zone" select="$zones"/>
    728       <xsl:variable name="target" select="key('id', $zone)[&scope;]"/>
     719      <xsl:variable name="target" select="key('id', $zone)"/>
    729720
    730721      <xsl:variable name="id">
     
    754745                                       ancestor::refsect3|ancestor::refsection|ancestor::refsynopsisdiv|
    755746                                       ancestor::sect1|ancestor::sect2|ancestor::sect3|ancestor::sect4|ancestor::sect5|
    756                                        ancestor::section|ancestor::setindex|ancestor::set|ancestor::sidebar)[&scope;]"/>
     747                                       ancestor::section|ancestor::setindex|ancestor::set|ancestor::sidebar|ancestor::mediaobject)[&scope;]"/>
    757748 
    758749  <xsl:variable name="id">
    759750    <xsl:call-template name="object.id">
    760       <xsl:with-param name="object" select="$target[1]"/>
     751      <xsl:with-param name="object" select="$target[position() = last()]"/>
    761752    </xsl:call-template>
    762753  </xsl:variable>
     
    11261117      </xsl:variable>
    11271118
    1128       <xsl:text>&lt;phrase fole="pageno"&gt;</xsl:text>
     1119      <xsl:text>&lt;phrase role="pageno"&gt;</xsl:text>
    11291120      <xsl:if test="$target[1]/@id or $target[1]/@xml:id">
    11301121        <xsl:text>&lt;link linkend="</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.