Changeset 410e228b for stylesheets
- Timestamp:
- 05/09/2008 01:00:42 PM (16 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 6.3, 6.3-rc1, 6.3-rc2, 6.3-rc3, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- b48899b
- Parents:
- 2262b78
- Location:
- stylesheets/lfs-xsl/docbook-xsl-snapshot
- Files:
-
- 56 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/common.xsl
r2262b78 r410e228b 366 366 (parsect (ancestor-member node (section-element-list))) 367 367 368 (defnum (if (and %qanda-inherit-numeration% 368 (defnum (if (and %qanda-inherit-numeration% 369 369 %section-autolabel%) 370 370 (if (node-list-empty? parsect) … … 373 373 "")) 374 374 375 (hnumber (let loop ((numlist hnr) (number defnum) 375 (hnumber (let loop ((numlist hnr) (number defnum) 376 376 (sep (if (equal? defnum "") "" "."))) 377 377 (if (null? numlist) 378 378 number 379 (loop (cdr numlist) 379 (loop (cdr numlist) 380 380 (string-append number 381 381 sep … … 383 383 ".")))) 384 384 (cnumber (child-number (parent node))) 385 (number (string-append hnumber 385 (number (string-append hnumber 386 386 (if (equal? hnumber "") 387 387 "" … … 822 822 the "right" object.</para> 823 823 824 <para>This template relies on a template named 824 <para>This template relies on a template named 825 825 "select.mediaobject.index" to determine which object 826 826 in the list is appropriate.</para> … … 895 895 <varlistentry><term>count</term> 896 896 <listitem> 897 <para>The position in the list currently being considered by the 897 <para>The position in the list currently being considered by the 898 898 recursive process.</para> 899 899 </listitem> … … 915 915 <xsl:choose> 916 916 <!-- Test for objects preferred by role --> 917 <xsl:when test="$use.role.for.mediaobject != 0 917 <xsl:when test="$use.role.for.mediaobject != 0 918 918 and $preferred.mediaobject.role != '' 919 and $olist[@role = $preferred.mediaobject.role]"> 919 and $olist[@role = $preferred.mediaobject.role]"> 920 920 921 921 <!-- Get the first hit's position index --> 922 922 <xsl:for-each select="$olist"> 923 923 <xsl:if test="@role = $preferred.mediaobject.role and 924 not(preceding-sibling::*[@role = $preferred.mediaobject.role])"> 925 <xsl:value-of select="position()"/> 924 not(preceding-sibling::*[@role = $preferred.mediaobject.role])"> 925 <xsl:value-of select="position()"/> 926 926 </xsl:if> 927 927 </xsl:for-each> 928 928 </xsl:when> 929 929 930 <xsl:when test="$use.role.for.mediaobject != 0 930 <xsl:when test="$use.role.for.mediaobject != 0 931 931 and $olist[@role = $stylesheet.result.type]"> 932 932 <!-- Get the first hit's position index --> 933 933 <xsl:for-each select="$olist"> 934 <xsl:if test="@role = $stylesheet.result.type and 935 not(preceding-sibling::*[@role = $stylesheet.result.type])"> 936 <xsl:value-of select="position()"/> 934 <xsl:if test="@role = $stylesheet.result.type and 935 not(preceding-sibling::*[@role = $stylesheet.result.type])"> 936 <xsl:value-of select="position()"/> 937 937 </xsl:if> 938 938 </xsl:for-each> 939 939 </xsl:when> 940 940 <!-- Accept 'html' for $stylesheet.result.type = 'xhtml' --> 941 <xsl:when test="$use.role.for.mediaobject != 0 941 <xsl:when test="$use.role.for.mediaobject != 0 942 942 and $stylesheet.result.type = 'xhtml' 943 943 and $olist[@role = 'html']"> 944 944 <!-- Get the first hit's position index --> 945 945 <xsl:for-each select="$olist"> 946 <xsl:if test="@role = 'html' and 947 not(preceding-sibling::*[@role = 'html'])"> 948 <xsl:value-of select="position()"/> 946 <xsl:if test="@role = 'html' and 947 not(preceding-sibling::*[@role = 'html'])"> 948 <xsl:value-of select="position()"/> 949 949 </xsl:if> 950 950 </xsl:for-each> … … 953 953 <!-- If no selection by role, and there is only one object, use it --> 954 954 <xsl:when test="count($olist) = 1 and $count = 1"> 955 <xsl:value-of select="$count"/> 955 <xsl:value-of select="$count"/> 956 956 </xsl:when> 957 957 … … 967 967 and $object/@role='tex' and $stylesheet.result.type = 'fo' 968 968 and $tex.math.in.alt != ''"> 969 <xsl:text>1</xsl:text> 969 <xsl:text>1</xsl:text> 970 970 </xsl:when> 971 971 <!-- The phrase is never used --> … … 984 984 <xsl:text>1</xsl:text> 985 985 </xsl:when> 986 <!-- don't use graphic when output is FO, TeX Math is used 986 <!-- don't use graphic when output is FO, TeX Math is used 987 987 and there is math in alt element --> 988 <xsl:when test="$object/ancestor::equation and 988 <xsl:when test="$object/ancestor::equation and 989 989 $object/ancestor::equation/alt[@role='tex'] 990 990 and $stylesheet.result.type = 'fo' … … 1677 1677 <xsl:with-param name="filename"> 1678 1678 <xsl:call-template name="xml.base.dirs"> 1679 <xsl:with-param name="base.elem" 1679 <xsl:with-param name="base.elem" 1680 1680 select="$filename/ancestor-or-self::* 1681 1681 [@xml:base != ''][1]"/> … … 1721 1721 <xsl:param name="base.elem" select="NONODE"/> 1722 1722 1723 <!-- Recursively resolve xml:base attributes, up to a 1723 <!-- Recursively resolve xml:base attributes, up to a 1724 1724 full path with : in uri --> 1725 1725 <xsl:if test="$base.elem/ancestor::*[@xml:base != ''] and 1726 1726 not(contains($base.elem/@xml:base, ':'))"> 1727 1727 <xsl:call-template name="xml.base.dirs"> 1728 <xsl:with-param name="base.elem" 1728 <xsl:with-param name="base.elem" 1729 1729 select="$base.elem/ancestor::*[@xml:base != ''][1]"/> 1730 1730 </xsl:call-template> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/gentext.xsl
r2262b78 r410e228b 155 155 </xsl:template> 156 156 157 <xsl:template match="section|sect1|sect2|sect3|sect4|sect5" 157 <xsl:template match="section|sect1|sect2|sect3|sect4|sect5" 158 158 mode="is.autonumber"> 159 159 <xsl:call-template name="label.this.section"/> … … 230 230 <xsl:variable name="context"> 231 231 <xsl:choose> 232 <xsl:when test="string($autonumber) != 0 232 <xsl:when test="string($autonumber) != 0 233 233 and $number-and-title-template != 0 234 234 and $xref.with.number.and.title != 0"> 235 235 <xsl:value-of select="'xref-number-and-title'"/> 236 236 </xsl:when> 237 <xsl:when test="string($autonumber) != 0 237 <xsl:when test="string($autonumber) != 0 238 238 and $number-template != 0"> 239 239 <xsl:value-of select="'xref-number'"/> … … 342 342 </xsl:variable> 343 343 344 <!-- 344 <!-- 345 345 <xsl:message> 346 346 <xsl:text>object.xref.markup: </xsl:text> … … 771 771 <xsl:if test="($pagetype = 'nopage' or $docnametype = 'nodocname') 772 772 and local-name($referrer) != 'olink' 773 and $labeltype = '' 773 and $labeltype = '' 774 774 and $titletype = ''"> 775 775 <xsl:apply-templates select="." mode="object.xref.template"> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/l10n.dtd
r2262b78 r410e228b 12 12 <!ENTITY % letters "%prefix;:letters"> 13 13 <!ENTITY % l "%prefix;:l"> 14 <!ENTITY % lang "lang NMTOKEN #IMPLIED"> 14 <!ENTITY % lang "lang NMTOKEN #IMPLIED"> 15 15 16 16 <!ELEMENT %i18n; ((%l10n;)+)> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/labels.xsl
r2262b78 r410e228b 79 79 ancestor::part"> 80 80 <xsl:variable name="part.label"> 81 <xsl:apply-templates select="ancestor::part" 81 <xsl:apply-templates select="ancestor::part" 82 82 mode="label.markup"/> 83 83 </xsl:variable> 84 84 <xsl:if test="$part.label != ''"> 85 85 <xsl:value-of select="$part.label"/> 86 <xsl:apply-templates select="ancestor::part" 86 <xsl:apply-templates select="ancestor::part" 87 87 mode="intralabel.punctuation"/> 88 88 </xsl:if> … … 114 114 ancestor::part"> 115 115 <xsl:variable name="part.label"> 116 <xsl:apply-templates select="ancestor::part" 116 <xsl:apply-templates select="ancestor::part" 117 117 mode="label.markup"/> 118 118 </xsl:variable> 119 119 <xsl:if test="$part.label != ''"> 120 120 <xsl:value-of select="$part.label"/> 121 <xsl:apply-templates select="ancestor::part" 121 <xsl:apply-templates select="ancestor::part" 122 122 mode="intralabel.punctuation"/> 123 123 </xsl:if> … … 149 149 ancestor::part"> 150 150 <xsl:variable name="part.label"> 151 <xsl:apply-templates select="ancestor::part" 151 <xsl:apply-templates select="ancestor::part" 152 152 mode="label.markup"/> 153 153 </xsl:variable> 154 154 <xsl:if test="$part.label != ''"> 155 155 <xsl:value-of select="$part.label"/> 156 <xsl:apply-templates select="ancestor::part" 156 <xsl:apply-templates select="ancestor::part" 157 157 mode="intralabel.punctuation"/> 158 158 </xsl:if> … … 197 197 ancestor::part"> 198 198 <xsl:variable name="part.label"> 199 <xsl:apply-templates select="ancestor::part" 199 <xsl:apply-templates select="ancestor::part" 200 200 mode="label.markup"/> 201 201 </xsl:variable> 202 202 <xsl:if test="$part.label != ''"> 203 203 <xsl:value-of select="$part.label"/> 204 <xsl:apply-templates select="ancestor::part" 204 <xsl:apply-templates select="ancestor::part" 205 205 mode="intralabel.punctuation"/> 206 206 </xsl:if> … … 278 278 <xsl:value-of select="@label"/> 279 279 </xsl:when> 280 <xsl:when test="$label != 0"> 280 <xsl:when test="$label != 0"> 281 281 <xsl:variable name="format"> 282 282 <xsl:call-template name="autolabel.format"> … … 687 687 <xsl:apply-templates select="$pchap" mode="intralabel.punctuation"/> 688 688 </xsl:if> 689 <xsl:number count="procedure[title]" format="1" 689 <xsl:number count="procedure[title]" format="1" 690 690 from="chapter|appendix" level="any"/> 691 691 </xsl:when> 692 692 <xsl:otherwise> 693 <xsl:number count="procedure[title]" format="1" 693 <xsl:number count="procedure[title]" format="1" 694 694 from="book|article" level="any"/> 695 695 </xsl:otherwise> … … 722 722 <xsl:apply-templates select="$pchap" mode="intralabel.punctuation"/> 723 723 </xsl:if> 724 <xsl:number format="1" count="equation[title or info/title]" 724 <xsl:number format="1" count="equation[title or info/title]" 725 725 from="chapter|appendix" level="any"/> 726 726 </xsl:when> 727 727 <xsl:otherwise> 728 <xsl:number format="1" count="equation[title or info/title]" 728 <xsl:number format="1" count="equation[title or info/title]" 729 729 from="book|article" level="any"/> 730 730 </xsl:otherwise> … … 784 784 785 785 <xsl:choose> 786 <xsl:when test="$level <= $section.autolabel.max.depth"> 786 <xsl:when test="$level <= $section.autolabel.max.depth"> 787 787 <xsl:value-of select="$section.autolabel"/> 788 788 </xsl:when> … … 795 795 <refdescription id="label.this.section-desc"> 796 796 <para>Returns true if the specified section should be labelled. 797 By default, this template returns zero unless 797 By default, this template returns zero unless 798 798 the section level is less than or equal to the value of the 799 799 <literal>$section.autolabel.max.depth</literal> parameter, in … … 816 816 </xsl:when> 817 817 <xsl:otherwise>1</xsl:otherwise> 818 </xsl:choose> 818 </xsl:choose> 819 819 </xsl:template> 820 820 … … 838 838 <xsl:when test="$format='upperroman' or $format='I'"> 839 839 <xsl:value-of select="'I'"/> 840 </xsl:when> 840 </xsl:when> 841 841 <xsl:when test="$format='arabicindic' or $format='١'"> 842 842 <xsl:value-of select="'١'"/> … … 858 858 <refdescription id="autolabel.format-desc"> 859 859 <para>Returns format passed as parameter if non zero. Supported 860 format are 'arabic' or '1', 'loweralpha' or 'a', 'lowerroman' or 'i', 860 format are 'arabic' or '1', 'loweralpha' or 'a', 'lowerroman' or 'i', 861 861 'upperlapha' or 'A', 'upperroman' or 'I', 'arabicindic' or '١'. 862 If its not one of these then 862 If its not one of these then 863 863 returns the default format.</para> 864 864 </refdescription> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/olink.xsl
r2262b78 r410e228b 35 35 </xsl:variable> 36 36 37 <xsl:variable name="target.database" 37 <xsl:variable name="target.database" 38 38 select="document($target.database.filename,/)"/> 39 39 … … 125 125 $targetptr.att != ''"> 126 126 <xsl:for-each select="$target.database"> 127 <xsl:variable name="key" 128 select="concat($targetdoc.att, '/', 127 <xsl:variable name="key" 128 select="concat($targetdoc.att, '/', 129 129 $targetptr.att, '/', 130 130 $target.lang)"/> … … 148 148 targetptr.att = not blank 149 149 prefer.internal.olink = not zero 150 current.docid = not blank 150 current.docid = not blank 151 151 --> 152 152 <xsl:if test="$targetdoc.att != '' and … … 155 155 $prefer.internal.olink != 0"> 156 156 <xsl:for-each select="$target.database"> 157 <xsl:variable name="key" 158 select="concat($current.docid, '/', 157 <xsl:variable name="key" 158 select="concat($current.docid, '/', 159 159 $targetptr.att, '/', 160 160 $target.lang)"/> … … 177 177 <!-- targetdoc.att = blank 178 178 targetptr.att = not blank 179 current.docid = not blank 179 current.docid = not blank 180 180 --> 181 181 <xsl:if test="string-length($targetdoc.att) = 0 and … … 184 184 <!-- Must use a for-each to change context for keys to work --> 185 185 <xsl:for-each select="$target.database"> 186 <xsl:variable name="key" 187 select="concat($current.docid, '/', 186 <xsl:variable name="key" 187 select="concat($current.docid, '/', 188 188 $targetptr.att, '/', 189 189 $target.lang)"/> … … 206 206 <!-- targetdoc.att = blank 207 207 targetptr.att = not blank 208 current.docid = blank 208 current.docid = blank 209 209 --> 210 210 <!-- This is possible if only one document in the database --> … … 214 214 count($target.database//document) = 1"> 215 215 <xsl:for-each select="$target.database"> 216 <xsl:variable name="key" 217 select="concat(.//document/@targetdoc, '/', 216 <xsl:variable name="key" 217 select="concat(.//document/@targetdoc, '/', 218 218 $targetptr.att, '/', 219 219 $target.lang)"/> … … 253 253 254 254 <xsl:for-each select="$target.database"> 255 <xsl:variable name="key" 256 select="concat($targetdoc.att, '/', 255 <xsl:variable name="key" 256 select="concat($targetdoc.att, '/', 257 257 $rootid, '/', 258 258 $target.lang)"/> … … 276 276 targetptr.att = blank 277 277 prefer.internal.olink = not zero 278 current.docid = not blank 278 current.docid = not blank 279 279 --> 280 280 <xsl:if test="$targetdoc.att != '' and … … 295 295 296 296 <xsl:for-each select="$target.database"> 297 <xsl:variable name="key" 298 select="concat($current.docid, '/', 297 <xsl:variable name="key" 298 select="concat($current.docid, '/', 299 299 $rootid, '/', 300 300 $target.lang)"/> … … 387 387 <xsl:value-of select="$selected.key"/> 388 388 </xsl:when> 389 <xsl:when test="string-length($selected.key) = 0 and 389 <xsl:when test="string-length($selected.key) = 0 and 390 390 string-length($target.lang) = 0"> 391 391 <!-- No match on last try, and we are done --> … … 412 412 413 413 <!-- recurse backwards to find the lang matching the index --> 414 <xsl:variable name="firstlang" 414 <xsl:variable name="firstlang" 415 415 select="substring-before($olink.fallback.sequence, ' ')"/> 416 <xsl:variable name="rest" 416 <xsl:variable name="rest" 417 417 select="substring-after($olink.fallback.sequence, ' ')"/> 418 418 <xsl:choose> … … 436 436 437 437 <!-- Prefer language of the olink element --> 438 <xsl:value-of select="concat(normalize-space(concat($olink.lang, ' ', 438 <xsl:value-of select="concat(normalize-space(concat($olink.lang, ' ', 439 439 $olink.lang.fallback.sequence)), ' ')"/> 440 440 </xsl:template> … … 484 484 <xsl:for-each select="$target.database" > 485 485 <xsl:call-template name="targetpath" > 486 <xsl:with-param name="dirnode" 486 <xsl:with-param name="dirnode" 487 487 select="key('targetdoc-key', $current.docid)/parent::dir"/> 488 488 <xsl:with-param name="targetdoc" select="$targetdoc"/> … … 506 506 </xsl:message> 507 507 </xsl:otherwise> 508 </xsl:choose> 508 </xsl:choose> 509 509 <!-- In either case, add baseuri from its document entry--> 510 510 <xsl:variable name="docbaseuri"> … … 554 554 <xsl:param name="object" select="NotAnElement"/> 555 555 <xsl:param name="object.targetdoc" select="$current.docid"/> 556 <xsl:param name="object.lang" 556 <xsl:param name="object.lang" 557 557 select="concat($object/ancestor::*[last()]/@lang, 558 558 $object/ancestor::*[last()]/@xml:lang)"/> … … 608 608 <xsl:param name="xrefstyle"> 609 609 <xsl:choose> 610 <xsl:when test="@role and not(@xrefstyle) 610 <xsl:when test="@role and not(@xrefstyle) 611 611 and $use.role.as.xrefstyle != 0"> 612 612 <xsl:value-of select="@role"/> … … 627 627 <xsl:variable name="xref.text" > 628 628 <xsl:for-each select="$target.database" > 629 <xsl:copy-of 629 <xsl:copy-of 630 630 select="key('targetptr-key', $olink.key)/xreftext/node()" /> 631 631 </xsl:for-each> … … 647 647 <xsl:variable name="candidate"> 648 648 <xsl:for-each select="$target.database" > 649 <xsl:value-of 649 <xsl:value-of 650 650 select="key('targetptr-key', $olink.key)/@lang" /> 651 651 </xsl:for-each> … … 671 671 contains($xrefstyle, 'nopage')) and 672 672 not(contains($xrefstyle, 'title')) and 673 not(contains($xrefstyle, 'label'))"> 673 not(contains($xrefstyle, 'label'))"> 674 674 <xsl:copy-of select="$xref.text"/> 675 675 </xsl:when> … … 739 739 <xsl:variable name="xref-number-and-title-context"> 740 740 <xsl:call-template name="gentext.template"> 741 <xsl:with-param name="context" 741 <xsl:with-param name="context" 742 742 select="'xref-number-and-title'"/> 743 743 <xsl:with-param name="name" select="$target.elem"/> … … 748 748 <xsl:variable name="styled-xref-number-and-title-context"> 749 749 <xsl:call-template name="gentext.template"> 750 <xsl:with-param name="context" 750 <xsl:with-param name="context" 751 751 select="'xref-number-and-title'"/> 752 752 <xsl:with-param name="name" select="$target.elem"/> … … 757 757 758 758 <xsl:choose> 759 <xsl:when test="$xref-number-and-title-context != 759 <xsl:when test="$xref-number-and-title-context != 760 760 $styled-xref-number-and-title-context and 761 761 $xref.number != '' and 762 762 $xref.with.number.and.title != 0"> 763 <xsl:value-of 763 <xsl:value-of 764 764 select="$styled-xref-number-and-title-context"/> 765 765 </xsl:when> 766 <xsl:when test="$xref-number-context != 766 <xsl:when test="$xref-number-context != 767 767 $styled-xref-number-context and 768 768 $xref.number != ''"> … … 775 775 $xref.number != '' and 776 776 $xref.with.number.and.title != 0"> 777 <xsl:value-of 777 <xsl:value-of 778 778 select="$xref-number-and-title-context"/> 779 779 <xsl:if test="$olink.debug"> … … 859 859 <xsl:with-param name="label"> 860 860 <xsl:for-each select="$target.database" > 861 <xsl:value-of 861 <xsl:value-of 862 862 select="key('targetptr-key', $olink.key)/@number" /> 863 863 </xsl:for-each> … … 865 865 <xsl:with-param name="pagenumber"> 866 866 <xsl:for-each select="$target.database" > 867 <xsl:value-of 867 <xsl:value-of 868 868 select="key('targetptr-key', $olink.key)/@page" /> 869 869 </xsl:for-each> … … 871 871 <xsl:with-param name="docname"> 872 872 <xsl:for-each select="$target.database" > 873 <xsl:value-of 873 <xsl:value-of 874 874 select="key('targetdoc-key', $targetdoc)/div[1]/ttl" /> 875 875 </xsl:for-each> … … 897 897 <xsl:with-param name="label"> 898 898 <xsl:for-each select="$target.database" > 899 <xsl:value-of 899 <xsl:value-of 900 900 select="key('targetptr-key', $olink.key)/@number" /> 901 901 </xsl:for-each> … … 948 948 <xsl:param name="targetdoc" select="''"/> 949 949 950 <!-- 950 <!-- 951 951 <xsl:message>dirnode is <xsl:value-of select="$dirnode/@name"/></xsl:message> 952 952 <xsl:message>targetdoc is <xsl:value-of select="$targetdoc"/></xsl:message> … … 995 995 <xsl:param name="xrefstyle"> 996 996 <xsl:choose> 997 <xsl:when test="@role and not(@xrefstyle) 997 <xsl:when test="@role and not(@xrefstyle) 998 998 and $use.role.as.xrefstyle != 0"> 999 999 <xsl:value-of select="@role"/> … … 1018 1018 </xsl:when> 1019 1019 <xsl:when test="not(starts-with(normalize-space($xrefstyle), 1020 'select:') 1020 'select:') 1021 1021 and (contains($xrefstyle, 'page') 1022 1022 or contains($xrefstyle, 'Page'))) 1023 and $current.docid != '' 1023 and $current.docid != '' 1024 1024 and $current.docid != $targetdoc 1025 1025 and $insert.olink.page.number = 'yes' "> … … 1027 1027 <xsl:variable name="page-number"> 1028 1028 <xsl:for-each select="$target.database" > 1029 <xsl:value-of 1029 <xsl:value-of 1030 1030 select="key('targetptr-key', $olink.key)/@page" /> 1031 1031 </xsl:for-each> … … 1055 1055 <xsl:param name="xrefstyle"> 1056 1056 <xsl:choose> 1057 <xsl:when test="@role and not(@xrefstyle) 1057 <xsl:when test="@role and not(@xrefstyle) 1058 1058 and $use.role.as.xrefstyle != 0"> 1059 1059 <xsl:value-of select="@role"/> … … 1067 1067 <xsl:variable name="page"> 1068 1068 <xsl:for-each select="$target.database" > 1069 <xsl:value-of 1069 <xsl:value-of 1070 1070 select="key('targetptr-key', $olink.key)/@page" /> 1071 1071 </xsl:for-each> … … 1077 1077 1078 1078 <xsl:variable name="targetptr"> 1079 <xsl:value-of 1079 <xsl:value-of 1080 1080 select="substring-before(substring-after($olink.key, '/'), '/')"/> 1081 1081 </xsl:variable> … … 1084 1084 <xsl:variable name="rootptr"> 1085 1085 <xsl:for-each select="$target.database" > 1086 <xsl:value-of 1086 <xsl:value-of 1087 1087 select="key('targetdoc-key', $targetdoc)/div[1]/@targetptr" /> 1088 1088 </xsl:for-each> … … 1091 1091 <xsl:variable name="docname"> 1092 1092 <xsl:for-each select="$target.database" > 1093 <xsl:value-of 1093 <xsl:value-of 1094 1094 select="key('targetdoc-key', $targetdoc)/div[1]/ttl" /> 1095 1095 </xsl:for-each> 1096 1096 </xsl:variable> 1097 1097 1098 <xsl:if test="not(starts-with(normalize-space($xrefstyle), 'select:') 1098 <xsl:if test="not(starts-with(normalize-space($xrefstyle), 'select:') 1099 1099 and (contains($xrefstyle, 'docname'))) 1100 1100 and ($olink.doctitle = 'yes' or $olink.doctitle = '1') 1101 and $current.docid != '' 1101 and $current.docid != '' 1102 1102 and $rootptr != $targetptr 1103 1103 and $current.docid != $targetdoc … … 1124 1124 <xsl:param name="xrefstyle"> 1125 1125 <xsl:choose> 1126 <xsl:when test="@role and not(@xrefstyle) 1126 <xsl:when test="@role and not(@xrefstyle) 1127 1127 and $use.role.as.xrefstyle != 0"> 1128 1128 <xsl:value-of select="@role"/> … … 1137 1137 and (contains($xrefstyle, 'page') 1138 1138 or contains($xrefstyle, 'Page'))) 1139 and ( $insert.xref.page.number = 'yes' 1139 and ( $insert.xref.page.number = 'yes' 1140 1140 or $insert.xref.page.number = '1') 1141 1141 or local-name($target) = 'para'"> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/pi.xsl
r2262b78 r410e228b 138 138 </xsl:otherwise> 139 139 </xsl:choose> 140 </xsl:variable> 140 </xsl:variable> 141 141 <xsl:variable name="padding"> 142 142 <xsl:variable name="pi-padding"> … … 248 248 <xsl:choose> 249 249 <!-- include extra test for Xalan quirk --> 250 <xsl:when test="function-available('exsl:node-set') or 250 <xsl:when test="function-available('exsl:node-set') or 251 251 contains(system-property('xsl:vendor'),'Apache Software Foundation')"> 252 252 <!-- We must preserve context node in order to get valid language --> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/refentry.xsl
r2262b78 r410e228b 646 646 <xsl:choose> 647 647 <xsl:when test="refmeta/refmiscinfo[@class = 'source' or @class = 'software']"> 648 <xsl:apply-templates 648 <xsl:apply-templates 649 649 select="refmeta/refmiscinfo[@class = 'source' or @class='software'][1]/node()"/> 650 650 </xsl:when> … … 830 830 <xsl:choose> 831 831 <xsl:when test="refmeta/refmiscinfo[@class = 'version']"> 832 <xsl:apply-templates 832 <xsl:apply-templates 833 833 select="refmeta/refmiscinfo[@class = 'version'][1]/node()"/> 834 834 </xsl:when> … … 1012 1012 <xsl:choose> 1013 1013 <xsl:when test="refmeta/refmiscinfo[@class = 'manual' or @class = 'sectdesc']"> 1014 <xsl:apply-templates 1014 <xsl:apply-templates 1015 1015 select="refmeta/refmiscinfo[@class = 'manual' or @class = 'sectdesc'][1]/node()"/> 1016 1016 </xsl:when> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/stripns.xsl
r2262b78 r410e228b 282 282 <xsl:when test="starts-with($base, 'file:/') 283 283 and substring($base, 8, 1) = ':'"> 284 <xsl:value-of select="concat('file:///', 284 <xsl:value-of select="concat('file:///', 285 285 substring-after($base,'file:/'))"/> 286 286 </xsl:when> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/table.xsl
r2262b78 r410e228b 410 410 <xsl:param name="colnum" select="0"/> 411 411 <xsl:param name="attribute" select="'colname'"/> 412 <xsl:param name="colspec.ancestor" 412 <xsl:param name="colspec.ancestor" 413 413 select="(ancestor::tgroup|ancestor::entrytbl) 414 414 [position() = last()]"/> … … 489 489 <xsl:param name="node" select="."/> 490 490 491 <xsl:variable name="tgroup" select="$node/tgroup[1] | 491 <xsl:variable name="tgroup" select="$node/tgroup[1] | 492 492 $node/ancestor-or-self::tgroup[1]"/> 493 493 494 <xsl:variable name="table" 495 select="($node/ancestor-or-self::table | 494 <xsl:variable name="table" 495 select="($node/ancestor-or-self::table | 496 496 $node/ancestor-or-self::informaltable)[1]"/> 497 497 -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/targets.xsl
r2262b78 r410e228b 23 23 <refdescription id="collect.targets-desc"> 24 24 <para>Processing the root element in the 25 <literal role="mode">collect.targets</literal> mode produces 25 <literal role="mode">collect.targets</literal> mode produces 26 26 a set of target database elements that can be used by 27 27 the olink mechanism to resolve external cross references. … … 35 35 <para> 36 36 A <literal>targets.filename</literal> parameter must be 37 specified to receive the output if 37 specified to receive the output if 38 38 <literal>collect.xref.targets</literal> is 39 39 set to <literal>yes</literal> so as to … … 54 54 The xref targets were not collected. 55 55 </xsl:message> 56 </xsl:when> 56 </xsl:when> 57 57 <xsl:otherwise> 58 58 <xsl:choose> … … 266 266 <xsl:if test="@id or @xml:id"> 267 267 <xsl:call-template name="obj"/> 268 </xsl:if> 268 </xsl:if> 269 269 <xsl:apply-templates mode="olink.mode"/> 270 270 </xsl:template> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/common/utility.xsl
r2262b78 r410e228b 282 282 </xsl:when> 283 283 <xsl:otherwise> 284 <xsl:value-of 284 <xsl:value-of 285 285 select="substring($padVar,string-length($padVar) - $length + 1)"/> 286 286 </xsl:otherwise> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/autoidx.xsl
r2262b78 r410e228b 55 55 <xsl:key name="see-also" 56 56 match="indexterm[seealso]" 57 use="concat(&primary;, &sep;, 58 &secondary;, &sep;, 57 use="concat(&primary;, &sep;, 58 &secondary;, &sep;, 59 59 &tertiary;, &sep;, seealso)"/> 60 60 61 61 <xsl:key name="see" 62 62 match="indexterm[see]" 63 use="concat(&primary;, &sep;, 64 &secondary;, &sep;, 63 use="concat(&primary;, &sep;, 64 &secondary;, &sep;, 65 65 &tertiary;, &sep;, see)"/> 66 66 … … 138 138 <xsl:with-param name="role" select="$role"/> 139 139 <xsl:with-param name="type" select="$type"/> 140 <xsl:sort select="translate(&primary;, &lowercase;, 140 <xsl:sort select="translate(&primary;, &lowercase;, 141 141 &uppercase;)"/> 142 142 </xsl:apply-templates> … … 313 313 ref-key="{$primary}"/> 314 314 </xsl:if> 315 </rx:page-index> 315 </rx:page-index> 316 316 </xsl:if> 317 317 </xsl:when> 318 318 <xsl:otherwise> 319 319 <xsl:variable name="page-number-citations"> 320 <xsl:for-each select="$refs[not(see) 320 <xsl:for-each select="$refs[not(see) 321 321 and not(secondary)]"> 322 322 <xsl:apply-templates select="." mode="reference"> … … 438 438 <xsl:otherwise> 439 439 <xsl:variable name="page-number-citations"> 440 <xsl:for-each select="$refs[not(see) 440 <xsl:for-each select="$refs[not(see) 441 441 and not(tertiary)]"> 442 442 <xsl:apply-templates select="." mode="reference"> … … 483 483 <xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/> 484 484 </xsl:apply-templates> 485 <xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', concat($key, &sep;, &tertiary;))[&scope;][1]) = 1]" 485 <xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', concat($key, &sep;, &tertiary;))[&scope;][1]) = 1]" 486 486 mode="index-tertiary"> 487 487 <xsl:with-param name="scope" select="$scope"/> … … 945 945 </xsl:apply-templates> 946 946 947 <xsl:apply-templates select="$refs[secondary and count(.|key('secondary', concat($key, &sep;, &secondary;))[&scope;][1]) = 1]" 947 <xsl:apply-templates select="$refs[secondary and count(.|key('secondary', concat($key, &sep;, &secondary;))[&scope;][1]) = 1]" 948 948 mode="index-secondary-markup"> 949 949 <xsl:with-param name="scope" select="$scope"/> … … 998 998 <xsl:sort select="translate(seealso, &lowercase;, &uppercase;)"/> 999 999 </xsl:apply-templates> 1000 <xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', concat($key, &sep;, &tertiary;))[&scope;][1]) = 1]" 1000 <xsl:apply-templates select="$refs[tertiary and count(.|key('tertiary', concat($key, &sep;, &tertiary;))[&scope;][1]) = 1]" 1001 1001 mode="index-tertiary-markup"> 1002 1002 <xsl:with-param name="scope" select="$scope"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/autotoc.xsl
r2262b78 r410e228b 211 211 leader-alignment="reference-area" 212 212 keep-with-next.within-line="always"/> 213 <xsl:text> </xsl:text> 213 <xsl:text> </xsl:text> 214 214 <fo:basic-link internal-destination="{$id}"> 215 215 <fo:page-number-citation ref-id="{$id}"/> … … 338 338 leader-alignment="reference-area" 339 339 keep-with-next.within-line="always"/> 340 <xsl:text> </xsl:text> 340 <xsl:text> </xsl:text> 341 341 <fo:basic-link internal-destination="{$id}"> 342 342 <fo:page-number-citation ref-id="{$id}"/> … … 371 371 <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> 372 372 373 <xsl:if test="$toc.section.depth > 0 373 <xsl:if test="$toc.section.depth > 0 374 374 and $toc.max.depth > $depth.from.context 375 375 and $nodes"> … … 409 409 <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> 410 410 411 <xsl:if test="$toc.section.depth > 0 411 <xsl:if test="$toc.section.depth > 0 412 412 and $toc.max.depth > $depth.from.context 413 413 and $nodes"> … … 491 491 <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> 492 492 493 <xsl:if test="$toc.section.depth > 0 493 <xsl:if test="$toc.section.depth > 0 494 494 and $toc.max.depth > $depth.from.context 495 495 and $nodes"> … … 525 525 <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> 526 526 527 <xsl:if test="$toc.section.depth > 1 527 <xsl:if test="$toc.section.depth > 1 528 528 and $toc.max.depth > $depth.from.context 529 529 and sect2"> … … 533 533 </xsl:attribute> 534 534 535 <xsl:apply-templates select="sect2|qandaset[$qanda.in.toc != 0]" 535 <xsl:apply-templates select="sect2|qandaset[$qanda.in.toc != 0]" 536 536 mode="toc"> 537 537 <xsl:with-param name="toc-context" select="$toc-context"/> … … 563 563 <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> 564 564 565 <xsl:if test="$toc.section.depth > 2 565 <xsl:if test="$toc.section.depth > 2 566 566 and $toc.max.depth > $depth.from.context 567 567 and sect3"> … … 573 573 </xsl:attribute> 574 574 575 <xsl:apply-templates select="sect3|qandaset[$qanda.in.toc != 0]" 575 <xsl:apply-templates select="sect3|qandaset[$qanda.in.toc != 0]" 576 576 mode="toc"> 577 577 <xsl:with-param name="toc-context" select="$toc-context"/> … … 603 603 <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> 604 604 605 <xsl:if test="$toc.section.depth > 3 605 <xsl:if test="$toc.section.depth > 3 606 606 and $toc.max.depth > $depth.from.context 607 607 and sect4"> … … 613 613 </xsl:attribute> 614 614 615 <xsl:apply-templates select="sect4|qandaset[$qanda.in.toc != 0]" 615 <xsl:apply-templates select="sect4|qandaset[$qanda.in.toc != 0]" 616 616 mode="toc"> 617 617 <xsl:with-param name="toc-context" select="$toc-context"/> … … 643 643 <xsl:variable name="depth.from.context" select="count(ancestor::*)-count($toc-context/ancestor::*)"/> 644 644 645 <xsl:if test="$toc.section.depth > 4 645 <xsl:if test="$toc.section.depth > 4 646 646 and $toc.max.depth > $depth.from.context 647 647 and sect5"> … … 653 653 </xsl:attribute> 654 654 655 <xsl:apply-templates select="sect5|qandaset[$qanda.in.toc != 0]" 655 <xsl:apply-templates select="sect5|qandaset[$qanda.in.toc != 0]" 656 656 mode="toc"> 657 657 <xsl:with-param name="toc-context" select="$toc-context"/> … … 718 718 </xsl:call-template> 719 719 720 <xsl:if test="$toc.section.depth > $depth 720 <xsl:if test="$toc.section.depth > $depth 721 721 and $toc.max.depth > $depth.from.context 722 722 and section"> … … 728 728 </xsl:attribute> 729 729 730 <xsl:apply-templates select="section|qandaset[$qanda.in.toc != 0]" 730 <xsl:apply-templates select="section|qandaset[$qanda.in.toc != 0]" 731 731 mode="toc"> 732 732 <xsl:with-param name="toc-context" select="$toc-context"/> … … 834 834 </xsl:call-template> 835 835 836 <xsl:if test="$toc.section.depth > $depth 836 <xsl:if test="$toc.section.depth > $depth 837 837 and $toc.max.depth > $depth.from.context 838 838 and (child::qandadiv or child::qandaentry)"> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/axf.xsl
r2262b78 r410e228b 18 18 <xsl:when test="$authors[self::authorgroup]"> 19 19 <xsl:call-template name="person.name.list"> 20 <xsl:with-param name="person.list" 20 <xsl:with-param name="person.list" 21 21 select="$authors/*[self::author|self::corpauthor| 22 22 self::othercredit|self::editor]"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/biblio.xsl
r2262b78 r410e228b 328 328 </xsl:template> 329 329 330 <xsl:template match="artheader|articleinfo|article/info" 330 <xsl:template match="artheader|articleinfo|article/info" 331 331 mode="bibliography.mode"> 332 332 <fo:inline> … … 393 393 </xsl:template> 394 394 395 <xsl:template match="biblioset/title|biblioset/citetitle" 395 <xsl:template match="biblioset/title|biblioset/citetitle" 396 396 mode="bibliography.mode"> 397 397 <xsl:variable name="relation" select="../@relation"/> … … 565 565 566 566 <xsl:template match="indexterm" mode="bibliography.mode"> 567 <xsl:apply-templates select="."/> 567 <xsl:apply-templates select="."/> 568 568 </xsl:template> 569 569 … … 886 886 </xsl:template> 887 887 888 <xsl:template match="bibliomset/title|bibliomset/citetitle" 888 <xsl:template match="bibliomset/title|bibliomset/citetitle" 889 889 mode="bibliomixed.mode"> 890 890 <xsl:variable name="relation" select="../@relation"/> … … 1011 1011 1012 1012 <xsl:template match="indexterm" mode="bibliomixed.mode"> 1013 <xsl:apply-templates select="."/> 1013 <xsl:apply-templates select="."/> 1014 1014 </xsl:template> 1015 1015 -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/block.xsl
r2262b78 r410e228b 157 157 <fo:float float="{$position}" 158 158 clear="{$clear}"> 159 <fo:block-container 159 <fo:block-container 160 160 start-indent="{$start.indent}" 161 161 end-indent="{$end.indent}"> … … 180 180 </fo:block> 181 181 </xsl:when> 182 <xsl:when test="$axf.extensions != 0 and 182 <xsl:when test="$axf.extensions != 0 and 183 183 ($position = 'left' or $position = 'start')"> 184 184 <fo:float float="{$position}" 185 185 clear="{$clear}"> 186 <fo:block-container 186 <fo:block-container 187 187 inline-progression-dimension=".001mm" 188 188 end-indent="{$start.indent} + {$width} + {$end.indent}"> … … 205 205 206 206 </xsl:when> 207 <xsl:when test="$axf.extensions != 0 and 207 <xsl:when test="$axf.extensions != 0 and 208 208 ($position = 'right' or $position = 'end')"> 209 209 <!-- Special case for handling inline floats in Antenna House--> 210 210 <fo:float float="{$position}" 211 211 clear="{$clear}"> 212 <fo:block-container 212 <fo:block-container 213 213 inline-progression-dimension=".001mm" 214 214 end-indent="-{$body.end.indent}" … … 297 297 <xsl:with-param name="start.indent"> 298 298 <xsl:choose> 299 <xsl:when test="$position = 'start' or 299 <xsl:when test="$position = 'start' or 300 300 $position = 'left'">0pt</xsl:when> 301 <xsl:when test="$position = 'end' or 301 <xsl:when test="$position = 'end' or 302 302 $position = 'right'">0.5em</xsl:when> 303 303 <xsl:otherwise>0pt</xsl:otherwise> … … 306 306 <xsl:with-param name="end.indent"> 307 307 <xsl:choose> 308 <xsl:when test="$position = 'start' or 308 <xsl:when test="$position = 'start' or 309 309 $position = 'left'">0.5em</xsl:when> 310 <xsl:when test="$position = 'end' or 310 <xsl:when test="$position = 'end' or 311 311 $position = 'right'">0pt</xsl:when> 312 312 <xsl:otherwise>0pt</xsl:otherwise> … … 361 361 <xsl:with-param name="start.indent"> 362 362 <xsl:choose> 363 <xsl:when test="$position = 'start' or 363 <xsl:when test="$position = 'start' or 364 364 $position = 'left'">0pt</xsl:when> 365 <xsl:when test="$position = 'end' or 365 <xsl:when test="$position = 'end' or 366 366 $position = 'right'">0.5em</xsl:when> 367 367 <xsl:otherwise>0pt</xsl:otherwise> … … 370 370 <xsl:with-param name="end.indent"> 371 371 <xsl:choose> 372 <xsl:when test="$position = 'start' or 372 <xsl:when test="$position = 'start' or 373 373 $position = 'left'">0.5em</xsl:when> 374 <xsl:when test="$position = 'end' or 374 <xsl:when test="$position = 'end' or 375 375 $position = 'right'">0pt</xsl:when> 376 376 <xsl:otherwise>0pt</xsl:otherwise> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/component.xsl
r2262b78 r410e228b 353 353 <xsl:variable name="toc.params"> 354 354 <xsl:call-template name="find.path.params"> 355 <xsl:with-param name="table" 355 <xsl:with-param name="table" 356 356 select="normalize-space($generate.toc)"/> 357 357 </xsl:call-template> … … 359 359 <xsl:if test="contains($toc.params, 'toc')"> 360 360 <xsl:call-template name="component.toc"> 361 <xsl:with-param name="toc.title.p" 361 <xsl:with-param name="toc.title.p" 362 362 select="contains($toc.params, 'title')"/> 363 363 </xsl:call-template> … … 451 451 <xsl:if test="contains($toc.params, 'toc')"> 452 452 <xsl:call-template name="component.toc"> 453 <xsl:with-param name="toc.title.p" 453 <xsl:with-param name="toc.title.p" 454 454 select="contains($toc.params, 'title')"/> 455 455 </xsl:call-template> … … 543 543 <xsl:if test="contains($toc.params, 'toc')"> 544 544 <xsl:call-template name="component.toc"> 545 <xsl:with-param name="toc.title.p" 545 <xsl:with-param name="toc.title.p" 546 546 select="contains($toc.params, 'title')"/> 547 547 </xsl:call-template> … … 635 635 <xsl:if test="contains($toc.params, 'toc')"> 636 636 <xsl:call-template name="component.toc"> 637 <xsl:with-param name="toc.title.p" 637 <xsl:with-param name="toc.title.p" 638 638 select="contains($toc.params, 'title')"/> 639 639 </xsl:call-template> … … 677 677 678 678 <xsl:if test="$passivetex.extensions != 0"> 679 <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 680 fotex-bookmark-level="{count(ancestor::*)+2}" 679 <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 680 fotex-bookmark-level="{count(ancestor::*)+2}" 681 681 fotex-bookmark-label="{$id}"> 682 682 <xsl:value-of select="$titleabbrev"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/division.xsl
r2262b78 r410e228b 88 88 <xsl:attribute name="format"> 89 89 <xsl:call-template name="page.number.format"> 90 <xsl:with-param name="master-reference" 90 <xsl:with-param name="master-reference" 91 91 select="$titlepage-master-reference"/> 92 92 </xsl:call-template> … … 95 95 <xsl:attribute name="initial-page-number"> 96 96 <xsl:call-template name="initial.page.number"> 97 <xsl:with-param name="master-reference" 97 <xsl:with-param name="master-reference" 98 98 select="$titlepage-master-reference"/> 99 99 </xsl:call-template> … … 102 102 <xsl:attribute name="force-page-count"> 103 103 <xsl:call-template name="force.page.count"> 104 <xsl:with-param name="master-reference" 104 <xsl:with-param name="master-reference" 105 105 select="$titlepage-master-reference"/> 106 106 </xsl:call-template> … … 134 134 <xsl:call-template name="set.flow.properties"> 135 135 <xsl:with-param name="element" select="local-name(.)"/> 136 <xsl:with-param name="master-reference" 136 <xsl:with-param name="master-reference" 137 137 select="$titlepage-master-reference"/> 138 138 </xsl:call-template> … … 204 204 <xsl:call-template name="set.flow.properties"> 205 205 <xsl:with-param name="element" select="local-name(.)"/> 206 <xsl:with-param name="master-reference" 206 <xsl:with-param name="master-reference" 207 207 select="$lot-master-reference"/> 208 208 </xsl:call-template> … … 300 300 <xsl:with-param name="content"> 301 301 <xsl:call-template name="division.toc"> 302 <xsl:with-param name="toc.title.p" 302 <xsl:with-param name="toc.title.p" 303 303 select="contains($toc.params, 'title')"/> 304 304 </xsl:call-template> … … 352 352 </xsl:if> 353 353 354 <xsl:if test="contains($toc.params,'equation') and 354 <xsl:if test="contains($toc.params,'equation') and 355 355 .//equation[title or info/title]"> 356 356 <xsl:call-template name="page.sequence"> … … 362 362 <xsl:call-template name="list.of.titles"> 363 363 <xsl:with-param name="titles" select="'equation'"/> 364 <xsl:with-param name="nodes" 364 <xsl:with-param name="nodes" 365 365 select=".//equation[title or info/title]"/> 366 366 </xsl:call-template> … … 369 369 </xsl:if> 370 370 371 <xsl:if test="contains($toc.params,'procedure') and 371 <xsl:if test="contains($toc.params,'procedure') and 372 372 .//procedure[title or info/title]"> 373 373 <xsl:call-template name="page.sequence"> … … 379 379 <xsl:call-template name="list.of.titles"> 380 380 <xsl:with-param name="titles" select="'procedure'"/> 381 <xsl:with-param name="nodes" 381 <xsl:with-param name="nodes" 382 382 select=".//procedure[title or info/title]"/> 383 383 </xsl:call-template> … … 417 417 <xsl:attribute name="format"> 418 418 <xsl:call-template name="page.number.format"> 419 <xsl:with-param name="master-reference" 419 <xsl:with-param name="master-reference" 420 420 select="$titlepage-master-reference"/> 421 421 </xsl:call-template> … … 424 424 <xsl:attribute name="initial-page-number"> 425 425 <xsl:call-template name="initial.page.number"> 426 <xsl:with-param name="master-reference" 426 <xsl:with-param name="master-reference" 427 427 select="$titlepage-master-reference"/> 428 428 </xsl:call-template> … … 431 431 <xsl:attribute name="force-page-count"> 432 432 <xsl:call-template name="force.page.count"> 433 <xsl:with-param name="master-reference" 433 <xsl:with-param name="master-reference" 434 434 select="$titlepage-master-reference"/> 435 435 </xsl:call-template> … … 463 463 <xsl:call-template name="set.flow.properties"> 464 464 <xsl:with-param name="element" select="local-name(.)"/> 465 <xsl:with-param name="master-reference" 465 <xsl:with-param name="master-reference" 466 466 select="$titlepage-master-reference"/> 467 467 </xsl:call-template> … … 517 517 <xsl:call-template name="page.number.format"> 518 518 <xsl:with-param name="element" select="'toc'"/> 519 <xsl:with-param name="master-reference" 519 <xsl:with-param name="master-reference" 520 520 select="$lot-master-reference"/> 521 521 </xsl:call-template> … … 524 524 <xsl:call-template name="initial.page.number"> 525 525 <xsl:with-param name="element" select="'toc'"/> 526 <xsl:with-param name="master-reference" 526 <xsl:with-param name="master-reference" 527 527 select="$lot-master-reference"/> 528 528 </xsl:call-template> … … 530 530 <xsl:attribute name="force-page-count"> 531 531 <xsl:call-template name="force.page.count"> 532 <xsl:with-param name="master-reference" 532 <xsl:with-param name="master-reference" 533 533 select="$lot-master-reference"/> 534 534 </xsl:call-template> … … 562 562 <xsl:call-template name="set.flow.properties"> 563 563 <xsl:with-param name="element" select="local-name(.)"/> 564 <xsl:with-param name="master-reference" 564 <xsl:with-param name="master-reference" 565 565 select="$lot-master-reference"/> 566 566 </xsl:call-template> … … 568 568 <xsl:call-template name="division.toc"> 569 569 <xsl:with-param name="toc-context" select="$part"/> 570 <xsl:with-param name="toc.title.p" 570 <xsl:with-param name="toc.title.p" 571 571 select="contains($toc.params, 'title')"/> 572 572 </xsl:call-template> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/docbook.xsl
r2262b78 r410e228b 108 108 <xsl:value-of select="name(.)"/> 109 109 <xsl:text>></xsl:text> 110 <xsl:apply-templates/> 110 <xsl:apply-templates/> 111 111 <xsl:text></</xsl:text> 112 112 <xsl:value-of select="name(.)"/> … … 247 247 <!-- Include all id values in XEP output --> 248 248 <xsl:if test="$xep.extensions != 0"> 249 <xsl:processing-instruction 249 <xsl:processing-instruction 250 250 name="xep-pdf-drop-unused-destinations">false</xsl:processing-instruction> 251 251 </xsl:if> … … 274 274 <xsl:if test="$fop1.extensions != 0"> 275 275 <xsl:variable name="bookmarks"> 276 <xsl:apply-templates select="$document.element" 276 <xsl:apply-templates select="$document.element" 277 277 mode="fop1.outline"/> 278 278 </xsl:variable> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/footnote.xsl
r2262b78 r410e228b 89 89 <xsl:variable name="fnum"> 90 90 <!-- FIXME: list in @from is probably not complete --> 91 <xsl:number level="any" 92 from="chapter|appendix|preface|article|refentry|bibliography" 93 count="footnote[not(@label)][not(ancestor::table) and not(ancestor::informaltable)]|ulink[$ulink.footnotes != 0][node()][@url != .][not(ancestor::footnote)][$ulink.show != 0]" 91 <xsl:number level="any" 92 from="chapter|appendix|preface|article|refentry|bibliography" 93 count="footnote[not(@label)][not(ancestor::table) and not(ancestor::informaltable)]|ulink[$ulink.footnotes != 0][node()][@url != .][not(ancestor::footnote)][$ulink.show != 0]" 94 94 format="1"/> 95 95 </xsl:variable> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/formal.xsl
r2262b78 r410e228b 46 46 47 47 <xsl:choose> 48 <!-- tables have their own templates and 48 <!-- tables have their own templates and 49 49 are not handled by formal.object --> 50 50 <xsl:when test="self::figure"> … … 132 132 133 133 <xsl:choose> 134 <!-- informaltables have their own templates and 134 <!-- informaltables have their own templates and 135 135 are not handled by formal.object --> 136 136 <xsl:when test="local-name(.) = 'equation'"> … … 181 181 </xsl:when> 182 182 <xsl:otherwise> 183 <fo:block id="{$id}" 183 <fo:block id="{$id}" 184 184 xsl:use-attribute-sets="informal.object.properties"> 185 185 <xsl:if test="$keep.together != ''"> … … 378 378 <xsl:text>Broken table: tr descendent of CALS Table.</xsl:text> 379 379 <xsl:text>The text in the first tr is: </xsl:text> 380 <xsl:value-of 380 <xsl:value-of 381 381 select="(tgroup//tr)[1]"/> 382 382 </xsl:message> … … 386 386 <xsl:text>Broken table: row descendent of HTML table.</xsl:text> 387 387 <xsl:text>The text in the first row is: </xsl:text> 388 <xsl:value-of 388 <xsl:value-of 389 389 select=".//row[1]"/> 390 390 </xsl:message> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/glossary.xsl
r2262b78 r410e228b 84 84 <xsl:apply-templates select="$entries" mode="glossary.as.list"> 85 85 <xsl:sort lang="{$language}" 86 select="translate(glossterm, $lowercase, 86 select="translate(glossterm, $lowercase, 87 87 $uppercase)"/> 88 88 </xsl:apply-templates> … … 101 101 <xsl:apply-templates select="$entries" mode="glossary.as.blocks"> 102 102 <xsl:sort lang="{$language}" 103 select="translate(glossterm, $lowercase, 103 select="translate(glossterm, $lowercase, 104 104 $uppercase)"/> 105 105 </xsl:apply-templates> … … 116 116 <xsl:apply-templates select="$entries" mode="glossary.as.blocks"> 117 117 <xsl:sort lang="{$language}" 118 select="translate(glossterm, $lowercase, 118 select="translate(glossterm, $lowercase, 119 119 $uppercase)"/> 120 120 </xsl:apply-templates> … … 137 137 <xsl:apply-templates select="$entries" mode="glossary.as.list"> 138 138 <xsl:sort lang="{$language}" 139 select="translate(glossterm, $lowercase, 139 select="translate(glossterm, $lowercase, 140 140 $uppercase)"/> 141 141 </xsl:apply-templates> … … 261 261 <xsl:apply-templates select="glossentry" mode="glossary.as.list"> 262 262 <xsl:sort lang="{$language}" 263 select="translate(glossterm, $lowercase, 263 select="translate(glossterm, $lowercase, 264 264 $uppercase)"/> 265 265 </xsl:apply-templates> … … 276 276 <xsl:apply-templates select="glossentry" mode="glossary.as.blocks"> 277 277 <xsl:sort lang="{$language}" 278 select="translate(glossterm, $lowercase, 278 select="translate(glossterm, $lowercase, 279 279 $uppercase)"/> 280 280 </xsl:apply-templates> … … 290 290 <xsl:apply-templates select="glossentry" mode="glossary.as.blocks"> 291 291 <xsl:sort lang="{$language}" 292 select="translate(glossterm, $lowercase, 292 select="translate(glossterm, $lowercase, 293 293 $uppercase)"/> 294 294 </xsl:apply-templates> … … 307 307 <xsl:apply-templates select="glossentry" mode="glossary.as.list"> 308 308 <xsl:sort lang="{$language}" 309 select="translate(glossterm, $lowercase, 309 select="translate(glossterm, $lowercase, 310 310 $uppercase)"/> 311 311 </xsl:apply-templates> … … 443 443 <xsl:for-each select="$collection//glossentry"> 444 444 <xsl:sort lang="{$language}" 445 select="translate(glossterm, $lowercase, 445 select="translate(glossterm, $lowercase, 446 446 $uppercase)"/> 447 447 <xsl:variable name="cterm" select="glossterm"/> 448 448 <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> 449 <xsl:apply-templates select="." 449 <xsl:apply-templates select="." 450 450 mode="auto-glossary-as-list"/> 451 451 </xsl:if> … … 456 456 <xsl:variable name="cterm" select="glossterm"/> 457 457 <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> 458 <xsl:apply-templates select="." 458 <xsl:apply-templates select="." 459 459 mode="auto-glossary-as-list"/> 460 460 </xsl:if> … … 470 470 <xsl:for-each select="$collection//glossentry"> 471 471 <xsl:sort lang="{$language}" 472 select="translate(glossterm, $lowercase, 472 select="translate(glossterm, $lowercase, 473 473 $uppercase)"/> 474 474 <xsl:variable name="cterm" select="glossterm"/> 475 475 <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> 476 <xsl:apply-templates select="." 476 <xsl:apply-templates select="." 477 477 mode="auto-glossary-as-blocks"/> 478 478 </xsl:if> … … 483 483 <xsl:variable name="cterm" select="glossterm"/> 484 484 <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> 485 <xsl:apply-templates select="." 485 <xsl:apply-templates select="." 486 486 mode="auto-glossary-as-blocks"/> 487 487 </xsl:if> … … 498 498 <xsl:for-each select="$collection//glossentry"> 499 499 <xsl:sort lang="{$language}" 500 select="translate(glossterm, $lowercase, 500 select="translate(glossterm, $lowercase, 501 501 $uppercase)"/> 502 502 <xsl:variable name="cterm" select="glossterm"/> 503 503 <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> 504 <xsl:apply-templates select="." 504 <xsl:apply-templates select="." 505 505 mode="auto-glossary-as-list"/> 506 506 </xsl:if> … … 511 511 <xsl:variable name="cterm" select="glossterm"/> 512 512 <xsl:if test="$terms[@baseform = $cterm or . = $cterm]"> 513 <xsl:apply-templates select="." 513 <xsl:apply-templates select="." 514 514 mode="auto-glossary-as-list"/> 515 515 </xsl:if> … … 709 709 <xsl:apply-templates select="$entries" mode="glossary.as.list"> 710 710 <xsl:sort lang="{$language}" 711 select="translate(glossterm, $lowercase, 711 select="translate(glossterm, $lowercase, 712 712 $uppercase)"/> 713 713 </xsl:apply-templates> … … 750 750 <xsl:choose> 751 751 <xsl:when test="acronym|abbrev"> 752 <xsl:apply-templates select="acronym|abbrev" 752 <xsl:apply-templates select="acronym|abbrev" 753 753 mode="glossary.as.list"/> 754 754 <xsl:text> (</xsl:text> 755 <xsl:apply-templates select="glossterm" 755 <xsl:apply-templates select="glossterm" 756 756 mode="glossary.as.list"/> 757 757 <xsl:text>)</xsl:text> 758 758 </xsl:when> 759 759 <xsl:otherwise> 760 <xsl:apply-templates select="glossterm" 760 <xsl:apply-templates select="glossterm" 761 761 mode="glossary.as.list"/> 762 762 </xsl:otherwise> … … 769 769 <xsl:if test="acronym|abbrev"> 770 770 <xsl:text> (</xsl:text> 771 <xsl:apply-templates select="acronym|abbrev" 771 <xsl:apply-templates select="acronym|abbrev" 772 772 mode="glossary.as.list"/> 773 773 <xsl:text>)</xsl:text> … … 934 934 <xsl:apply-templates select="$entries" mode="glossary.as.blocks"> 935 935 <xsl:sort lang="{$language}" 936 select="translate(glossterm, $lowercase, 936 select="translate(glossterm, $lowercase, 937 937 $uppercase)"/> 938 938 </xsl:apply-templates> … … 958 958 959 959 <fo:block xsl:use-attribute-sets="list.item.spacing" 960 keep-with-next.within-column="always" 960 keep-with-next.within-column="always" 961 961 keep-together.within-column="always"> 962 962 <xsl:call-template name="anchor"> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/graphics.xsl
r2262b78 r410e228b 113 113 <xsl:when test="$format = 'GIF89a'">image/gif</xsl:when> 114 114 <xsl:otherwise> 115 <xsl:value-of select="concat('image/', 115 <xsl:value-of select="concat('image/', 116 116 translate($format, &uppercase;, &lowercase;))"/> 117 117 </xsl:otherwise> … … 146 146 <xsl:when test="$ignore.image.scaling != 0">0</xsl:when> 147 147 <xsl:when test="@contentwidth">0</xsl:when> 148 <xsl:when test="@contentdepth and 148 <xsl:when test="@contentdepth and 149 149 @contentdepth != '100%'">0</xsl:when> 150 150 <xsl:when test="@scale">0</xsl:when> … … 170 170 <xsl:when test="local-name(.) = 'graphic' 171 171 or local-name(.) = 'inlinegraphic'"> 172 <!-- handle legacy graphic and inlinegraphic by new template --> 172 <!-- handle legacy graphic and inlinegraphic by new template --> 173 173 <xsl:call-template name="mediaobject.filename"> 174 174 <xsl:with-param name="object" select="."/> … … 379 379 <xsl:message terminate="yes"> 380 380 <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/> 381 <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 381 <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 382 382 </xsl:message> 383 383 </xsl:otherwise> … … 499 499 <xsl:message terminate="yes"> 500 500 <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/> 501 <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 501 <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 502 502 </xsl:message> 503 503 </xsl:otherwise> … … 581 581 <xsl:message terminate="yes"> 582 582 <xsl:text>Cannot insert </xsl:text><xsl:value-of select="$filename"/> 583 <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 583 <xsl:text>. Check use.extensions and textinsert.extension parameters.</xsl:text> 584 584 </xsl:message> 585 585 </xsl:otherwise> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/htmltbl.xsl
r2262b78 r410e228b 118 118 <xsl:attribute name="column-width"> 119 119 <xsl:choose> 120 <xsl:when test="$fop.extensions != 0 and 120 <xsl:when test="$fop.extensions != 0 and 121 121 contains(@width, '%')"> 122 122 <xsl:value-of select="concat('proportional-column-width(', -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/info.xsl
r2262b78 r410e228b 18 18 some of these elements are needed because the elements are 19 19 processed from named templates that are called with modes. 20 Since modes aren't sticky, these rules apply. 20 Since modes aren't sticky, these rules apply. 21 21 (TODO: clarify this comment) --> 22 22 -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/inline.xsl
r2262b78 r410e228b 39 39 <xsl:choose> 40 40 <xsl:when test="$xhref 41 and (not($node/@xlink:type) or 41 and (not($node/@xlink:type) or 42 42 $node/@xlink:type='simple')"> 43 43 … … 771 771 <xsl:choose> 772 772 <xsl:when test="$target"> 773 <fo:basic-link internal-destination="{@linkend}" 773 <fo:basic-link internal-destination="{@linkend}" 774 774 xsl:use-attribute-sets="xref.properties"> 775 775 <xsl:call-template name="inline.italicseq"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/lists.xsl
r2262b78 r410e228b 41 41 42 42 <!-- Preserve order of PIs and comments --> 43 <xsl:apply-templates 43 <xsl:apply-templates 44 44 select="*[not(self::listitem 45 45 or self::title … … 49 49 50 50 <xsl:variable name="content"> 51 <xsl:apply-templates 51 <xsl:apply-templates 52 52 select="listitem 53 53 |comment()[preceding-sibling::listitem] … … 172 172 <xsl:when test="$itemsymbol='triangle'">‣</xsl:when> 173 173 <xsl:when test="$itemsymbol='point'">›</xsl:when> 174 <xsl:when test="$itemsymbol='hand'"><fo:inline 174 <xsl:when test="$itemsymbol='hand'"><fo:inline 175 175 font-family="Wingdings 2">A</fo:inline></xsl:when> 176 176 --> … … 204 204 205 205 <!-- Preserve order of PIs and comments --> 206 <xsl:apply-templates 206 <xsl:apply-templates 207 207 select="*[not(self::listitem 208 208 or self::title … … 212 212 213 213 <xsl:variable name="content"> 214 <xsl:apply-templates 214 <xsl:apply-templates 215 215 select="listitem 216 216 |comment()[preceding-sibling::listitem] … … 307 307 </xsl:template> 308 308 309 <xsl:template match="listitem/*[1][local-name()='para' or 310 local-name()='simpara' or 309 <xsl:template match="listitem/*[1][local-name()='para' or 310 local-name()='simpara' or 311 311 local-name()='formalpara'] 312 |glossdef/*[1][local-name()='para' or 313 local-name()='simpara' or 312 |glossdef/*[1][local-name()='para' or 313 local-name()='simpara' or 314 314 local-name()='formalpara'] 315 |step/*[1][local-name()='para' or 316 local-name()='simpara' or 315 |step/*[1][local-name()='para' or 316 local-name()='simpara' or 317 317 local-name()='formalpara'] 318 |callout/*[1][local-name()='para' or 319 local-name()='simpara' or 318 |callout/*[1][local-name()='para' or 319 local-name()='simpara' or 320 320 local-name()='formalpara']" 321 321 priority="2"> … … 429 429 430 430 <!-- Preserve order of PIs and comments --> 431 <xsl:apply-templates 431 <xsl:apply-templates 432 432 select="*[not(self::varlistentry 433 433 or self::title … … 484 484 <xsl:when test="string-length($term.text) > $longest"> 485 485 <xsl:call-template name="longest.term"> 486 <xsl:with-param name="longest" 486 <xsl:with-param name="longest" 487 487 select="string-length($term.text)"/> 488 488 <xsl:with-param name="maxlength" select="$maxlength"/> … … 545 545 546 546 <!-- Preserve order of PIs and comments --> 547 <xsl:apply-templates 547 <xsl:apply-templates 548 548 select="*[not(self::varlistentry 549 549 or self::title … … 577 577 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> 578 578 579 <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" 580 keep-together.within-column="always" 579 <fo:block id="{$id}" xsl:use-attribute-sets="list.item.spacing" 580 keep-together.within-column="always" 581 581 keep-with-next.within-column="always"> 582 582 <xsl:apply-templates select="term"/> … … 655 655 <xsl:attribute name="table-layout">auto</xsl:attribute> 656 656 <xsl:if test="$explicit.table.width != ''"> 657 <xsl:attribute name="width"><xsl:value-of 657 <xsl:attribute name="width"><xsl:value-of 658 658 select="$explicit.table.width"/></xsl:attribute> 659 659 </xsl:if> … … 661 661 <xsl:otherwise> 662 662 <xsl:attribute name="table-layout">fixed</xsl:attribute> 663 <xsl:attribute name="width"><xsl:value-of 663 <xsl:attribute name="width"><xsl:value-of 664 664 select="$table.width"/></xsl:attribute> 665 665 </xsl:otherwise> … … 748 748 <xsl:attribute name="table-layout">auto</xsl:attribute> 749 749 <xsl:if test="$explicit.table.width != ''"> 750 <xsl:attribute name="width"><xsl:value-of 750 <xsl:attribute name="width"><xsl:value-of 751 751 select="$explicit.table.width"/></xsl:attribute> 752 752 </xsl:if> … … 754 754 <xsl:otherwise> 755 755 <xsl:attribute name="table-layout">fixed</xsl:attribute> 756 <xsl:attribute name="width"><xsl:value-of 756 <xsl:attribute name="width"><xsl:value-of 757 757 select="$table.width"/></xsl:attribute> 758 758 </xsl:otherwise> … … 929 929 |processing-instruction()[not(preceding-sibling::step)]"/> 930 930 931 <xsl:variable name="steps" 931 <xsl:variable name="steps" 932 932 select="step 933 933 |comment()[preceding-sibling::step] … … 1025 1025 <xsl:template match="step/title"> 1026 1026 <fo:block font-weight="bold" 1027 keep-together.within-column="always" 1027 keep-together.within-column="always" 1028 1028 keep-with-next.within-column="always"> 1029 1029 <xsl:apply-templates/> … … 1159 1159 <!-- The above restores alignment altered by image align attribute --> 1160 1160 <xsl:if test="title|info/title"> 1161 <xsl:apply-templates select="(title|info/title)[1]" 1161 <xsl:apply-templates select="(title|info/title)[1]" 1162 1162 mode="list.title.mode"/> 1163 1163 </xsl:if> 1164 1164 1165 1165 <!-- Preserve order of PIs and comments --> 1166 <xsl:apply-templates 1166 <xsl:apply-templates 1167 1167 select="*[not(self::callout or self::title or self::titleabbrev)] 1168 1168 |comment()[not(preceding-sibling::callout)] -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/math.xsl
r2262b78 r410e228b 66 66 </xsl:template> 67 67 68 <xsl:template match="inlineequation/alt[@role='tex'] | 68 <xsl:template match="inlineequation/alt[@role='tex'] | 69 69 inlineequation/inlinemediaobject/textobject[@role='tex']" priority="1"> 70 70 <xsl:param name="output.delims" select="1"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/pagesetup.xsl
r2262b78 r410e228b 1246 1246 <fo:conditional-page-master-reference master-reference="titlepage-odd" 1247 1247 odd-or-even="odd"/> 1248 <fo:conditional-page-master-reference 1248 <fo:conditional-page-master-reference 1249 1249 odd-or-even="even"> 1250 1250 <xsl:attribute name="master-reference"> … … 1267 1267 <fo:conditional-page-master-reference master-reference="lot-odd" 1268 1268 odd-or-even="odd"/> 1269 <fo:conditional-page-master-reference 1269 <fo:conditional-page-master-reference 1270 1270 odd-or-even="even"> 1271 1271 <xsl:attribute name="master-reference"> … … 1288 1288 <fo:conditional-page-master-reference master-reference="front-odd" 1289 1289 odd-or-even="odd"/> 1290 <fo:conditional-page-master-reference 1290 <fo:conditional-page-master-reference 1291 1291 odd-or-even="even"> 1292 1292 <xsl:attribute name="master-reference"> … … 1309 1309 <fo:conditional-page-master-reference master-reference="body-odd" 1310 1310 odd-or-even="odd"/> 1311 <fo:conditional-page-master-reference 1311 <fo:conditional-page-master-reference 1312 1312 odd-or-even="even"> 1313 1313 <xsl:attribute name="master-reference"> … … 1330 1330 <fo:conditional-page-master-reference master-reference="back-odd" 1331 1331 odd-or-even="odd"/> 1332 <fo:conditional-page-master-reference 1332 <fo:conditional-page-master-reference 1333 1333 odd-or-even="even"> 1334 1334 <xsl:attribute name="master-reference"> … … 1351 1351 <fo:conditional-page-master-reference master-reference="index-odd" 1352 1352 odd-or-even="odd"/> 1353 <fo:conditional-page-master-reference 1353 <fo:conditional-page-master-reference 1354 1354 odd-or-even="even"> 1355 1355 <xsl:attribute name="master-reference"> … … 1373 1373 <fo:conditional-page-master-reference master-reference="titlepage-odd-draft" 1374 1374 odd-or-even="odd"/> 1375 <fo:conditional-page-master-reference 1375 <fo:conditional-page-master-reference 1376 1376 odd-or-even="even"> 1377 1377 <xsl:attribute name="master-reference"> … … 1394 1394 <fo:conditional-page-master-reference master-reference="lot-odd-draft" 1395 1395 odd-or-even="odd"/> 1396 <fo:conditional-page-master-reference 1396 <fo:conditional-page-master-reference 1397 1397 odd-or-even="even"> 1398 1398 <xsl:attribute name="master-reference"> … … 1415 1415 <fo:conditional-page-master-reference master-reference="front-odd-draft" 1416 1416 odd-or-even="odd"/> 1417 <fo:conditional-page-master-reference 1417 <fo:conditional-page-master-reference 1418 1418 odd-or-even="even"> 1419 1419 <xsl:attribute name="master-reference"> … … 1436 1436 <fo:conditional-page-master-reference master-reference="body-odd-draft" 1437 1437 odd-or-even="odd"/> 1438 <fo:conditional-page-master-reference 1438 <fo:conditional-page-master-reference 1439 1439 odd-or-even="even"> 1440 1440 <xsl:attribute name="master-reference"> … … 1457 1457 <fo:conditional-page-master-reference master-reference="back-odd-draft" 1458 1458 odd-or-even="odd"/> 1459 <fo:conditional-page-master-reference 1459 <fo:conditional-page-master-reference 1460 1460 odd-or-even="even"> 1461 1461 <xsl:attribute name="master-reference"> … … 1478 1478 <fo:conditional-page-master-reference master-reference="index-odd-draft" 1479 1479 odd-or-even="odd"/> 1480 <fo:conditional-page-master-reference 1480 <fo:conditional-page-master-reference 1481 1481 odd-or-even="even"> 1482 1482 <xsl:attribute name="master-reference"> … … 2203 2203 <!-- Select the first content that the stylesheet places 2204 2204 after the TOC --> 2205 <xsl:variable name="first.book.content" 2205 <xsl:variable name="first.book.content" 2206 2206 select="ancestor::book/*[ 2207 2207 not(self::title or … … 2223 2223 <!-- Change page.number.format if not --> 2224 2224 <xsl:when test="$element = 'preface'">auto-odd</xsl:when> 2225 <xsl:when test="($element = 'dedication' or $element = 'article') 2225 <xsl:when test="($element = 'dedication' or $element = 'article') 2226 2226 and not(preceding::chapter 2227 2227 or preceding::preface -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/param.xsl
r2262b78 r410e228b 413 413 <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute> 414 414 </xsl:attribute-set> 415 <xsl:param name="olink.doctitle">no</xsl:param> 415 <xsl:param name="olink.doctitle">no</xsl:param> 416 416 <xsl:param name="olink.base.uri"/> 417 417 <xsl:param name="olink.debug" select="0"/> … … 855 855 <xsl:param name="ulink.show" select="1"/> 856 856 <xsl:param name="use.extensions" select="0"/> 857 <xsl:param name="use.local.olink.style" select="0"/> 857 <xsl:param name="use.local.olink.style" select="0"/> 858 858 <xsl:param name="use.role.as.xrefstyle" select="1"/> 859 859 <xsl:param name="use.role.for.mediaobject" select="1"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/passivetex.xsl
r2262b78 r410e228b 7 7 $Id$ 8 8 ******************************************************************** 9 This extension stops PassiveTeX from merging subsequent '-' to 9 This extension stops PassiveTeX from merging subsequent '-' to 10 10 dashes. You must set passivetex.extensions to '1' if you want get 11 11 this functionality. -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/pi.xsl
r2262b78 r410e228b 132 132 <refsee role="params"> 133 133 <para><parameter>sidebar.float.type parameter</parameter>, 134 <parameter>sidebar.float.width parameter</parameter>, 134 <parameter>sidebar.float.width parameter</parameter>, 135 135 <parameter>sidebar.properties attribute-set</parameter>, 136 136 <parameter>sidebar.title.properties</parameter> … … 341 341 <xsl:with-param name="attribute" select="'label-width'"/> 342 342 </xsl:call-template> 343 </xsl:template> 343 </xsl:template> 344 344 345 345 <doc:pi name="dbfo_linenumbering.everyNth" xmlns=""> … … 657 657 <refsee role="params"> 658 658 <para><parameter>sidebar.float.type parameter</parameter>, 659 <parameter>sidebar.float.width parameter</parameter>, 659 <parameter>sidebar.float.width parameter</parameter>, 660 660 <parameter>sidebar.properties attribute-set</parameter>, 661 661 <parameter>sidebar.title.properties</parameter> … … 898 898 </xsl:when> 899 899 <xsl:when test="following-sibling::para"> 900 <fo:block space-after="0pt" 900 <fo:block space-after="0pt" 901 901 xsl:use-attribute-sets="normal.para.spacing"> 902 902 <xsl:copy-of select="$spacer"/> … … 907 907 following-sibling::example or 908 908 following-sibling::equation"> 909 <fo:block space-after="0pt" 909 <fo:block space-after="0pt" 910 910 xsl:use-attribute-sets="formal.object.properties"> 911 911 <xsl:copy-of select="$spacer"/> … … 916 916 following-sibling::informalexample or 917 917 following-sibling::informalequation"> 918 <fo:block space-after="0pt" 918 <fo:block space-after="0pt" 919 919 xsl:use-attribute-sets="informal.object.properties"> 920 920 <xsl:copy-of select="$spacer"/> … … 925 925 following-sibling::variablelist or 926 926 following-sibling::simplelist"> 927 <fo:block space-after="0pt" 927 <fo:block space-after="0pt" 928 928 xsl:use-attribute-sets="informal.object.properties"> 929 929 <xsl:copy-of select="$spacer"/> … … 932 932 <xsl:when test="following-sibling::listitem or 933 933 following-sibling::step"> 934 <fo:list-item space-after="0pt" 934 <fo:list-item space-after="0pt" 935 935 xsl:use-attribute-sets="informal.object.properties"> 936 936 <fo:list-item-label/> … … 946 946 following-sibling::sect5 or 947 947 following-sibling::section"> 948 <fo:block space-after="0pt" 948 <fo:block space-after="0pt" 949 949 xsl:use-attribute-sets="section.title.properties"> 950 950 <xsl:copy-of select="$spacer"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/profile-docbook.xsl
r2262b78 r410e228b 104 104 <xsl:value-of select="name(.)"/> 105 105 <xsl:text>></xsl:text> 106 <xsl:apply-templates/> 106 <xsl:apply-templates/> 107 107 <xsl:text></</xsl:text> 108 108 <xsl:value-of select="name(.)"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/qandaset.xsl
r2262b78 r410e228b 66 66 </xsl:choose> 67 67 68 <xsl:if test="(contains($toc.params, 'toc') and $toc != '0') 68 <xsl:if test="(contains($toc.params, 'toc') and $toc != '0') 69 69 or $toc = '1'"> 70 70 <xsl:call-template name="qandaset.toc"> … … 264 264 <xsl:if test="string-length($label.content) > 0"> 265 265 <fo:block font-weight="bold"> 266 <xsl:copy-of select="$label.content"/> 266 <xsl:copy-of select="$label.content"/> 267 267 </fo:block> 268 268 </xsl:if> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/refentry.xsl
r2262b78 r410e228b 197 197 198 198 <xsl:choose> 199 <xsl:when test="not(parent::*) or 200 (parent::reference and $refentry.pagebreak != 0) or 199 <xsl:when test="not(parent::*) or 200 (parent::reference and $refentry.pagebreak != 0) or 201 201 parent::part"> 202 202 <!-- make a page sequence --> … … 563 563 <!-- </xsl:call-template> --> 564 564 <!-- --> 565 <xsl:param name="section" 566 select="(ancestor::refsynopsysdiv 565 <xsl:param name="section" 566 select="(ancestor::refsynopsysdiv 567 567 |ancestor::refsection 568 568 |ancestor::refsect1 … … 604 604 605 605 <xsl:if test="$passivetex.extensions != 0"> 606 <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 607 fotex-bookmark-level="{$level + 2 + $offset}" 606 <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 607 fotex-bookmark-level="{$level + 2 + $offset}" 608 608 fotex-bookmark-label="{$id}"> 609 609 <xsl:value-of select="$title"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/sections.xsl
r2262b78 r410e228b 54 54 <xsl:element name="fo:{$section.container.element}" 55 55 use-attribute-sets="section.level1.properties"> 56 <xsl:attribute name="id"><xsl:value-of 56 <xsl:attribute name="id"><xsl:value-of 57 57 select="$id"/></xsl:attribute> 58 58 <xsl:call-template name="section.content"/> … … 62 62 <xsl:element name="fo:{$section.container.element}" 63 63 use-attribute-sets="section.level2.properties"> 64 <xsl:attribute name="id"><xsl:value-of 64 <xsl:attribute name="id"><xsl:value-of 65 65 select="$id"/></xsl:attribute> 66 66 <xsl:call-template name="section.content"/> … … 70 70 <xsl:element name="fo:{$section.container.element}" 71 71 use-attribute-sets="section.level3.properties"> 72 <xsl:attribute name="id"><xsl:value-of 72 <xsl:attribute name="id"><xsl:value-of 73 73 select="$id"/></xsl:attribute> 74 74 <xsl:call-template name="section.content"/> … … 78 78 <xsl:element name="fo:{$section.container.element}" 79 79 use-attribute-sets="section.level4.properties"> 80 <xsl:attribute name="id"><xsl:value-of 80 <xsl:attribute name="id"><xsl:value-of 81 81 select="$id"/></xsl:attribute> 82 82 <xsl:call-template name="section.content"/> … … 86 86 <xsl:element name="fo:{$section.container.element}" 87 87 use-attribute-sets="section.level5.properties"> 88 <xsl:attribute name="id"><xsl:value-of 88 <xsl:attribute name="id"><xsl:value-of 89 89 select="$id"/></xsl:attribute> 90 90 <xsl:call-template name="section.content"/> … … 94 94 <xsl:element name="fo:{$section.container.element}" 95 95 use-attribute-sets="section.level6.properties"> 96 <xsl:attribute name="id"><xsl:value-of 96 <xsl:attribute name="id"><xsl:value-of 97 97 select="$id"/></xsl:attribute> 98 98 <xsl:call-template name="section.content"/> … … 114 114 115 115 <xsl:if test="contains($toc.params, 'toc') 116 and (count(ancestor::section)+1) <= 116 and (count(ancestor::section)+1) <= 117 117 $generate.section.toc.level"> 118 118 <xsl:call-template name="section.toc"> 119 <xsl:with-param name="toc.title.p" 119 <xsl:with-param name="toc.title.p" 120 120 select="contains($toc.params, 'title')"/> 121 121 </xsl:call-template> … … 187 187 </xsl:call-template> 188 188 189 <fo:block id="{$id}" 189 <fo:block id="{$id}" 190 190 xsl:use-attribute-sets="section.level1.properties"> 191 191 <xsl:call-template name="section.titlepage"/> … … 199 199 200 200 <xsl:if test="contains($toc.params, 'toc') 201 and (count(ancestor::section)+1) <= 201 and (count(ancestor::section)+1) <= 202 202 $generate.section.toc.level"> 203 203 <xsl:call-template name="section.toc"> 204 <xsl:with-param name="toc.title.p" 204 <xsl:with-param name="toc.title.p" 205 205 select="contains($toc.params, 'title')"/> 206 206 </xsl:call-template> … … 236 236 priority="2"> 237 237 238 <xsl:variable name="section" 238 <xsl:variable name="section" 239 239 select="(ancestor::section | 240 240 ancestor::simplesect | … … 296 296 297 297 <xsl:if test="$passivetex.extensions != 0"> 298 <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 299 fotex-bookmark-level="{$level + 2}" 298 <fotex:bookmark xmlns:fotex="http://www.tug.org/fotex" 299 fotex-bookmark-level="{$level + 2}" 300 300 fotex-bookmark-label="{$id}"> 301 301 <xsl:value-of select="$marker.title"/> … … 329 329 <xsl:element name="fo:{$section.container.element}" 330 330 use-attribute-sets="section.level1.properties"> 331 <xsl:attribute name="id"><xsl:value-of 331 <xsl:attribute name="id"><xsl:value-of 332 332 select="$id"/></xsl:attribute> 333 333 <xsl:call-template name="sect1.titlepage"/> … … 342 342 and $generate.section.toc.level >= 1"> 343 343 <xsl:call-template name="section.toc"> 344 <xsl:with-param name="toc.title.p" 344 <xsl:with-param name="toc.title.p" 345 345 select="contains($toc.params, 'title')"/> 346 346 </xsl:call-template> … … 412 412 </xsl:call-template> 413 413 414 <fo:block id="{$id}" 414 <fo:block id="{$id}" 415 415 xsl:use-attribute-sets="section.level1.properties"> 416 416 <xsl:call-template name="sect1.titlepage"/> … … 426 426 and $generate.section.toc.level >= 1"> 427 427 <xsl:call-template name="section.toc"> 428 <xsl:with-param name="toc.title.p" 428 <xsl:with-param name="toc.title.p" 429 429 select="contains($toc.params, 'title')"/> 430 430 </xsl:call-template> … … 444 444 <xsl:element name="fo:{$section.container.element}" 445 445 use-attribute-sets="section.level2.properties"> 446 <xsl:attribute name="id"><xsl:value-of 446 <xsl:attribute name="id"><xsl:value-of 447 447 select="$id"/></xsl:attribute> 448 448 <xsl:call-template name="sect2.titlepage"/> … … 457 457 and $generate.section.toc.level >= 2"> 458 458 <xsl:call-template name="section.toc"> 459 <xsl:with-param name="toc.title.p" 459 <xsl:with-param name="toc.title.p" 460 460 select="contains($toc.params, 'title')"/> 461 461 </xsl:call-template> … … 474 474 <xsl:element name="fo:{$section.container.element}" 475 475 use-attribute-sets="section.level3.properties"> 476 <xsl:attribute name="id"><xsl:value-of 476 <xsl:attribute name="id"><xsl:value-of 477 477 select="$id"/></xsl:attribute> 478 478 <xsl:call-template name="sect3.titlepage"/> … … 487 487 and $generate.section.toc.level >= 3"> 488 488 <xsl:call-template name="section.toc"> 489 <xsl:with-param name="toc.title.p" 489 <xsl:with-param name="toc.title.p" 490 490 select="contains($toc.params, 'title')"/> 491 491 </xsl:call-template> … … 504 504 <xsl:element name="fo:{$section.container.element}" 505 505 use-attribute-sets="section.level4.properties"> 506 <xsl:attribute name="id"><xsl:value-of 506 <xsl:attribute name="id"><xsl:value-of 507 507 select="$id"/></xsl:attribute> 508 508 <xsl:call-template name="sect4.titlepage"/> … … 517 517 and $generate.section.toc.level >= 4"> 518 518 <xsl:call-template name="section.toc"> 519 <xsl:with-param name="toc.title.p" 519 <xsl:with-param name="toc.title.p" 520 520 select="contains($toc.params, 'title')"/> 521 521 </xsl:call-template> … … 534 534 <xsl:element name="fo:{$section.container.element}" 535 535 use-attribute-sets="section.level5.properties"> 536 <xsl:attribute name="id"><xsl:value-of 536 <xsl:attribute name="id"><xsl:value-of 537 537 select="$id"/></xsl:attribute> 538 538 <xsl:call-template name="sect5.titlepage"/> … … 547 547 and $generate.section.toc.level >= 5"> 548 548 <xsl:call-template name="section.toc"> 549 <xsl:with-param name="toc.title.p" 549 <xsl:with-param name="toc.title.p" 550 550 select="contains($toc.params, 'title')"/> 551 551 </xsl:call-template> … … 563 563 564 564 <xsl:element name="fo:{$section.container.element}"> 565 <xsl:attribute name="id"><xsl:value-of 565 <xsl:attribute name="id"><xsl:value-of 566 566 select="$id"/></xsl:attribute> 567 567 <xsl:call-template name="simplesect.titlepage"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/table.xsl
r2262b78 r410e228b 180 180 <xsl:param name="table.block"/> 181 181 <xsl:choose> 182 <xsl:when test="@orient='land' and 183 $fop.extensions = 0 and 182 <xsl:when test="@orient='land' and 183 $fop.extensions = 0 and 184 184 $passivetex.extensions = 0" > 185 185 <fo:block-container reference-orientation="90" … … 1069 1069 </xsl:if> 1070 1070 1071 <xsl:if test="$colsep.inherit > 0 and 1071 <xsl:if test="$colsep.inherit > 0 and 1072 1072 $col < ancestor::tgroup/@cols"> 1073 1073 <xsl:call-template name="border"> … … 1110 1110 <xsl:otherwise> 1111 1111 <!-- HTML table --> 1112 <xsl:variable name="border" 1112 <xsl:variable name="border" 1113 1113 select="(ancestor::table | 1114 1114 ancestor::informaltable)[last()]/@border"/> … … 1477 1477 <xsl:text>proportional-column-width(</xsl:text> 1478 1478 <xsl:choose> 1479 <xsl:when test="substring-before($colwidth, '*') != ''"> 1479 <xsl:when test="substring-before($colwidth, '*') != ''"> 1480 1480 <xsl:value-of select="substring-before($colwidth, '*')"/> 1481 1481 </xsl:when> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/titlepage.templates.xml
r2262b78 r410e228b 1022 1022 <t:titlepage t:element="sidebar" t:wrapper="fo:block"> 1023 1023 <t:titlepage-content t:side="recto"> 1024 <title 1024 <title 1025 1025 font-family="{$title.fontset}" 1026 1026 font-weight="bold"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/toc.xsl
r2262b78 r410e228b 36 36 <xsl:call-template name="page.number.format"> 37 37 <xsl:with-param name="element" select="'toc'"/> 38 <xsl:with-param name="master-reference" 38 <xsl:with-param name="master-reference" 39 39 select="$master-reference"/> 40 40 </xsl:call-template> … … 44 44 <xsl:call-template name="initial.page.number"> 45 45 <xsl:with-param name="element" select="'toc'"/> 46 <xsl:with-param name="master-reference" 46 <xsl:with-param name="master-reference" 47 47 select="$master-reference"/> 48 48 </xsl:call-template> … … 51 51 <xsl:attribute name="force-page-count"> 52 52 <xsl:call-template name="force.page.count"> 53 <xsl:with-param name="master-reference" 53 <xsl:with-param name="master-reference" 54 54 select="$master-reference"/> 55 55 </xsl:call-template> … … 82 82 <xsl:call-template name="set.flow.properties"> 83 83 <xsl:with-param name="element" select="local-name(.)"/> 84 <xsl:with-param name="master-reference" 84 <xsl:with-param name="master-reference" 85 85 select="$master-reference"/> 86 86 </xsl:call-template> … … 104 104 <xsl:call-template name="page.number.format"> 105 105 <xsl:with-param name="element" select="'toc'"/> 106 <xsl:with-param name="master-reference" 106 <xsl:with-param name="master-reference" 107 107 select="$master-reference"/> 108 108 </xsl:call-template> … … 112 112 <xsl:call-template name="initial.page.number"> 113 113 <xsl:with-param name="element" select="'toc'"/> 114 <xsl:with-param name="master-reference" 114 <xsl:with-param name="master-reference" 115 115 select="$master-reference"/> 116 116 </xsl:call-template> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/xep.xsl
r2262b78 r410e228b 19 19 <xsl:template name="xep-document-information"> 20 20 <rx:meta-info> 21 <xsl:variable name="authors" 21 <xsl:variable name="authors" 22 22 select="(//author|//editor|//corpauthor|//authorgroup)[1]"/> 23 23 <xsl:if test="$authors"> … … 26 26 <xsl:when test="$authors[self::authorgroup]"> 27 27 <xsl:call-template name="person.name.list"> 28 <xsl:with-param name="person.list" 28 <xsl:with-param name="person.list" 29 29 select="$authors/*[self::author|self::corpauthor| 30 30 self::othercredit|self::editor]"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/fo/xref.xsl
r2262b78 r410e228b 18 18 19 19 <!-- Use internal variable for olink xlink role for consistency --> 20 <xsl:variable 20 <xsl:variable 21 21 name="xolink.role">http://docbook.org/xlink/role/olink</xsl:variable> 22 22 … … 51 51 <xsl:variable name="xrefstyle"> 52 52 <xsl:choose> 53 <xsl:when test="@role and not(@xrefstyle) 53 <xsl:when test="@role and not(@xrefstyle) 54 54 and $use.role.as.xrefstyle != 0"> 55 55 <xsl:value-of select="@role"/> … … 124 124 <!-- page numbers only for local targets --> 125 125 </xsl:when> 126 <xsl:when test="starts-with(normalize-space($xrefstyle), 'select:') 126 <xsl:when test="starts-with(normalize-space($xrefstyle), 'select:') 127 127 and contains($xrefstyle, 'nopage')"> 128 128 <!-- negative xrefstyle in instance turns it off --> 129 129 </xsl:when> 130 130 <!-- positive xrefstyle already handles it --> 131 <xsl:when test="not(starts-with(normalize-space($xrefstyle), 'select:') 131 <xsl:when test="not(starts-with(normalize-space($xrefstyle), 'select:') 132 132 and (contains($xrefstyle, 'page') 133 133 or contains($xrefstyle, 'Page'))) 134 and ( $insert.xref.page.number = 'yes' 134 and ( $insert.xref.page.number = 'yes' 135 135 or $insert.xref.page.number = '1') 136 136 or local-name($target) = 'para'"> … … 788 788 <xsl:variable name="xrefstyle"> 789 789 <xsl:choose> 790 <xsl:when test="@role and not(@xrefstyle) 790 <xsl:when test="@role and not(@xrefstyle) 791 791 and $use.role.as.xrefstyle != 0"> 792 792 <xsl:value-of select="@role"/> … … 852 852 </xsl:when> 853 853 <!-- negative xrefstyle in instance turns it off --> 854 <xsl:when test="starts-with(normalize-space($xrefstyle), 'select:') 854 <xsl:when test="starts-with(normalize-space($xrefstyle), 'select:') 855 855 and contains($xrefstyle, 'nopage')"> 856 856 </xsl:when> 857 <xsl:when test="(starts-with(normalize-space($xrefstyle), 'select:') 858 and $insert.link.page.number = 'maybe' 857 <xsl:when test="(starts-with(normalize-space($xrefstyle), 'select:') 858 and $insert.link.page.number = 'maybe' 859 859 and (contains($xrefstyle, 'page') 860 860 or contains($xrefstyle, 'Page'))) 861 or ( $insert.link.page.number = 'yes' 861 or ( $insert.link.page.number = 'yes' 862 862 or $insert.link.page.number = '1') 863 863 or local-name($target) = 'para'"> … … 939 939 <xsl:variable name="fnum"> 940 940 <!-- FIXME: list in @from is probably not complete --> 941 <xsl:number level="any" 942 from="chapter|appendix|preface|article|refentry|bibliography[not(parent::article)]" 943 count="footnote[not(@label)][not(ancestor::tgroup)]|ulink[node()][@url != .][not(ancestor::footnote)]" 941 <xsl:number level="any" 942 from="chapter|appendix|preface|article|refentry|bibliography[not(parent::article)]" 943 count="footnote[not(@label)][not(ancestor::tgroup)]|ulink[node()][@url != .][not(ancestor::footnote)]" 944 944 format="1"/> 945 945 </xsl:variable> … … 1033 1033 </xsl:variable> 1034 1034 1035 <xsl:variable name="target.database" 1035 <xsl:variable name="target.database" 1036 1036 select="document($target.database.filename, /)"/> 1037 1037 … … 1186 1186 1187 1187 <xsl:variable name="targetptr"> 1188 <xsl:value-of 1188 <xsl:value-of 1189 1189 select="substring-before(substring-after($olink.key, '/'), '/')"/> 1190 1190 </xsl:variable> … … 1193 1193 <xsl:variable name="candidate"> 1194 1194 <xsl:for-each select="$target.database" > 1195 <xsl:value-of 1195 <xsl:value-of 1196 1196 select="key('targetptr-key', $olink.key)/@lang" /> 1197 1197 </xsl:for-each> … … 1207 1207 </xsl:variable> 1208 1208 1209 <xsl:if test="$current.docid = $targetdoc and 1209 <xsl:if test="$current.docid = $targetdoc and 1210 1210 $olink.lang = $target.lang"> 1211 1211 <xsl:variable name="targets" select="key('id',$targetptr)"/> … … 1395 1395 </xsl:variable> 1396 1396 1397 <xsl:variable name="target.database" 1397 <xsl:variable name="target.database" 1398 1398 select="document($target.database.filename, /)"/> 1399 1399 -
stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/profile-mode.xsl
r2262b78 r410e228b 34 34 </xsl:if> 35 35 </xsl:variable> 36 <xsl:variable name="audience.ok" 36 <xsl:variable name="audience.ok" 37 37 select="not(@audience) or not($profile.audience) or 38 38 $audience.content != '' or @audience = ''"/> … … 167 167 </xsl:if> 168 168 </xsl:variable> 169 <xsl:variable name="wordsize.ok" 169 <xsl:variable name="wordsize.ok" 170 170 select="not(@wordsize) or not($profile.wordsize) or 171 171 $wordsize.content != '' or @wordsize = ''"/> … … 179 179 </xsl:if> 180 180 </xsl:variable> 181 <xsl:variable name="attribute.ok" 182 select="not(@*[local-name()=$profile.attribute]) or 183 not($profile.value) or $attribute.content != '' or 184 @*[local-name()=$profile.attribute] = '' or 181 <xsl:variable name="attribute.ok" 182 select="not(@*[local-name()=$profile.attribute]) or 183 not($profile.value) or $attribute.content != '' or 184 @*[local-name()=$profile.attribute] = '' or 185 185 not($profile.attribute)"/> 186 186 187 <xsl:if test="$arch.ok and 188 $audience.ok and 189 $condition.ok and 190 $conformance.ok and 191 $lang.ok and 192 $os.ok and 193 $revision.ok and 194 $revisionflag.ok and 195 $role.ok and 196 $security.ok and 197 $status.ok and 198 $userlevel.ok and 199 $vendor.ok and 200 $wordsize.ok and 187 <xsl:if test="$arch.ok and 188 $audience.ok and 189 $condition.ok and 190 $conformance.ok and 191 $lang.ok and 192 $os.ok and 193 $revision.ok and 194 $revisionflag.ok and 195 $role.ok and 196 $security.ok and 197 $status.ok and 198 $userlevel.ok and 199 $vendor.ok and 200 $wordsize.ok and 201 201 $attribute.ok"> 202 202 <xsl:copy> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/profiling/profile.xsl
r2262b78 r410e228b 11 11 <xsl:param name="profile.baseuri.fixup" select="false()"/> 12 12 13 <!-- If you need to validate profiled content against DTD, 13 <!-- If you need to validate profiled content against DTD, 14 14 create customization that will import this stylesheet and 15 will use xsl:output (see example bellow) to output reference 16 to the desired DTD version. --> 15 will use xsl:output (see example bellow) to output reference 16 to the desired DTD version. --> 17 17 <!-- Generate DocBook instance with correct DOCTYPE --> 18 18 <!-- 19 <xsl:output method="xml" 19 <xsl:output method="xml" 20 20 doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" 21 21 doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/autoidx-kimber.xsl
r2262b78 r410e228b 52 52 <xsl:message terminate="yes"> 53 53 <xsl:text>ERROR: the 'kimber' index method requires the </xsl:text> 54 <xsl:text>Innodata Isogen 54 <xsl:text>Innodata Isogen 55 55 Java extensions for </xsl:text> 56 <xsl:text>internationalized indexes. 56 <xsl:text>internationalized indexes. 57 57 Install those </xsl:text> 58 58 <xsl:text>extensions, or use a different index method. -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/autoidx.xsl
r2262b78 r410e228b 98 98 <dl> 99 99 <xsl:apply-templates select="$others[count(.|key('primary', normalize-space(concat(primary/@sortas, primary[not(@sortas) or @sortas = ""])))[count(ancestor::node()|$scope) = count(ancestor::node()) and ($role = @role or $type = @type or (string-length($role) = 0 and string-length($type) = 0))][1]) = 1]" mode="index-symbol-div"> 100 <xsl:with-param name="position" select="position()"/> 100 <xsl:with-param name="position" select="position()"/> 101 101 <xsl:with-param name="scope" select="$scope"/> 102 102 <xsl:with-param name="role" select="$role"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/changebars.xsl
r2262b78 r410e228b 24 24 <style type="text/css"> 25 25 <xsl:text> 26 div.added { background-color: #ffff99; 26 div.added { background-color: #ffff99; 27 27 text-decoration: underline; } 28 28 div.deleted { text-decoration: line-through; … … 31 31 div.off { } 32 32 33 span.added { background-color: #ffff99; 33 span.added { background-color: #ffff99; 34 34 text-decoration: underline; } 35 35 span.deleted { text-decoration: line-through; -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/chunk-common.xsl
r2262b78 r410e228b 950 950 </xsl:message> 951 951 </xsl:otherwise> 952 </xsl:choose> 952 </xsl:choose> 953 953 <!-- In either case, add baseuri from its document entry--> 954 954 <xsl:variable name="docbaseuri"> … … 998 998 <xsl:template name="upward.path"> 999 999 <xsl:param name="path" select="''"/> 1000 <xsl:choose> 1000 <xsl:choose> 1001 1001 <!-- Don't bother with absolute uris --> 1002 1002 <xsl:when test="contains($path, ':')"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/chunk.xsl
r2262b78 r410e228b 27 27 <!-- chunk-common.xsl contains all the named templates for chunking. 28 28 In a customization file, you import chunk-common.xsl, then 29 add any customized chunking templates of the same name. 30 They will have import precedence over the original 29 add any customized chunking templates of the same name. 30 They will have import precedence over the original 31 31 chunking templates in chunk-common.xsl. --> 32 32 <xsl:import href="chunk-common.xsl"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/formal.xsl
r2262b78 r410e228b 36 36 <xsl:apply-templates/> 37 37 </div> 38 <!-- HACK: This doesn't belong inside formal.object; it 39 should be done by the table template, but I want 38 <!-- HACK: This doesn't belong inside formal.object; it 39 should be done by the table template, but I want 40 40 the link to be inside the DIV, so... --> 41 41 <xsl:if test="local-name(.) = 'table'"> … … 48 48 <xsl:if test="$spacing.paras != 0"><p/></xsl:if> 49 49 <div class="{$class}-contents"><xsl:apply-templates/></div> 50 <!-- HACK: This doesn't belong inside formal.object; it 51 should be done by the table template, but I want 50 <!-- HACK: This doesn't belong inside formal.object; it 51 should be done by the table template, but I want 52 52 the link to be inside the DIV, so... --> 53 53 <xsl:if test="local-name(.) = 'table'"> … … 107 107 <xsl:apply-templates/> 108 108 109 <!-- HACK: This doesn't belong inside formal.object; it 110 should be done by the table template, but I want 109 <!-- HACK: This doesn't belong inside formal.object; it 110 should be done by the table template, but I want 111 111 the link to be inside the DIV, so... --> 112 112 <xsl:if test="local-name(.) = 'informaltable'"> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/graphics.xsl
r2262b78 r410e228b 192 192 <xsl:choose> 193 193 <xsl:when test="local-name(.) = 'graphic' or local-name(.) = 'inlinegraphic'"> 194 <!-- handle legacy graphic and inlinegraphic by new template --> 194 <!-- handle legacy graphic and inlinegraphic by new template --> 195 195 <xsl:call-template name="mediaobject.filename"> 196 196 <xsl:with-param name="object" select="."/> … … 804 804 <xsl:value-of select="$units"/> 805 805 <xsl:text> </xsl:text> 806 <xsl:value-of 806 <xsl:value-of 807 807 select="round($x1p * $intrinsicwidth div 100.0)"/> 808 808 <xsl:text>,</xsl:text> … … 810 810 - ($y2p * $intrinsicdepth div 100.0))"/> 811 811 <xsl:text>,</xsl:text> 812 <xsl:value-of select="round($x2p * 812 <xsl:value-of select="round($x2p * 813 813 $intrinsicwidth div 100.0)"/> 814 814 <xsl:text>,</xsl:text> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/info.xsl
r2262b78 r410e228b 18 18 some of these elements are needed because the elements are 19 19 processed from named templates that are called with modes. 20 Since modes aren't sticky, these rules apply. 20 Since modes aren't sticky, these rules apply. 21 21 (TODO: clarify this comment) --> 22 22 -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/math.xsl
r2262b78 r410e228b 57 57 <xsl:otherwise> 58 58 <xsl:message> 59 Unsupported TeX math notation: 59 Unsupported TeX math notation: 60 60 <xsl:value-of select="$tex.math.in.alt"/> 61 61 </xsl:message> … … 70 70 71 71 <xsl:template name="tex.math.plain.head"> 72 <xsl:text>\nopagenumbers 72 <xsl:text>\nopagenumbers 73 73 </xsl:text> 74 74 </xsl:template> 75 75 76 76 <xsl:template name="tex.math.plain.tail"> 77 <xsl:text>\bye 77 <xsl:text>\bye 78 78 </xsl:text> 79 79 </xsl:template> … … 101 101 <xsl:text>\special{dvi2bitmap outputfile </xsl:text> 102 102 <xsl:value-of select="$filename"/> 103 <xsl:text>} 103 <xsl:text>} 104 104 </xsl:text> 105 105 <xsl:if test="$output.delims != 0"> … … 108 108 <xsl:value-of select="$tex"/> 109 109 <xsl:if test="$output.delims != 0"> 110 <xsl:text>$ 111 </xsl:text> 112 </xsl:if> 113 <xsl:text>\vfill\eject 110 <xsl:text>$ 111 </xsl:text> 112 </xsl:if> 113 <xsl:text>\vfill\eject 114 114 </xsl:text> 115 115 </xsl:if> … … 138 138 <xsl:text>\special{dvi2bitmap outputfile </xsl:text> 139 139 <xsl:value-of select="$filename"/> 140 <xsl:text>} 140 <xsl:text>} 141 141 </xsl:text> 142 142 <xsl:if test="$output.delims != 0"> … … 145 145 <xsl:value-of select="$tex"/> 146 146 <xsl:if test="$output.delims != 0"> 147 <xsl:text>$$ 148 </xsl:text> 149 </xsl:if> 150 <xsl:text>\vfill\eject 147 <xsl:text>$$ 148 </xsl:text> 149 </xsl:if> 150 <xsl:text>\vfill\eject 151 151 </xsl:text> 152 152 </xsl:if> … … 158 158 159 159 <xsl:template name="tex.math.latex.head"> 160 <xsl:text>\documentclass{article} 161 </xsl:text> 162 <xsl:text>\pagestyle{empty} 163 </xsl:text> 164 <xsl:text>\begin{document} 160 <xsl:text>\documentclass{article} 161 </xsl:text> 162 <xsl:text>\pagestyle{empty} 163 </xsl:text> 164 <xsl:text>\begin{document} 165 165 </xsl:text> 166 166 </xsl:template> 167 167 168 168 <xsl:template name="tex.math.latex.tail"> 169 <xsl:text>\end{document} 169 <xsl:text>\end{document} 170 170 </xsl:text> 171 171 </xsl:template> … … 193 193 <xsl:text>\special{dvi2bitmap outputfile </xsl:text> 194 194 <xsl:value-of select="$filename"/> 195 <xsl:text>} 196 </xsl:text> 197 <xsl:if test="$output.delims != 0"> 195 <xsl:text>} 196 </xsl:text> 197 <xsl:if test="$output.delims != 0"> 198 198 <xsl:text>$</xsl:text> 199 199 </xsl:if> 200 200 <xsl:value-of select="$tex"/> 201 <xsl:if test="$output.delims != 0"> 202 <xsl:text>$ 203 </xsl:text> 204 </xsl:if> 205 <xsl:text>\newpage 201 <xsl:if test="$output.delims != 0"> 202 <xsl:text>$ 203 </xsl:text> 204 </xsl:if> 205 <xsl:text>\newpage 206 206 </xsl:text> 207 207 </xsl:if> … … 230 230 <xsl:text>\special{dvi2bitmap outputfile </xsl:text> 231 231 <xsl:value-of select="$filename"/> 232 <xsl:text>} 232 <xsl:text>} 233 233 </xsl:text> 234 234 <xsl:if test="$output.delims != 0"> … … 237 237 <xsl:value-of select="$tex"/> 238 238 <xsl:if test="$output.delims != 0"> 239 <xsl:text>$$ 240 </xsl:text> 241 </xsl:if> 242 <xsl:text>\newpage 239 <xsl:text>$$ 240 </xsl:text> 241 </xsl:if> 242 <xsl:text>\newpage 243 243 </xsl:text> 244 244 </xsl:if> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/oldchunker.xsl
r2262b78 r410e228b 39 39 <refdescription xmlns="http://www.w3.org/1999/xhtml"> 40 40 <para>This character representation is used in files generated by chunking stylesheet. If 41 you want to suppress entity references for characters with direct representation 42 in default.encoding, set this parameter to value <literal>native</literal>. 41 you want to suppress entity references for characters with direct representation 42 in default.encoding, set this parameter to value <literal>native</literal>. 43 43 </para> 44 44 </refdescription> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/param.xsl
r2262b78 r410e228b 307 307 <xsl:param name="prefer.internal.olink" select="0"/> 308 308 <xsl:param name="olink.lang.fallback.sequence"/> 309 <xsl:param name="olink.doctitle">no</xsl:param> 309 <xsl:param name="olink.doctitle">no</xsl:param> 310 310 <xsl:param name="olink.fragid">fragid=</xsl:param> 311 311 <xsl:param name="olink.outline.ext">.olink</xsl:param> … … 400 400 <xsl:param name="use.extensions" select="0"/> 401 401 <xsl:param name="use.id.as.filename" select="0"/> 402 <xsl:param name="use.local.olink.style" select="0"/> 402 <xsl:param name="use.local.olink.style" select="0"/> 403 403 <xsl:param name="use.role.as.xrefstyle" select="1"/> 404 404 <xsl:param name="use.role.for.mediaobject" select="1"/> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/pi.xsl
r2262b78 r410e228b 201 201 <xsl:with-param name="attribute" select="'class'"/> 202 202 </xsl:call-template> 203 </xsl:template> 203 </xsl:template> 204 204 205 205 <doc:pi xmlns="" name="dbhtml_dir"> … … 378 378 <xsl:with-param name="attribute" select="'label-width'"/> 379 379 </xsl:call-template> 380 </xsl:template> 380 </xsl:template> 381 381 382 382 <doc:pi xmlns="" name="dbhtml_linenumbering.everyNth"> … … 593 593 <xsl:with-param name="attribute" select="'row-height'"/> 594 594 </xsl:call-template> 595 </xsl:template> 595 </xsl:template> 596 596 597 597 <doc:pi xmlns="" name="dbhtml_start"> -
stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/profile-chunk.xsl
r2262b78 r410e228b 27 27 <!-- chunk-common.xsl contains all the named templates for chunking. 28 28 In a customization file, you import chunk-common.xsl, then 29 add any customized chunking templates of the same name. 30 They will have import precedence over the original 29 add any customized chunking templates of the same name. 30 They will have import precedence over the original 31 31 chunking templates in chunk-common.xsl. --> 32 32 <xsl:import href="chunk-common.xsl"/>
Note:
See TracChangeset
for help on using the changeset viewer.