Changeset 440 for rfc2629xslt/rfc2629.xslt
- Timestamp:
- 29/01/09 15:34:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629.xslt
r329 r440 2 2 XSLT transformation from RFC2629 XML format to HTML 3 3 4 Copyright (c) 2006-200 8, Julian Reschke (julian.reschke@greenbytes.de)4 Copyright (c) 2006-2009, Julian Reschke (julian.reschke@greenbytes.de) 5 5 All rights reserved. 6 6 … … 30 30 --> 31 31 32 <xsl: stylesheetxmlns:xsl="http://www.w3.org/1999/XSL/Transform"32 <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 33 33 version="1.0" 34 34 35 xmlns:date="http://exslt.org/dates-and-times" 35 36 xmlns:ed="http://greenbytes.de/2002/rfcedit" 36 xmlns:date="http://exslt.org/dates-and-times"37 37 xmlns:exslt="http://exslt.org/common" 38 38 xmlns:msxsl="urn:schemas-microsoft-com:xslt" 39 39 xmlns:myns="mailto:julian.reschke@greenbytes.de?subject=rcf2629.xslt" 40 40 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 41 xmlns:saxon="http://saxon.sf.net/" 41 42 xmlns:saxon-old="http://icl.com/saxon" 42 xmlns:saxon="http://saxon.sf.net/"43 43 xmlns:x="http://purl.org/net/xml2rfc/ext" 44 44 xmlns:xhtml="http://www.w3.org/1999/xhtml" … … 142 142 /> 143 143 144 <!-- Format to the RFC Editor's taste --> 145 146 <xsl:param name="xml2rfc-rfcedstyle" 147 select="substring-after( 148 translate(/processing-instruction('rfc')[contains(.,'rfcedstyle=')], concat($quote-chars,' '), ''), 149 'rfcedstyle=')" 150 /> 151 144 152 <!-- use symbolic reference names instead of numeric ones unless a processing instruction <?rfc?> 145 153 exists with contents symrefs="no". Can be overriden by an XSLT parameter --> … … 267 275 <xsl:param name="rfcUrlPrefix" select="'http://tools.ietf.org/html/rfc'" /> 268 276 <xsl:param name="rfcUrlPostfix" select="''" /> 269 <xsl:param name="rfcUrlFrag" select="'section-'" /> 277 <xsl:param name="rfcUrlFragSection" select="'section-'" /> 278 <xsl:param name="rfcUrlFragAppendix" select="'appendix-'" /> 270 279 <xsl:param name="internetDraftUrlPrefix" select="'http://tools.ietf.org/html/'" /> 271 280 <xsl:param name="internetDraftUrlPostfix" select="''" /> … … 282 291 <xsl:variable name="lcase" select="'abcdefghijklmnopqrstuvwxyz'" /> 283 292 <xsl:variable name="ucase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" /> 284 285 <xsl:variable name="plain" select="' #/ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />286 <xsl:variable name="touri" select="'___abcdefghijklmnopqrstuvwxyz'" />287 293 288 294 <!-- build help keys for indices --> … … 358 364 )" /> 359 365 366 <xsl:variable name="ipr-2008-11" select="( 367 /rfc/@number and 368 ($xml2rfc-ext-pub-year >= 2009 or ($xml2rfc-ext-pub-year >= 2008 and $xml2rfc-ext-pub-month-numeric >= 11)) 369 ) 370 or 371 ( 372 /rfc/@ipr = 'trust200811' or 373 /rfc/@ipr = 'noModificationTrust200811' or 374 /rfc/@ipr = 'noDerivativesTrust200811' 375 )" /> 376 360 377 <!-- funding switch --> 361 378 <xsl:variable name="funding0" select="( … … 369 386 )" /> 370 387 371 <xsl:variable name="funding2" select="$ipr-2007-08"/> 388 <xsl:variable name="no-funding" select="$ipr-2007-08"/> 389 390 <xsl:variable name="no-copylong" select="$ipr-2008-11"/> 372 391 373 392 <!-- will document have an index --> … … 420 439 <xsl:template name="add-artwork-class"> 421 440 <xsl:choose> 422 <xsl:when test="@type='abnf' or @type='abnf2 616' or @type='application/xml-dtd' or @type='inline' or @type='application/relax-ng-compact-syntax'">441 <xsl:when test="@type='abnf' or @type='abnf2045' or @type='abnf2616' or @type='application/xml-dtd' or @type='inline' or @type='application/relax-ng-compact-syntax'"> 423 442 <xsl:attribute name="class">inline</xsl:attribute> 424 443 </xsl:when> … … 651 670 652 671 <span class="vcardline"> 653 <xsl:text>EMail: </xsl:text> 672 <xsl:choose> 673 <xsl:when test="$xml2rfc-rfcedstyle='yes'">Email: </xsl:when> 674 <xsl:otherwise>EMail: </xsl:otherwise> 675 </xsl:choose> 654 676 <a> 655 677 <xsl:if test="$xml2rfc-linkmailto!='no'"> … … 806 828 </xsl:if> 807 829 830 <!-- check for conforming ipr attribute --> 831 <xsl:choose> 832 <xsl:when test="not(/rfc/@ipr)" /> 833 <xsl:when test="/rfc/@ipr = 'full2026'" /> 834 <xsl:when test="/rfc/@ipr = 'noDerivativeWorks'" /> 835 <xsl:when test="/rfc/@ipr = 'none'" /> 836 <xsl:when test="/rfc/@ipr = 'full3667'" /> 837 <xsl:when test="/rfc/@ipr = 'noModification3667'" /> 838 <xsl:when test="/rfc/@ipr = 'noDerivatives3667'" /> 839 <xsl:when test="/rfc/@ipr = 'full3978'" /> 840 <xsl:when test="/rfc/@ipr = 'noModification3978'" /> 841 <xsl:when test="/rfc/@ipr = 'noDerivatives3978'" /> 842 <xsl:when test="/rfc/@ipr = 'trust200811'" /> 843 <xsl:when test="/rfc/@ipr = 'noModificationTrust200811'" /> 844 <xsl:when test="/rfc/@ipr = 'noDerivativesTrust200811'" /> 845 <xsl:otherwise> 846 <xsl:call-template name="error"> 847 <xsl:with-param name="msg" select="concat('Unknown value for /rfc/@ipr: ', /rfc/@ipr)"/> 848 </xsl:call-template> 849 </xsl:otherwise> 850 </xsl:choose> 851 808 852 <xsl:if test="not($xml2rfc-private)"> 853 809 854 <!-- Get status info formatted as per RFC2629--> 810 <xsl:variable name="preamble"><xsl:call-template name="insertPreamble" /></xsl:variable> 855 <xsl:variable name="preamble"> 856 <xsl:call-template name="insertPreamble" /> 857 </xsl:variable> 811 858 812 859 <!-- emit it --> … … 822 869 </xsl:choose> 823 870 </xsl:if> 824 871 825 872 <xsl:apply-templates select="abstract" /> 826 873 <xsl:apply-templates select="note" /> … … 1115 1162 </xsl:variable> 1116 1163 <xsl:value-of select="concat($rfcUrlPrefix,$bib/seriesInfo[@name='RFC']/@value,$rfcUrlPostfix)" /> 1117 <xsl:if test="$ref and $sec!='' and $rfcUrlFrag"> 1118 <xsl:value-of select="concat('#',$rfcUrlFrag,$sec)"/> 1164 <xsl:if test="$ref and $sec!='' and $rfcUrlFragSection and $rfcUrlFragAppendix"> 1165 <xsl:choose> 1166 <xsl:when test="translate(substring($sec,1,1),$ucase,'')=''"> 1167 <xsl:value-of select="concat('#',$rfcUrlFragAppendix,$sec)"/> 1168 </xsl:when> 1169 <xsl:otherwise> 1170 <xsl:value-of select="concat('#',$rfcUrlFragSection,$sec)"/> 1171 </xsl:otherwise> 1172 </xsl:choose> 1119 1173 </xsl:if> 1120 1174 </xsl:when> … … 1784 1838 <xsl:when test="@x:fmt='none'"> 1785 1839 <xsl:choose> 1786 <xsl:when test=" name($node)='reference'">1840 <xsl:when test="$node/self::reference"> 1787 1841 <cite title="{normalize-space($node/front/title)}"> 1788 1842 <xsl:if test="$xml2rfc-ext-include-references-in-index='yes'"> … … 1810 1864 1811 1865 <!-- Section links --> 1812 <xsl:when test=" name($node)='section' or name($node)='appendix'">1866 <xsl:when test="$node/self::section or $node/self::appendix"> 1813 1867 <xsl:apply-templates/> 1814 <xsl:variable name="context" select="."/>1815 1868 <xsl:text> (</xsl:text> 1816 1869 <a href="#{@target}"> … … 1851 1904 <xsl:template match="xref[not(node())]"> 1852 1905 1853 <xsl:variable name="context" select="." />1854 1906 <xsl:variable name="target" select="@target" /> 1855 1907 <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> … … 1864 1916 1865 1917 <!-- Section links --> 1866 <xsl:when test=" name($node)='section' or name($node)='appendix'">1918 <xsl:when test="$node/self::section or $node/self::appendix"> 1867 1919 <a href="#{@target}"> 1868 1920 <!-- insert id when a backlink to this xref is needed in the index --> … … 1878 1930 1879 1931 <!-- Figure links --> 1880 <xsl:when test=" name($node)='figure'">1932 <xsl:when test="$node/self::figure"> 1881 1933 <a href="#{$target}"> 1882 1934 <xsl:variable name="figcnt"> … … 1900 1952 1901 1953 <!-- Table links --> 1902 <xsl:when test=" name($node)='texttable'">1954 <xsl:when test="$node/self::texttable"> 1903 1955 <a href="#{$target}"> 1904 1956 <xsl:variable name="tabcnt"> … … 1922 1974 1923 1975 <!-- Reference links --> 1924 <xsl:when test=" name($node)='reference'">1976 <xsl:when test="$node/self::reference"> 1925 1977 1926 1978 <xsl:variable name="href"> … … 2130 2182 <!-- default case --> 2131 2183 <xsl:if test="not($xml2rfc-private)"> 2132 <myns:item>Network Working Group</myns:item> 2184 <xsl:choose> 2185 <xsl:when test="/rfc/front/workgroup"> 2186 <xsl:for-each select="/rfc/front/workgroup"> 2187 <myns:item><xsl:value-of select="."/></myns:item> 2188 </xsl:for-each> 2189 </xsl:when> 2190 <xsl:otherwise> 2191 <myns:item>Network Working Group</myns:item> 2192 </xsl:otherwise> 2193 </xsl:choose> 2133 2194 <myns:item> 2134 2195 <xsl:choose> … … 2384 2445 <xsl:template name="insertCopyright" myns:namespaceless-elements="xml2rfc"> 2385 2446 2386 <xsl:choose> 2387 <xsl:when test="$ipr-rfc3667"> 2388 <section title="Full Copyright Statement" anchor="{$anchor-prefix}.copyright" myns:unnumbered="unnumbered" myns:notoclink="notoclink"> 2389 <t> 2390 <xsl:choose> 2391 <xsl:when test="$ipr-2007-08"/> 2392 <xsl:when test="$ipr-rfc4748"> 2393 Copyright © The IETF Trust (<xsl:value-of select="$xml2rfc-ext-pub-year" />). 2394 </xsl:when> 2395 <xsl:otherwise> 2396 Copyright © The Internet Society (<xsl:value-of select="$xml2rfc-ext-pub-year" />). 2397 </xsl:otherwise> 2398 </xsl:choose> 2399 </t> 2400 <t> 2401 This document is subject to the rights, licenses and restrictions 2402 contained in BCP 78<xsl:if test="/rfc/@submissionType='independent'"> and at <eref target="http://www.rfc-editor.org/copyright.html"/></xsl:if>, and except as set forth therein, the authors 2403 retain all their rights. 2404 </t> 2405 <t> 2406 <xsl:choose> 2407 <xsl:when test="$ipr-rfc4748"> 2408 This document and the information contained herein are provided 2409 on an “AS IS” basis and THE CONTRIBUTOR, 2410 THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), 2411 THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING 2412 TASK FORCE DISCLAIM ALL WARRANTIES, 2413 EXPRESS OR IMPLIED, 2414 INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE 2415 INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED 2416 WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 2417 </xsl:when> 2418 <xsl:otherwise> 2419 This document and the information contained herein are provided 2420 on an “AS IS” basis and THE CONTRIBUTOR, 2421 THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), 2422 THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM 2423 ALL WARRANTIES, 2424 EXPRESS OR IMPLIED, 2425 INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE 2426 INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED 2427 WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 2428 </xsl:otherwise> 2429 </xsl:choose> 2430 </t> 2431 </section> 2432 </xsl:when> 2433 <xsl:otherwise> 2434 <!-- <http://tools.ietf.org/html/rfc2026#section-10.4> --> 2435 <section title="Full Copyright Statement" anchor="{$anchor-prefix}.copyright" myns:unnumbered="unnumbered" myns:notoclink="notoclink"> 2436 <t> 2437 Copyright © The Internet Society (<xsl:value-of select="$xml2rfc-ext-pub-year" />). All Rights Reserved. 2438 </t> 2439 <t> 2440 This document and translations of it may be copied and furnished to 2441 others, and derivative works that comment on or otherwise explain it 2442 or assist in its implementation may be prepared, copied, published and 2443 distributed, in whole or in part, without restriction of any kind, 2444 provided that the above copyright notice and this paragraph are 2445 included on all such copies and derivative works. However, this 2446 document itself may not be modified in any way, such as by removing 2447 the copyright notice or references to the Internet Society or other 2448 Internet organizations, except as needed for the purpose of 2449 developing Internet standards in which case the procedures for 2450 copyrights defined in the Internet Standards process must be 2451 followed, or as required to translate it into languages other than 2452 English. 2453 </t> 2454 <t> 2455 The limited permissions granted above are perpetual and will not be 2456 revoked by the Internet Society or its successors or assignees. 2457 </t> 2458 <t> 2459 This document and the information contained herein is provided on an 2460 “AS IS” basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING 2461 TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING 2462 BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION 2463 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF 2464 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 2465 </t> 2466 </section> 2467 </xsl:otherwise> 2468 </xsl:choose> 2469 2470 <section title="Intellectual Property" anchor="{$anchor-prefix}.ipr" myns:unnumbered="unnumbered"> 2447 <xsl:if test="not($no-copylong)"> 2448 <section title="Full Copyright Statement" anchor="{$anchor-prefix}.copyright" myns:unnumbered="unnumbered" myns:notoclink="notoclink"> 2449 <xsl:choose> 2450 <xsl:when test="$ipr-rfc3667"> 2451 <t> 2452 <xsl:choose> 2453 <xsl:when test="$ipr-2007-08"/> 2454 <xsl:when test="$ipr-rfc4748"> 2455 Copyright © The IETF Trust (<xsl:value-of select="$xml2rfc-ext-pub-year" />). 2456 </xsl:when> 2457 <xsl:otherwise> 2458 Copyright © The Internet Society (<xsl:value-of select="$xml2rfc-ext-pub-year" />). 2459 </xsl:otherwise> 2460 </xsl:choose> 2461 </t> 2462 <t> 2463 This document is subject to the rights, licenses and restrictions 2464 contained in BCP 78<xsl:if test="/rfc/@submissionType='independent'"> and at <eref target="http://www.rfc-editor.org/copyright.html"/></xsl:if>, and except as set forth therein, the authors 2465 retain all their rights. 2466 </t> 2467 <t> 2468 This document and the information contained herein are provided 2469 on an “AS IS” basis and THE CONTRIBUTOR, 2470 THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), 2471 THE INTERNET SOCIETY<xsl:if test="$ipr-rfc4748">, THE IETF TRUST</xsl:if> 2472 AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, 2473 EXPRESS OR IMPLIED, 2474 INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE 2475 INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED 2476 WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 2477 </t> 2478 </xsl:when> 2479 <xsl:otherwise> 2480 <!-- <http://tools.ietf.org/html/rfc2026#section-10.4> --> 2481 <t> 2482 Copyright © The Internet Society (<xsl:value-of select="$xml2rfc-ext-pub-year" />). All Rights Reserved. 2483 </t> 2484 <t> 2485 This document and translations of it may be copied and furnished to 2486 others, and derivative works that comment on or otherwise explain it 2487 or assist in its implementation may be prepared, copied, published and 2488 distributed, in whole or in part, without restriction of any kind, 2489 provided that the above copyright notice and this paragraph are 2490 included on all such copies and derivative works. However, this 2491 document itself may not be modified in any way, such as by removing 2492 the copyright notice or references to the Internet Society or other 2493 Internet organizations, except as needed for the purpose of 2494 developing Internet standards in which case the procedures for 2495 copyrights defined in the Internet Standards process must be 2496 followed, or as required to translate it into languages other than 2497 English. 2498 </t> 2499 <t> 2500 The limited permissions granted above are perpetual and will not be 2501 revoked by the Internet Society or its successors or assignees. 2502 </t> 2503 <t> 2504 This document and the information contained herein is provided on an 2505 “AS IS” basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING 2506 TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING 2507 BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION 2508 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF 2509 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 2510 </t> 2511 </xsl:otherwise> 2512 </xsl:choose> 2513 </section> 2514 2515 <section title="Intellectual Property" anchor="{$anchor-prefix}.ipr" myns:unnumbered="unnumbered"> 2516 <xsl:choose> 2517 <xsl:when test="$ipr-rfc3667"> 2518 <t> 2519 The IETF takes no position regarding the validity or scope of any 2520 Intellectual Property Rights or other rights that might be claimed to 2521 pertain to the implementation or use of the technology described in 2522 this document or the extent to which any license under such rights 2523 might or might not be available; nor does it represent that it has 2524 made any independent effort to identify any such rights. Information 2525 on the procedures with respect to rights in RFC documents 2526 can be found in BCP 78 and BCP 79. 2527 </t> 2528 <t> 2529 Copies of IPR disclosures made to the IETF Secretariat and any 2530 assurances of licenses to be made available, or the result of an 2531 attempt made to obtain a general license or permission for the use 2532 of such proprietary rights by implementers or users of this 2533 specification can be obtained from the IETF on-line IPR repository 2534 at <eref target="http://www.ietf.org/ipr"/>. 2535 </t> 2536 <t> 2537 The IETF invites any interested party to bring to its attention any 2538 copyrights, patents or patent applications, or other proprietary 2539 rights that may cover technology that may be required to implement 2540 this standard. Please address the information to the IETF at 2541 <eref target="mailto:ietf-ipr@ietf.org">ietf-ipr@ietf.org</eref>. 2542 </t> 2543 </xsl:when> 2544 <xsl:otherwise> 2545 <t> 2546 The IETF takes no position regarding the validity or scope of 2547 any intellectual property or other rights that might be claimed 2548 to pertain to the implementation or use of the technology 2549 described in this document or the extent to which any license 2550 under such rights might or might not be available; neither does 2551 it represent that it has made any effort to identify any such 2552 rights. Information on the IETF's procedures with respect to 2553 rights in standards-track and standards-related documentation 2554 can be found in BCP-11. Copies of claims of rights made 2555 available for publication and any assurances of licenses to 2556 be made available, or the result of an attempt made 2557 to obtain a general license or permission for the use of such 2558 proprietary rights by implementors or users of this 2559 specification can be obtained from the IETF Secretariat. 2560 </t> 2561 <t> 2562 The IETF invites any interested party to bring to its 2563 attention any copyrights, patents or patent applications, or 2564 other proprietary rights which may cover technology that may be 2565 required to practice this standard. Please address the 2566 information to the IETF Executive Director. 2567 </t> 2568 <xsl:if test="$xml2rfc-iprnotified='yes'"> 2569 <t> 2570 The IETF has been notified of intellectual property rights 2571 claimed in regard to some or all of the specification contained 2572 in this document. For more information consult the online list 2573 of claimed rights. 2574 </t> 2575 </xsl:if> 2576 </xsl:otherwise> 2577 </xsl:choose> 2578 </section> 2579 2471 2580 <xsl:choose> 2472 <xsl:when test="$ipr-rfc3667"> 2473 <t> 2474 The IETF takes no position regarding the validity or scope of any 2475 Intellectual Property Rights or other rights that might be claimed to 2476 pertain to the implementation or use of the technology described in 2477 this document or the extent to which any license under such rights 2478 might or might not be available; nor does it represent that it has 2479 made any independent effort to identify any such rights. Information 2480 on the procedures with respect to rights in RFC documents 2481 can be found in BCP 78 and BCP 79. 2482 </t> 2483 <t> 2484 Copies of IPR disclosures made to the IETF Secretariat and any 2485 assurances of licenses to be made available, or the result of an 2486 attempt made to obtain a general license or permission for the use 2487 of such proprietary rights by implementers or users of this 2488 specification can be obtained from the IETF on-line IPR repository 2489 at <eref target="http://www.ietf.org/ipr"/>. 2490 </t> 2491 <t> 2492 The IETF invites any interested party to bring to its attention any 2493 copyrights, patents or patent applications, or other proprietary 2494 rights that may cover technology that may be required to implement 2495 this standard. Please address the information to the IETF at 2496 <eref target="mailto:ietf-ipr@ietf.org">ietf-ipr@ietf.org</eref>. 2497 </t> 2581 <xsl:when test="$no-funding"/> 2582 <xsl:when test="$funding1 and /rfc/@number"> 2583 <section myns:unnumbered="unnumbered" myns:notoclink="notoclink"> 2584 <xsl:attribute name="title"> 2585 <xsl:choose> 2586 <xsl:when test="$xml2rfc-rfcedstyle='yes'">Acknowledgement</xsl:when> 2587 <xsl:otherwise>Acknowledgment</xsl:otherwise> 2588 </xsl:choose> 2589 </xsl:attribute> 2590 <t> 2591 Funding for the RFC Editor function is provided by the IETF 2592 Administrative Support Activity (IASA). 2593 </t> 2594 </section> 2498 2595 </xsl:when> 2499 <xsl:otherwise> 2500 <t> 2501 The IETF takes no position regarding the validity or scope of 2502 any intellectual property or other rights that might be claimed 2503 to pertain to the implementation or use of the technology 2504 described in this document or the extent to which any license 2505 under such rights might or might not be available; neither does 2506 it represent that it has made any effort to identify any such 2507 rights. Information on the IETF's procedures with respect to 2508 rights in standards-track and standards-related documentation 2509 can be found in BCP-11. Copies of claims of rights made 2510 available for publication and any assurances of licenses to 2511 be made available, or the result of an attempt made 2512 to obtain a general license or permission for the use of such 2513 proprietary rights by implementors or users of this 2514 specification can be obtained from the IETF Secretariat. 2515 </t> 2516 <t> 2517 The IETF invites any interested party to bring to its 2518 attention any copyrights, patents or patent applications, or 2519 other proprietary rights which may cover technology that may be 2520 required to practice this standard. Please address the 2521 information to the IETF Executive Director. 2522 </t> 2523 <xsl:if test="$xml2rfc-iprnotified='yes'"> 2596 <xsl:when test="$funding0 and /rfc/@number"> 2597 <section myns:unnumbered="unnumbered" myns:notoclink="notoclink"> 2598 <xsl:attribute name="title"> 2599 <xsl:choose> 2600 <xsl:when test="$xml2rfc-rfcedstyle='yes'">Acknowledgement</xsl:when> 2601 <xsl:otherwise>Acknowledgment</xsl:otherwise> 2602 </xsl:choose> 2603 </xsl:attribute> 2524 2604 <t> 2525 The IETF has been notified of intellectual property rights 2526 claimed in regard to some or all of the specification contained 2527 in this document. For more information consult the online list 2528 of claimed rights. 2605 Funding for the RFC Editor function is currently provided by 2606 the Internet Society. 2529 2607 </t> 2530 </xsl:if> 2531 </xsl:otherwise> 2608 </section> 2609 </xsl:when> 2610 <xsl:otherwise/> 2532 2611 </xsl:choose> 2533 </section> 2534 2535 <xsl:choose> 2536 <xsl:when test="$funding2"/> 2537 <xsl:when test="$funding1 and /rfc/@number"> 2538 <section title="Acknowledgement" myns:unnumbered="unnumbered" myns:notoclink="notoclink"> 2539 <t> 2540 Funding for the RFC Editor function is provided by the IETF 2541 Administrative Support Activity (IASA). 2542 </t> 2543 </section> 2544 </xsl:when> 2545 <xsl:when test="$funding0 and /rfc/@number"> 2546 <section title="Acknowledgement" myns:unnumbered="unnumbered" myns:notoclink="notoclink"> 2547 <t> 2548 Funding for the RFC Editor function is currently provided by 2549 the Internet Society. 2550 </t> 2551 </section> 2552 </xsl:when> 2553 <xsl:otherwise/> 2554 </xsl:choose> 2612 </xsl:if> 2555 2613 2556 2614 </xsl:template> … … 2798 2856 margin-left: 0em; 2799 2857 } 2800 ul.ind {2858 <xsl:if test="$has-index">ul.ind { 2801 2859 list-style: none; 2802 2860 margin-left: 1.5em; 2803 2861 margin-right: 0em; 2804 2862 padding-left: 0em; 2863 page-break-before: avoid; 2805 2864 } 2806 2865 li.indline0 { … … 2816 2875 margin-right: 0em; 2817 2876 } 2818 < xsl:if test="//x:bcp14">.bcp14 {2877 </xsl:if><xsl:if test="//x:bcp14">.bcp14 { 2819 2878 font-style: normal; 2820 2879 text-transform: lowercase; … … 3328 3387 <xsl:if test="generate-id(.) = generate-id(key('index-item-subitem',concat(@item,'..',@subitem)))"> 3329 3388 3330 <xsl:variable name="itemsubitem" select="concat(@item,'..',@subitem)"/>3331 3389 <xsl:variable name="in-artwork2" select="key('index-item-subitem',concat(@item,'..',@subitem))[@primary='true' and ancestor::artwork]" /> 3332 3390 … … 3379 3437 <xsl:template name="insertPreamble" myns:namespaceless-elements="xml2rfc"> 3380 3438 3381 <section title="Status of this Memo" myns:unnumbered="unnumbered" myns:notoclink="notoclink" anchor="{$anchor-prefix}.status"> 3439 <section myns:unnumbered="unnumbered" myns:notoclink="notoclink" anchor="{$anchor-prefix}.status"> 3440 <xsl:attribute name="title"> 3441 <xsl:choose> 3442 <xsl:when test="$xml2rfc-rfcedstyle='yes'">Status of This Memo</xsl:when> 3443 <xsl:otherwise>Status of this Memo</xsl:otherwise> 3444 </xsl:choose> 3445 </xsl:attribute> 3382 3446 3383 3447 <xsl:choose> … … 3471 3535 <xref target="{/rfc/@iprExtract}"/> as-is for separate use.</xsl:if>. 3472 3536 </xsl:when> 3473 3474 <xsl:otherwise>CONFORMANCE UNDEFINED.</xsl:otherwise> 3537 3538 <!-- as of Nov 2008 --> 3539 <xsl:when test="/rfc/@ipr = 'trust200811'"> 3540 This Internet-Draft is submitted to IETF pursuant to, and in full 3541 conformance with, the provisions of BCP 78 and BCP 79. 3542 </xsl:when> 3543 <xsl:when test="/rfc/@ipr = 'noModificationTrust200811'"> 3544 This Internet-Draft is submitted to IETF pursuant to, and in full 3545 conformance with, the provisions of BCP 78 and BCP 79. 3546 This document may not be modified, and derivative works of it may 3547 not be created, except to format it for publication as an RFC and 3548 to translate it into languages other than English. 3549 </xsl:when> 3550 <xsl:when test="/rfc/@ipr = 'noDerivativesTrust200811'"> 3551 This Internet-Draft is submitted to IETF pursuant to, and in full 3552 conformance with, the provisions of BCP 78 and BCP 79. 3553 This document may not be modified, and derivative works of it may 3554 not be created, and it may not be published except as an Internet-Draft. 3555 </xsl:when> 3556 <xsl:otherwise> 3557 CONFORMANCE UNDEFINED. 3558 </xsl:otherwise> 3475 3559 </xsl:choose> 3476 3560 </t> … … 3546 3630 3547 3631 <xsl:choose> 3548 <xsl:when test="$ipr-2007-08"/> 3632 <xsl:when test="$ipr-2008-11"> 3633 <section title="Copyright Notice" myns:unnumbered="unnumbered" myns:notoclink="notoclink" anchor="{$anchor-prefix}.copyrightnotice"> 3634 <t> 3635 Copyright © <xsl:value-of select="$xml2rfc-ext-pub-year" /> IETF Trust and the persons identified 3636 as the document authors. All rights reserved. 3637 </t> 3638 <t> 3639 This document is subject to BCP 78 and the IETF Trust's Legal 3640 Provisions Relating to IETF Documents 3641 (<eref target="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</eref>) in effect on the date of 3642 publication of this document. Please review these documents 3643 carefully, as they describe your rights and restrictions with respect 3644 to this document. 3645 </t> 3646 </section> 3647 </xsl:when> 3648 <xsl:when test="$ipr-2007-08"> 3649 <!-- no copyright notice --> 3650 </xsl:when> 3549 3651 <xsl:when test="$ipr-rfc4748"> 3550 3652 <section title="Copyright Notice" myns:unnumbered="unnumbered" myns:notoclink="notoclink" anchor="{$anchor-prefix}.copyrightnotice"> … … 3558 3660 <t> 3559 3661 Copyright © The Internet Society (<xsl:value-of select="$xml2rfc-ext-pub-year" />). All Rights Reserved. 3560 </t>3662 </t> 3561 3663 </section> 3562 3664 </xsl:otherwise> … … 3660 3762 3661 3763 <!-- copyright statements --> 3662 <xsl:if test="not($xml2rfc-private) ">3764 <xsl:if test="not($xml2rfc-private) and not($no-copylong)"> 3663 3765 <li> 3664 3766 <xsl:call-template name="insert-toc-line"> … … 4227 4329 4228 4330 <xsl:choose> 4331 <xsl:when test="$c='-'">2D</xsl:when> 4332 <xsl:when test="$c='0'">30</xsl:when> 4333 <xsl:when test="$c='1'">31</xsl:when> 4334 <xsl:when test="$c='2'">32</xsl:when> 4335 <xsl:when test="$c='3'">33</xsl:when> 4336 <xsl:when test="$c='4'">34</xsl:when> 4337 <xsl:when test="$c='5'">35</xsl:when> 4338 <xsl:when test="$c='6'">36</xsl:when> 4339 <xsl:when test="$c='7'">37</xsl:when> 4340 <xsl:when test="$c='8'">38</xsl:when> 4341 <xsl:when test="$c='9'">39</xsl:when> 4229 4342 <xsl:when test="$c='A'">41</xsl:when> 4230 4343 <xsl:when test="$c='B'">42</xsl:when> … … 4327 4440 <xsl:template match="x:bc"> 4328 4441 <xsl:variable name="first" select="substring(.,1)"/> 4329 <xsl:variable name="last" select="substring(.,string-length(.)-1)"/>4330 4442 <xsl:variable name="content" select="substring(.,2,string-length(.)-2)"/> 4331 4443 <xsl:variable name="is-delimiter" select="translate($content,'-','')=''"/> … … 4513 4625 4514 4626 <xsl:template match="*|@*" mode="issuehtml"> 4515 <xsl:message terminate="yes">Unexpected node in issue HTML: <xsl:value-of select=" local-name(.)"/></xsl:message>4627 <xsl:message terminate="yes">Unexpected node in issue HTML: <xsl:value-of select="name(.)"/></xsl:message> 4516 4628 </xsl:template> 4517 4629 … … 4571 4683 </table> 4572 4684 4573 </xsl:template>4574 4575 <xsl:template name="formatTitle">4576 <xsl:if test="@who">4577 <xsl:value-of select="@who" />4578 </xsl:if>4579 <xsl:if test="@datetime">4580 <xsl:value-of select="concat(' (',@datetime,')')" />4581 </xsl:if>4582 <xsl:if test="@reason">4583 <xsl:value-of select="concat(': ',@reason)" />4584 </xsl:if>4585 <xsl:if test="@cite">4586 <xsl:value-of select="concat(' <',@cite,'>')" />4587 </xsl:if>4588 4685 </xsl:template> 4589 4686 … … 5087 5184 </xsl:template> 5088 5185 5089 <xsl:template name="get-authors">5090 <xsl:for-each select="/rfc/front/author">5091 <xsl:value-of select="@fullname" />5092 <xsl:if test="position()!=last()">, </xsl:if>5093 </xsl:for-each>5094 </xsl:template>5095 5096 5186 <xsl:template name="get-category-long"> 5097 5187 <xsl:choose> … … 5131 5221 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 5132 5222 <!-- when RCS keyword substitution in place, add version info --> 5133 <xsl:if test="contains('$Revision: 1.4 00$',':')">5134 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.4 00$', 'Revision: '),'$','')),', ')" />5223 <xsl:if test="contains('$Revision: 1.415 $',':')"> 5224 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.415 $', 'Revision: '),'$','')),', ')" /> 5135 5225 </xsl:if> 5136 <xsl:if test="contains('$Date: 200 8-10-10 14:04:14$',':')">5137 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 200 8-10-10 14:04:14$', 'Date: '),'$','')),', ')" />5226 <xsl:if test="contains('$Date: 2009-01-29 15:06:08 $',':')"> 5227 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-01-29 15:06:08 $', 'Date: '),'$','')),', ')" /> 5138 5228 </xsl:if> 5139 5229 <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))" /> … … 5471 5561 </xsl:param> 5472 5562 5473 </xsl: stylesheet>5563 </xsl:transform>
Note: See TracChangeset
for help on using the changeset viewer.