Changeset 15c7d39 for stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/autoidx.xsl
- Timestamp:
- 10/08/2013 08:03:29 PM (11 years ago)
- 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
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/autoidx.xsl
r09a35dd r15c7d39 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.