- Timestamp:
- 12/10/2013 11:37:38 PM (11 years ago)
- Branches:
- 7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
- Children:
- 112db9d
- Parents:
- f2a5108
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/autoidx.xsl
rf2a5108 rb1a51ac1 14 14 15 15 <!-- ******************************************************************** 16 $Id $16 $Id: autoidx.xsl 9647 2012-10-26 17:42:03Z bobstayton $ 17 17 ******************************************************************** 18 18 … … 170 170 171 171 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"> 174 173 <xsl:message terminate="yes"> 175 174 <xsl:text>ERROR: the 'kosek' index method requires the </xsl:text> … … 295 294 <xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute> 296 295 </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 297 303 <xsl:value-of select="primary"/> 298 304 … … 329 335 </xsl:variable> 330 336 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"/> 341 338 </xsl:otherwise> 342 339 </xsl:choose> … … 404 401 <xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute> 405 402 </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 406 410 <xsl:value-of select="secondary"/> 407 411 … … 449 453 </xsl:variable> 450 454 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"/> 461 456 </xsl:otherwise> 462 457 </xsl:choose> … … 523 518 <xsl:attribute name="axf:suppress-duplicate-page-number">true</xsl:attribute> 524 519 </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 525 527 <xsl:value-of select="tertiary"/> 526 528 … … 572 574 </xsl:variable> 573 575 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"/> 584 577 </xsl:otherwise> 585 578 </xsl:choose> … … 701 694 <xsl:when test="contains($zones, ' ')"> 702 695 <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)"/> 704 697 705 698 <xsl:variable name="id"> … … 714 707 </fo:basic-link> 715 708 716 <xsl:if test="$passivetex.extensions = '0'"> 717 <xsl:copy-of select="$number.separator"/> 718 </xsl:if> 709 <xsl:copy-of select="$number.separator"/> 719 710 <xsl:call-template name="reference"> 720 711 <xsl:with-param name="zones" select="substring-after($zones, ' ')"/> … … 726 717 <xsl:otherwise> 727 718 <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)"/> 729 720 730 721 <xsl:variable name="id"> … … 754 745 ancestor::refsect3|ancestor::refsection|ancestor::refsynopsisdiv| 755 746 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;]"/> 757 748 758 749 <xsl:variable name="id"> 759 750 <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()]"/> 761 752 </xsl:call-template> 762 753 </xsl:variable> … … 1126 1117 </xsl:variable> 1127 1118 1128 <xsl:text><phrase fole="pageno"></xsl:text>1119 <xsl:text><phrase role="pageno"></xsl:text> 1129 1120 <xsl:if test="$target[1]/@id or $target[1]/@xml:id"> 1130 1121 <xsl:text><link linkend="</xsl:text>
Note:
See TracChangeset
for help on using the changeset viewer.