Changeset 704 for rfc2629xslt/rfc2629toFO.xslt
- Timestamp:
- 02/10/09 10:46:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toFO.xslt
r689 r704 46 46 <xsl:import href="rfc2629.xslt" /> 47 47 48 <!-- switch for doublesided layout -->49 50 <xsl:param name="xml2rfc-ext-duplex"51 select="substring-after(52 translate(/processing-instruction('rfc')[contains(.,'sortrefs=')], concat($quote-chars,' '), ''),53 'ext-duplex=')"54 />55 56 48 <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/> 57 49 … … 65 57 66 58 <xsl:attribute-set name="base"> 67 68 59 <xsl:attribute name="font-family">serif</xsl:attribute> 60 <xsl:attribute name="font-size">10pt</xsl:attribute> 69 61 </xsl:attribute-set> 70 62 71 63 <xsl:attribute-set name="h1"> 72 73 74 75 76 64 <xsl:attribute name="font-weight">bold</xsl:attribute> 65 <xsl:attribute name="font-size">14pt</xsl:attribute> 66 <xsl:attribute name="keep-with-next">always</xsl:attribute> 67 <xsl:attribute name="space-before">14pt</xsl:attribute> 68 <xsl:attribute name="space-after">7pt</xsl:attribute> 77 69 </xsl:attribute-set> 78 70 79 71 <xsl:attribute-set name="h2"> 80 81 82 83 84 72 <xsl:attribute name="font-weight">bold</xsl:attribute> 73 <xsl:attribute name="font-size">12pt</xsl:attribute> 74 <xsl:attribute name="keep-with-next">always</xsl:attribute> 75 <xsl:attribute name="space-before">12pt</xsl:attribute> 76 <xsl:attribute name="space-after">6pt</xsl:attribute> 85 77 </xsl:attribute-set> 86 78 87 79 <xsl:attribute-set name="h3"> 88 89 90 91 92 80 <xsl:attribute name="font-weight">bold</xsl:attribute> 81 <xsl:attribute name="font-size">11pt</xsl:attribute> 82 <xsl:attribute name="keep-with-next">always</xsl:attribute> 83 <xsl:attribute name="space-before">11pt</xsl:attribute> 84 <xsl:attribute name="space-after">3pt</xsl:attribute> 93 85 </xsl:attribute-set> 94 86 95 87 <xsl:attribute-set name="comment"> 96 97 88 <xsl:attribute name="font-weight">bold</xsl:attribute> 89 <xsl:attribute name="background-color">yellow</xsl:attribute> 98 90 </xsl:attribute-set> 99 91 … … 104 96 105 97 <xsl:attribute-set name="index"> 106 98 <xsl:attribute name="font-size">9pt</xsl:attribute> 107 99 </xsl:attribute-set> 108 100 … … 130 122 <xsl:template match="abstract"> 131 123 <fo:block xsl:use-attribute-sets="h1" id="{concat($anchor-prefix,'.abstract')}">Abstract</fo:block> 132 124 <xsl:apply-templates /> 133 125 </xsl:template> 134 126 … … 187 179 188 180 <xsl:template match="artwork"> 189 <fo:block font-family="monospace" padding=".5em" 181 <xsl:if test="@x:isCodeComponent='yes'"> 182 <fo:block font-family="monospace" color="gray"><CODE BEGINS></fo:block> 183 </xsl:if> 184 <fo:block font-family="monospace" padding=".5em" 190 185 white-space-treatment="preserve" linefeed-treatment="preserve" 191 186 white-space-collapse="false" page-break-inside="avoid"> … … 193 188 <xsl:apply-templates/> 194 189 </fo:block> 190 <xsl:if test="@x:isCodeComponent='yes'"> 191 <fo:block font-family="monospace" color="gray"><CODE ENDS></fo:block> 192 </xsl:if> 195 193 </xsl:template> 196 194 197 195 <xsl:template match="artwork[@src and starts-with(@type,'image/')]"> 198 196 <fo:block> 199 197 <xsl:choose> 200 198 <xsl:when test="@align='center'"> … … 220 218 </fo:block> 221 219 <fo:block><xsl:value-of select="organization" /></fo:block> 222 220 <xsl:for-each select="address/postal/street"> 223 221 <fo:block><xsl:value-of select="." /></fo:block> 224 222 </xsl:for-each> 225 223 <xsl:if test="address/postal/city"> 226 224 <fo:block><xsl:value-of select="concat(address/postal/city,', ',address/postal/region,' ',address/postal/code)" /></fo:block> 227 228 225 </xsl:if> 226 <xsl:if test="address/postal/country"> 229 227 <fo:block><xsl:value-of select="address/postal/country" /></fo:block> 230 228 </xsl:if> 231 229 <xsl:if test="address/phone"> 232 230 <fo:block>Phone: <fo:basic-link external-destination="url('tel:{translate(address/phone,' ','')}')" xsl:use-attribute-sets="external-link"><xsl:value-of select="address/phone" /></fo:basic-link></fo:block> 233 231 </xsl:if> 234 232 <xsl:if test="address/facsimile"> 235 233 <fo:block>Fax: <fo:basic-link external-destination="url('tel:{translate(address/facsimile,' ','')}')" xsl:use-attribute-sets="external-link"><xsl:value-of select="address/facsimile" /></fo:basic-link></fo:block> 236 234 </xsl:if> 237 235 <xsl:for-each select="address/email"> 238 236 <xsl:variable name="email"> 239 237 <xsl:call-template name="extract-email"/> … … 250 248 </fo:block> 251 249 </xsl:for-each> 252 250 <xsl:for-each select="address/uri"> 253 251 <xsl:variable name="uri"> 254 252 <xsl:call-template name="extract-uri"/> … … 275 273 </xsl:if> 276 274 <xsl:call-template name="add-anchor"/> 277 275 <xsl:apply-templates /> 278 276 <xsl:if test="(@title!='' or @anchor!='') and not(@suppress-title='true')"> 279 277 <xsl:variable name="n"><xsl:number level="any" count="figure[(@title!='' or @anchor!='') and not(@suppress-title='true')]" /></xsl:variable> … … 286 284 287 285 <xsl:if test="$xml2rfc-topblock!='no'"> 288 286 <!-- collect information for left column --> 289 287 290 288 <xsl:variable name="leftColumn"> 291 289 <xsl:call-template name="collectLeftHeaderColumn" /> 292 290 </xsl:variable> … … 300 298 <!-- insert the collected information --> 301 299 302 300 <fo:table width="100%" table-layout="fixed"> 303 301 <fo:table-column column-width="proportional-column-width(1)" /> 304 302 <fo:table-column column-width="proportional-column-width(1)" /> … … 306 304 <xsl:choose> 307 305 <xsl:when test="function-available('exslt:node-set')"> 308 309 310 306 <xsl:call-template name="emitheader"> 307 <xsl:with-param name="lc" select="exslt:node-set($leftColumn)" /> 308 <xsl:with-param name="rc" select="exslt:node-set($rightColumn)" /> 311 309 </xsl:call-template> 312 310 </xsl:when> 313 311 <xsl:otherwise> 314 315 316 312 <xsl:call-template name="emitheader"> 313 <xsl:with-param name="lc" select="$leftColumn" /> 314 <xsl:with-param name="rc" select="$rightColumn" /> 317 315 </xsl:call-template> 318 316 </xsl:otherwise> 319 317 </xsl:choose> 320 321 318 </fo:table-body> 319 </fo:table> 322 320 </xsl:if> 323 321 … … 329 327 </fo:block> 330 328 331 <xsl:if test=" not($xml2rfc-private)and not($abstract-first)">329 <xsl:if test="$xml2rfc-private='' and not($abstract-first)"> 332 330 <xsl:call-template name="emit-ietf-preamble"/> 333 331 </xsl:if> 334 332 335 333 <xsl:apply-templates select="x:boilerplate"/> 336 337 338 339 <xsl:if test=" not($xml2rfc-private)and $abstract-first">334 <xsl:apply-templates select="abstract" /> 335 <xsl:apply-templates select="note" /> 336 337 <xsl:if test="$xml2rfc-private='' and $abstract-first"> 340 338 <xsl:call-template name="emit-ietf-preamble"/> 341 339 </xsl:if> 342 340 343 344 345 346 341 <xsl:if test="$xml2rfc-toc='yes'"> 342 <xsl:apply-templates select="/" mode="toc" /> 343 <!--<xsl:call-template name="insertTocAppendix" />--> 344 </xsl:if> 347 345 348 346 </xsl:template> … … 376 374 <!-- processed in a later stage --> 377 375 <xsl:template match="iref[not(ancestor::t) and not(parent::section)]"> 378 376 <fo:block> 379 377 <xsl:attribute name="id"><xsl:value-of select="$anchor-prefix" />.iref.<xsl:number level="any"/></xsl:attribute> 380 378 <xsl:choose> … … 398 396 399 397 <xsl:template match="iref[ancestor::t and not(parent::section)]"> 400 398 <fo:inline> 401 399 <xsl:attribute name="id"><xsl:value-of select="$anchor-prefix" />.iref.<xsl:number level="any"/></xsl:attribute> 402 400 <xsl:choose> … … 640 638 641 639 <xsl:template match="middle"> 642 640 <xsl:apply-templates /> 643 641 </xsl:template> 644 642 … … 646 644 <xsl:variable name="num"><xsl:number count="note"/></xsl:variable> 647 645 <fo:block xsl:use-attribute-sets="h1" id="{concat($anchor-prefix,'.note.',$num)}"><xsl:value-of select="@title" /></fo:block> 648 646 <xsl:apply-templates /> 649 647 </xsl:template> 650 648 651 649 <xsl:template match="preamble"> 652 650 <fo:block space-after=".5em"> 653 651 <xsl:call-template name="copy-anchor"/> 654 652 <xsl:apply-templates /> … … 657 655 658 656 <xsl:template match="postamble"> 659 657 <fo:block space-before=".5em"><xsl:apply-templates /></fo:block> 660 658 </xsl:template> 661 659 … … 665 663 <xsl:choose> 666 664 <xsl:when test="@target"><xsl:value-of select="@target" /></xsl:when> 667 668 665 <xsl:when test="seriesInfo/@name='RFC'"><xsl:value-of select="concat($rfcUrlPrefix,seriesInfo[@name='RFC']/@value,'.txt')" /></xsl:when> 666 <xsl:when test="seriesInfo[starts-with(.,'RFC')]"> 669 667 <xsl:variable name="rfcRef" select="seriesInfo[starts-with(.,'RFC')]" /> 670 668 <xsl:value-of select="concat($rfcUrlPrefix,substring-after (normalize-space($rfcRef), ' '),'.txt')" /> 671 669 </xsl:when> 672 670 <xsl:otherwise /> 673 671 </xsl:choose> 674 672 </xsl:variable> 675 673 676 674 <fo:list-item space-after=".5em"> … … 687 685 </fo:block> 688 686 </fo:list-item-label> 689 687 690 688 <fo:list-item-body start-indent="body-start()"><fo:block> 691 689 … … 696 694 <xsl:choose> 697 695 <xsl:when test="@surname and @surname!=''"> 698 696 <xsl:choose> 699 697 <xsl:when test="@surname and position()=last() and position()!=1"> 700 698 <xsl:value-of select="concat($initials,' ',@surname)" /> … … 703 701 <xsl:value-of select="concat(@surname,', ',$initials)" /> 704 702 </xsl:when> 705 703 <xsl:when test="organization/text()"> 706 704 <xsl:value-of select="organization" /> 707 705 </xsl:when> … … 752 750 <xsl:choose> 753 751 <xsl:when test="not(@name) and not(@value) and ./text()"><xsl:value-of select="." /></xsl:when> 754 752 <xsl:otherwise> 755 753 <xsl:value-of select="@name" /> 756 754 <xsl:if test="@value!=''"> <xsl:value-of select="@value" /></xsl:if> … … 801 799 <xsl:with-param name="no" select="$sectionNumber"/> 802 800 </xsl:call-template> 803 <xsl:text>  References</xsl:text> 801 <xsl:text>  </xsl:text> 802 <xsl:value-of select="$xml2rfc-refparent"/> 804 803 </fo:block> 805 804 </xsl:if> … … 817 816 <xsl:choose> 818 817 <xsl:when test="@title!=''"><xsl:value-of select="@title"/></xsl:when> 819 <xsl:otherwise> References</xsl:otherwise>818 <xsl:otherwise><xsl:value-of select="$xml2rfc-refparent"/></xsl:otherwise> 820 819 </xsl:choose> 821 820 </fo:block> … … 832 831 <xsl:choose> 833 832 <xsl:when test="@title!=''"><xsl:value-of select="@title"/></xsl:when> 834 <xsl:otherwise> References</xsl:otherwise>833 <xsl:otherwise><xsl:value-of select="$xml2rfc-refparent"/></xsl:otherwise> 835 834 </xsl:choose> 836 835 </fo:block> … … 868 867 869 868 <xsl:template match="rfc"> 870 869 <fo:root xsl:use-attribute-sets="base"> 871 870 872 873 871 <fo:layout-master-set> 872 <fo:simple-page-master master-name="first-page" xsl:use-attribute-sets="page"> 874 873 <fo:region-body margin-bottom="1in" margin-top="1in"/> 875 874 <fo:region-after extent="1cm" region-name="footer"/> 876 875 </fo:simple-page-master> 877 876 <fo:simple-page-master master-name="other-pages-right" xsl:use-attribute-sets="page"> 878 877 <fo:region-body margin-bottom="1in" margin-top="1in" /> 879 880 878 <fo:region-before extent="1cm" region-name="header-right"/> 879 <fo:region-after extent="1cm" region-name="footer-right"/> 881 880 </fo:simple-page-master> 882 881 <fo:simple-page-master master-name="other-pages-left" xsl:use-attribute-sets="page"> 883 882 <fo:region-body margin-bottom="1in" margin-top="1in" /> 884 885 883 <fo:region-before extent="1cm" region-name="header-left"/> 884 <fo:region-after extent="1cm" region-name="footer-left"/> 886 885 </fo:simple-page-master> 887 886 <fo:simple-page-master master-name="other-pages-dc-right" xsl:use-attribute-sets="page"> 888 887 <fo:region-body margin-bottom="1in" margin-top="1in" column-count="2"/> 889 890 888 <fo:region-before extent="1cm" region-name="header-right"/> 889 <fo:region-after extent="1cm" region-name="footer-right"/> 891 890 </fo:simple-page-master> 892 891 <fo:simple-page-master master-name="other-pages-dc-left" xsl:use-attribute-sets="page"> 893 892 <fo:region-body margin-bottom="1in" margin-top="1in" column-count="2"/> 894 895 893 <fo:region-before extent="1cm" region-name="header-left"/> 894 <fo:region-after extent="1cm" region-name="footer-left"/> 896 895 </fo:simple-page-master> 897 898 896 <fo:page-sequence-master master-name="sequence"> 897 <fo:single-page-master-reference master-reference="first-page" /> 899 898 <xsl:choose> 900 899 <xsl:when test="$xml2rfc-ext-duplex='yes'"> … … 905 904 </xsl:when> 906 905 <xsl:otherwise> 907 906 <fo:repeatable-page-master-reference master-reference="other-pages-right" /> 908 907 </xsl:otherwise> 909 908 </xsl:choose> 910 911 909 </fo:page-sequence-master> 910 <fo:page-sequence-master master-name="sequence-dc"> 912 911 <xsl:choose> 913 912 <xsl:when test="$xml2rfc-ext-duplex='yes'"> … … 918 917 </xsl:when> 919 918 <xsl:otherwise> 920 919 <fo:repeatable-page-master-reference master-reference="other-pages-dc-right" /> 921 920 </xsl:otherwise> 922 921 </xsl:choose> 923 924 922 </fo:page-sequence-master> 923 </fo:layout-master-set> 925 924 926 925 <fo:declarations> … … 951 950 <xsl:variable name="lang"><xsl:call-template name="get-lang"/></xsl:variable> 952 951 953 952 <fo:page-sequence master-reference="sequence" language="{$lang}"> 954 953 <xsl:if test="$xml2rfc-ext-duplex='yes'"> 955 954 <xsl:attribute name="force-page-count">even</xsl:attribute> … … 959 958 <xsl:call-template name="insertFooter" /> 960 959 961 962 960 <fo:flow flow-name="xsl-region-body"> 961 963 962 <!-- process front & middle section, but not back --> 964 963 <xsl:apply-templates /> … … 966 965 <!-- because it requires multiple page masters --> 967 966 <!-- references first --> 968 967 <xsl:apply-templates select="back/references" /> 969 968 970 969 <xsl:if test="$xml2rfc-ext-authors-section!='end'"> … … 973 972 974 973 <!-- add all other top-level sections under <back> --> 975 974 <xsl:apply-templates select="back/*[not(self::references)]" /> 976 975 977 976 </fo:flow> 978 977 </fo:page-sequence> 979 978 … … 985 984 <xsl:call-template name="insertHeader" /> 986 985 <xsl:call-template name="insertFooter" /> 987 988 989 986 <fo:flow flow-name="xsl-region-body" xsl:use-attribute-sets="index"> 987 <xsl:call-template name="insertIndex" /> 988 </fo:flow> 990 989 </fo:page-sequence> 991 990 </xsl:if> 992 991 993 <xsl:if test="$xml2rfc-ext-authors-section='end' or ( not($xml2rfc-private)and not($no-copylong))">994 992 <xsl:if test="$xml2rfc-ext-authors-section='end' or ($xml2rfc-private='' and not($no-copylong))"> 993 <fo:page-sequence master-reference="sequence" language="{$lang}"> 995 994 <xsl:if test="$xml2rfc-ext-duplex='yes'"> 996 995 <xsl:attribute name="force-page-count">even</xsl:attribute> … … 1000 999 <xsl:call-template name="insertFooter" /> 1001 1000 1002 1003 1001 <fo:flow flow-name="xsl-region-body"> 1002 1004 1003 <xsl:if test="$xml2rfc-ext-authors-section='end'"> 1005 1004 <xsl:call-template name="insertAuthors" /> 1006 1005 </xsl:if> 1007 1006 1008 <xsl:if test=" not($xml2rfc-private)">1009 1007 <xsl:if test="$xml2rfc-private=''"> 1008 <!-- copyright statements --> 1010 1009 <xsl:variable name="copyright"> 1011 1010 <xsl:call-template name="insertCopyright" /> … … 1024 1023 </xsl:if> 1025 1024 1026 1025 </fo:flow> 1027 1026 </fo:page-sequence> 1028 1027 </xsl:if> 1029 1028 1030 1029 </fo:root> 1031 1030 </xsl:template> 1032 1031 … … 1121 1120 1122 1121 <xsl:template match="t"> 1123 1122 <fo:block space-before=".5em" space-after=".5em"> 1124 1123 <xsl:call-template name="insert-justification"/> 1125 1124 <xsl:choose> … … 1174 1173 1175 1174 <xsl:template match="xref[node()]"> 1176 1175 <xsl:variable name="target" select="@target" /> 1177 1176 <xsl:variable name="node" select="//*[@anchor=$target]" /> 1178 1177 <xsl:variable name="anchor"><xsl:value-of select="$anchor-prefix"/>.xref.<xsl:value-of select="@target"/>.<xsl:number level="any" count="xref[@target=$target]"/></xsl:variable> … … 1253 1252 <xsl:template match="xref[not(node())]"> 1254 1253 1255 1254 <xsl:variable name="target" select="@target" /> 1256 1255 <xsl:variable name="anchor"><xsl:value-of select="$anchor-prefix"/>.xref.<xsl:value-of select="@target"/>.<xsl:number level="any" count="xref[@target=$target]"/></xsl:variable> 1257 1256 <xsl:variable name="node" select="//*[@anchor=$target]" /> … … 1502 1501 1503 1502 <xsl:template match="/"> 1504 1503 <xsl:apply-templates /> 1505 1504 </xsl:template> 1506 1505 … … 1514 1513 1515 1514 <xsl:template name="emitheader"> 1516 1517 1518 1519 1515 <xsl:param name="lc" /> 1516 <xsl:param name="rc" /> 1517 1518 <xsl:for-each select="$lc/myns:item | $rc/myns:item"> 1520 1519 <xsl:variable name="pos" select="position()" /> 1521 1520 <xsl:if test="$pos < count($lc/myns:item) + 1 or $pos < count($rc/myns:item) + 1"> … … 1533 1532 </fo:table-row> 1534 1533 </xsl:if> 1535 1534 </xsl:for-each> 1536 1535 </xsl:template> 1537 1536 … … 1575 1574 <xsl:template name="insertIndex"> 1576 1575 1577 1576 <fo:block xsl:use-attribute-sets="h1 newpage" id="{$anchor-prefix}.index"> 1578 1577 <xsl:text>Index</xsl:text> 1579 1578 </fo:block> … … 1606 1605 <xsl:for-each select="key('index-first-letter',translate(substring(concat(@item,@anchor),1,1),$lcase,$ucase))"> 1607 1606 1608 1607 <xsl:sort select="translate(concat(@item,@anchor),$lcase,$ucase)" /> 1609 1608 1610 1609 <xsl:choose> … … 1691 1690 </xsl:when> 1692 1691 <xsl:otherwise> 1693 1692 <xsl:if test="generate-id(.) = generate-id(key('index-item',@item))"> 1694 1693 1695 1694 <xsl:variable name="item" select="@item"/> … … 1718 1717 1719 1718 <xsl:for-each select="key('index-item',@item)[@subitem and @subitem!='']"> 1720 1719 <xsl:sort select="translate(@subitem,$lcase,$ucase)" /> 1721 1720 1722 1721 <xsl:if test="generate-id(.) = generate-id(key('index-item-subitem',concat(@item,'..',@subitem)))"> 1723 1722 1724 1723 <xsl:variable name="itemsubitem" select="concat(@item,'..',@subitem)"/> … … 1762 1761 1763 1762 <xsl:template match="/" mode="toc"> 1764 1763 <fo:block xsl:use-attribute-sets="h1 newpage" id="{concat($anchor-prefix,'.toc')}"> 1765 1764 <xsl:text>Table of Contents</xsl:text> 1766 1765 </fo:block> … … 1792 1791 1793 1792 <!-- copyright statements --> 1794 <xsl:if test=" not($xml2rfc-private)and not($no-copylong)">1793 <xsl:if test="$xml2rfc-private='' and not($no-copylong)"> 1795 1794 <xsl:call-template name="insert-toc-line"> 1796 1795 <xsl:with-param name="target" select="concat($anchor-prefix,'.ipr')"/> … … 1834 1833 <xsl:choose> 1835 1834 <xsl:when test="@title!=''"><xsl:value-of select="@title" /></xsl:when> 1836 <xsl:otherwise> References</xsl:otherwise>1835 <xsl:otherwise><xsl:value-of select="$xml2rfc-refparent"/></xsl:otherwise> 1837 1836 </xsl:choose> 1838 1837 </xsl:variable> … … 1854 1853 </xsl:with-param> 1855 1854 <xsl:with-param name="target" select="concat($anchor-prefix,'.references')"/> 1856 <xsl:with-param name="title" select=" 'References'"/>1855 <xsl:with-param name="title" select="$xml2rfc-refparent"/> 1857 1856 </xsl:call-template> 1858 1857 … … 1862 1861 <xsl:choose> 1863 1862 <xsl:when test="@title!=''"><xsl:value-of select="@title" /></xsl:when> 1864 <xsl:otherwise> References</xsl:otherwise>1863 <xsl:otherwise><xsl:value-of select="$xml2rfc-refparent"/></xsl:otherwise> 1865 1864 </xsl:choose> 1866 1865 </xsl:variable> … … 1968 1967 <!-- 1969 1968 <xsl:template name="rfclist"> 1970 1971 1972 1973 1974 1975 1976 1969 <xsl:param name="list" /> 1970 <xsl:choose> 1971 <xsl:when test="contains($list,',')"> 1972 <xsl:variable name="rfcNo" select="substring-before($list,',')" /> 1973 <a href="{concat($rfcUrlPrefix,$rfcNo,'.txt')}"><xsl:value-of select="$rfcNo" /></a>, 1974 <xsl:call-template name="rfclist"> 1975 <xsl:with-param name="list" select="normalize-space(substring-after($list,','))" /> 1977 1976 </xsl:call-template> 1978 1977 </xsl:when> 1979 1978 <xsl:otherwise> 1980 1981 1982 1979 <xsl:variable name="rfcNo" select="$list" /> 1980 <a href="{concat($rfcUrlPrefix,$rfcNo,'.txt')}"><xsl:value-of select="$rfcNo" /></a> 1981 </xsl:otherwise> 1983 1982 </xsl:choose> 1984 1983 </xsl:template> … … 2007 2006 <fo:block text-align="start"> 2008 2007 <xsl:value-of select="$left" /> 2009 2008 </fo:block> 2010 2009 </fo:table-cell> 2011 2010 <fo:table-cell text-align="center"> 2012 2011 <fo:block> 2013 2012 <xsl:value-of select="$center" /> 2014 2013 </fo:block> 2015 2014 </fo:table-cell> 2016 2015 <fo:table-cell text-align="end"> 2017 2016 <fo:block> 2018 2017 <xsl:value-of select="$right" /> 2019 2018 </fo:block> 2020 2019 </fo:table-cell> 2021 2020 </fo:table-row> … … 2035 2034 <fo:block> 2036 2035 <xsl:value-of select="$right" /> 2037 2036 </fo:block> 2038 2037 </fo:table-cell> 2039 2038 <fo:table-cell text-align="center"> 2040 2039 <fo:block> 2041 2040 <xsl:value-of select="$center" /> 2042 2041 </fo:block> 2043 2042 </fo:table-cell> 2044 2043 <fo:table-cell> 2045 2044 <fo:block text-align="end"> 2046 2045 <xsl:value-of select="$left" /> 2047 2046 </fo:block> 2048 2047 </fo:table-cell> 2049 2048 </fo:table-row> … … 2073 2072 <fo:block text-align="start"> 2074 2073 <xsl:value-of select="$left" /> 2075 2074 </fo:block> 2076 2075 </fo:table-cell> 2077 2076 <fo:table-cell> 2078 2077 <fo:block text-align="center"> 2079 2078 <xsl:value-of select="$center" /> 2080 2079 </fo:block> 2081 2080 </fo:table-cell> 2082 2081 <fo:table-cell> … … 2101 2100 <fo:block text-align="center"> 2102 2101 <xsl:value-of select="$center" /> 2103 2102 </fo:block> 2104 2103 </fo:table-cell> 2105 2104 <fo:table-cell> 2106 2105 <fo:block text-align="end"> 2107 2106 <xsl:value-of select="$left" /> 2108 2107 </fo:block> 2109 2108 </fo:table-cell> 2110 2109 </fo:table-row> … … 2203 2202 </xsl:if> 2204 2203 2205 <xsl:if test=" not($xml2rfc-private)and not($no-copylong)">2204 <xsl:if test="$xml2rfc-private='' and not($no-copylong)"> 2206 2205 <!-- copyright statements --> 2207 2206 <fo:bookmark internal-destination="{concat($anchor-prefix,'.ipr')}"> … … 2252 2251 <xsl:choose> 2253 2252 <xsl:when test="@title!=''"><xsl:value-of select="@title" /></xsl:when> 2254 <xsl:otherwise> References</xsl:otherwise>2253 <xsl:otherwise><xsl:value-of select="$xml2rfc-refparent"/></xsl:otherwise> 2255 2254 </xsl:choose> 2256 2255 </xsl:variable> … … 2272 2271 <xsl:call-template name="get-references-section-number"/> 2273 2272 <xsl:if test="$xml2rfc-ext-sec-no-trailing-dots='yes'">.</xsl:if> 2274 <xsl:text> References</xsl:text> 2273 <xsl:text> </xsl:text> 2274 <xsl:value-of select="$xml2rfc-refparent"/> 2275 2275 </fo:bookmark-title> 2276 2276 … … 2280 2280 <xsl:choose> 2281 2281 <xsl:when test="@title!=''"><xsl:value-of select="@title" /></xsl:when> 2282 <xsl:otherwise> References</xsl:otherwise>2282 <xsl:otherwise><xsl:value-of select="$xml2rfc-refparent"/></xsl:otherwise> 2283 2283 </xsl:choose> 2284 2284 </xsl:variable> … … 2304 2304 2305 2305 <xsl:template match="rfc" mode="bookmarks"> 2306 <xsl:if test=" not($xml2rfc-private)">2306 <xsl:if test="$xml2rfc-private=''"> 2307 2307 <!-- Get status info formatted as per RFC2629--> 2308 2308 <xsl:variable name="preamble"><xsl:call-template name="insertPreamble" /></xsl:variable>
Note: See TracChangeset
for help on using the changeset viewer.