Ignore:
Timestamp:
12/10/2013 11:37:38 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
112db9d
Parents:
f2a5108
Message:

Import new branch

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

File:
1 moved

Legend:

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

    rf2a5108 rb1a51ac1  
    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.