Changeset 729 for rfc2629xslt/rfc2629toXHTML.xslt
- Timestamp:
- 01/12/09 08:11:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629toXHTML.xslt
r723 r729 243 243 <xsl:with-param name="attr" select="'duplex'"/> 244 244 <xsl:with-param name="default" select="'no'"/> 245 </xsl:call-template> 246 </xsl:param> 247 248 <!-- experimental support for http://tools.ietf.org/html/draft-iab-streams-headers-boilerplates-08, work in progress --> 249 250 <xsl:param name="xml2rfc-ext-hab"> 251 <xsl:call-template name="parse-pis"> 252 <xsl:with-param name="nodes" select="/processing-instruction('rfc-ext')"/> 253 <xsl:with-param name="attr" select="'h-a-b'"/> 254 <xsl:with-param name="default" select="'no'"/> 255 </xsl:call-template> 256 </xsl:param> 257 <xsl:param name="xml2rfc-ext-consensus"> 258 <xsl:call-template name="parse-pis"> 259 <xsl:with-param name="nodes" select="/processing-instruction('rfc-ext')"/> 260 <xsl:with-param name="attr" select="'consensus'"/> 261 <xsl:with-param name="default" select="'yes'"/> 245 262 </xsl:call-template> 246 263 </xsl:param> … … 325 342 326 343 <xsl:variable name="rfcno" select="/rfc/@number"/> 327 344 345 <xsl:variable name="submissionType"> 346 <xsl:choose> 347 <xsl:when test="/rfc/@submissionType='IETF' or not(/rfc/@submissionType) or /rfc/submissionType=''">IETF</xsl:when> 348 <xsl:when test="/rfc/@submissionType='IAB' or /rfc/@submissionType='IRTF' or /rfc/@submissionType='independent'"> 349 <xsl:value-of select="/rfc/@submissionType"/> 350 </xsl:when> 351 <xsl:otherwise> 352 <xsl:value-of select="concat('(UNSUPPORTED SUBMISSION TYPE: ',/rfc/@submissionType,')')"/> 353 <xsl:call-template name="error"> 354 <xsl:with-param name="msg" select="concat('Unsupported value for /rfc/@submissionType: ', /rfc/@submissionType)"/> 355 <xsl:with-param name="inline" select="'no'"/> 356 </xsl:call-template> 357 </xsl:otherwise> 358 </xsl:choose> 359 </xsl:variable> 360 328 361 <xsl:variable name="ipr-rfc4748" select="( $ipr-rfc3667 and ( $rfcno >= 4715 and ( $rfcno != 4718 and $rfcno != 4735 and $rfcno != 4749 )) or ( $rfcno=4578 or $rfcno=4582 or $rfcno=4583 or $rfcno=4628 or $rfcno=4629 or $rfcno=4639 or $rfcno=4651 or $rfcno=4682 or $rfcno=4684 or $rfcno=4695 or $rfcno=4696 ) or ( not(/rfc/@number) and $pub-yearmonth >= 200611) )"/> 329 362 … … 807 840 808 841 <!-- insert the collected information --> 809 <table xmlns="http://www.w3.org/1999/xhtml" class="header" border="0" cellpadding="1" cellspacing="1">842 <table xmlns="http://www.w3.org/1999/xhtml" class="header"> 810 843 <xsl:choose> 811 844 <xsl:when test="function-available('exslt:node-set')"> … … 959 992 960 993 <xsl:template match="list[@style='empty' or not(@style)]"> 961 < dl xmlns="http://www.w3.org/1999/xhtml" class="empty">994 <ul xmlns="http://www.w3.org/1999/xhtml" class="empty"> 962 995 <xsl:call-template name="insertInsDelClass"/> 963 996 <xsl:apply-templates/> 964 </ dl>997 </ul> 965 998 </xsl:template> 966 999 … … 1021 1054 <xsl:template match="list[@style='empty' or not(@style)]/t | list[@style='empty' or not(@style)]/ed:replace/ed:*/t"> 1022 1055 <!-- Inherited through CSS now <dd style="margin-top: .5em">--> 1023 < ddxmlns="http://www.w3.org/1999/xhtml">1056 <li xmlns="http://www.w3.org/1999/xhtml"> 1024 1057 <xsl:call-template name="copy-anchor"/> 1025 1058 <xsl:call-template name="insertInsDelClass"/> 1026 1059 <xsl:apply-templates/> 1027 </ dd>1060 </li> 1028 1061 </xsl:template> 1029 1062 … … 1495 1528 <xsl:template match="rfc"> 1496 1529 1497 <!-- conformance checks -->1498 <xsl:if test="$xml2rfc-symrefs!='no' and $xml2rfc-symrefs!='yes' and //reference">1499 <xsl:call-template name="warning">1500 <xsl:with-param name="inline" select="'no'"/>1501 <xsl:with-param name="msg">symrefs PI not specified; default has changed from 'no' to 'yes'.</xsl:with-param>1502 </xsl:call-template>1503 </xsl:if>1504 1505 1530 <xsl:variable name="ignored"> 1506 1531 <xsl:call-template name="parse-pis"> … … 2333 2358 <xsl:if test="$xml2rfc-private=''"> 2334 2359 <xsl:choose> 2335 <xsl:when test="/rfc/front/workgroup"> 2360 <xsl:when test="$xml2rfc-ext-hab='yes' and $submissionType='independent'"> 2361 <myns:item>Independent<!-- Stream--></myns:item> 2362 </xsl:when> 2363 <xsl:when test="$xml2rfc-ext-hab='yes' and $submissionType='IETF'"> 2364 <myns:item>Internet Engineering Task Force</myns:item> 2365 </xsl:when> 2366 <xsl:when test="$xml2rfc-ext-hab='yes' and $submissionType='IRTF'"> 2367 <myns:item>Internet Research Task Force</myns:item> 2368 </xsl:when> 2369 <xsl:when test="$xml2rfc-ext-hab='yes' and $submissionType='IAB'"> 2370 <myns:item>Internet Architecture Board</myns:item> 2371 </xsl:when> 2372 <xsl:when test="/rfc/front/workgroup and (not(/rfc/@number) or /rfc/@number='')"> 2336 2373 <xsl:for-each select="/rfc/front/workgroup"> 2337 2374 <myns:item><xsl:value-of select="."/></myns:item> … … 2459 2496 <xsl:param name="rc"/> 2460 2497 2461 <xsl:for-each select="$lc/myns:item | $rc/myns:item"> 2462 <xsl:variable name="pos" select="position()"/> 2463 <xsl:if test="$pos < count($lc/myns:item) + 1 or $pos < count($rc/myns:item) + 1"> 2464 <tr xmlns="http://www.w3.org/1999/xhtml"> 2465 <td class="header left"><xsl:call-template name="copynodes"><xsl:with-param name="nodes" select="$lc/myns:item[$pos]/node()"/></xsl:call-template></td> 2466 <td class="header right"><xsl:call-template name="copynodes"><xsl:with-param name="nodes" select="$rc/myns:item[$pos]/node()"/></xsl:call-template></td> 2467 </tr> 2468 </xsl:if> 2469 </xsl:for-each> 2498 <tbody xmlns="http://www.w3.org/1999/xhtml"> 2499 <xsl:for-each select="$lc/myns:item | $rc/myns:item"> 2500 <xsl:variable name="pos" select="position()"/> 2501 <xsl:if test="$pos < count($lc/myns:item) + 1 or $pos < count($rc/myns:item) + 1"> 2502 <tr> 2503 <td class="left"><xsl:call-template name="copynodes"><xsl:with-param name="nodes" select="$lc/myns:item[$pos]/node()"/></xsl:call-template></td> 2504 <td class="right"><xsl:call-template name="copynodes"><xsl:with-param name="nodes" select="$rc/myns:item[$pos]/node()"/></xsl:call-template></td> 2505 </tr> 2506 </xsl:if> 2507 </xsl:for-each> 2508 </tbody> 2470 2509 </xsl:template> 2471 2510 … … 2665 2704 <t> 2666 2705 This document is subject to the rights, licenses and restrictions 2667 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 authors2706 contained in BCP 78<xsl:if test="$submissionType='independent'"> and at <eref target="http://www.rfc-editor.org/copyright.html"/></xsl:if>, and except as set forth therein, the authors 2668 2707 retain all their rights. 2669 2708 </t> … … 2869 2908 } 2870 2909 <!-- spacing between two entries in definition lists --> 2871 dl.empty dd { 2910 ul.empty { 2911 list-style-type: none; 2912 } 2913 ul.empty li { 2872 2914 margin-top: .5em; 2873 2915 } … … 3021 3063 </xsl:if> 3022 3064 table.header { 3065 border-spacing: 1px; 3023 3066 width: 95%; 3024 3067 font-size: 10pt; … … 3032 3075 white-space: nowrap; 3033 3076 } 3034 t d.header{3077 table.header td { 3035 3078 background-color: gray; 3036 3079 width: 50%; 3037 3080 }<xsl:if test="/rfc/@obsoletes | /rfc/@updates"> 3038 t d.header a {3081 table.header a { 3039 3082 color: white; 3040 3083 }</xsl:if> … … 3869 3912 </xsl:when> 3870 3913 3914 <xsl:when test="/rfc/@category='bcp' and $xml2rfc-ext-hab='yes'"> 3915 <t> 3916 This memo documents an Internet Best Current Practice. 3917 </t> 3918 </xsl:when> 3871 3919 <xsl:when test="/rfc/@category='bcp'"> 3872 3920 <t> … … 3874 3922 Community, and requests discussion and suggestions for improvements. 3875 3923 Distribution of this memo is unlimited. 3924 </t> 3925 </xsl:when> 3926 <xsl:when test="/rfc/@category='exp' and $xml2rfc-ext-hab='yes'"> 3927 <t> 3928 This document is not an Internet Standards Track specification; it is 3929 published for examination, experimental implementation, and evaluation. 3876 3930 </t> 3877 3931 </xsl:when> … … 3884 3938 </t> 3885 3939 </xsl:when> 3940 <xsl:when test="/rfc/@category='historic' and $xml2rfc-ext-hab='yes'"> 3941 <t> 3942 This document is not an Internet Standards Track specification; it is 3943 published for the historical record. 3944 </t> 3945 </xsl:when> 3886 3946 <xsl:when test="/rfc/@category='historic'"> 3887 3947 <t> … … 3891 3951 </t> 3892 3952 </xsl:when> 3893 <xsl:when test="/rfc/@category=' info' or not(/rfc/@category)">3953 <xsl:when test="/rfc/@category='std' and $xml2rfc-ext-hab='yes'"> 3894 3954 <t> 3895 This memo provides information for the Internet community. 3896 It does not specify an Internet standard of any kind. 3897 Distribution of this memo is unlimited. 3955 This is an Internet Standards Track document. 3898 3956 </t> 3899 3957 </xsl:when> … … 3907 3965 </t> 3908 3966 </xsl:when> 3967 <xsl:when test="(/rfc/@category='info' or not(/rfc/@category)) and $xml2rfc-ext-hab='yes'"> 3968 <t> 3969 This document is not an Internet Standards Track specification; it is 3970 published for informational purposes. 3971 </t> 3972 </xsl:when> 3973 <xsl:when test="/rfc/@category='info' or not(/rfc/@category)"> 3974 <t> 3975 This memo provides information for the Internet community. 3976 It does not specify an Internet standard of any kind. 3977 Distribution of this memo is unlimited. 3978 </t> 3979 </xsl:when> 3909 3980 <xsl:otherwise> 3910 <t>UNSUPPORTED CATEGORY.</t> 3981 <t> 3982 UNSUPPORTED CATEGORY. 3983 </t> 3984 <xsl:call-template name="error"> 3985 <xsl:with-param name="msg" select="concat('Unsupported value for /rfc/@category: ', /rfc/@category)"/> 3986 <xsl:with-param name="inline" select="'no'"/> 3987 </xsl:call-template> 3911 3988 </xsl:otherwise> 3912 3989 </xsl:choose> 3990 3991 <!-- 2nd and 3rd paragraph --> 3992 <xsl:if test="$xml2rfc-ext-hab='yes'"> 3993 <t> 3994 <xsl:if test="/rfc/@category='exp'"> 3995 This document defines an Experimental Protocol for the Internet 3996 community. 3997 </xsl:if> 3998 <xsl:if test="/rfc/@category='historic'"> 3999 This document defines a Historic Document for the Internet community. 4000 </xsl:if> 4001 <xsl:choose> 4002 <xsl:when test="$submissionType='IETF'"> 4003 This document is a product of the Internet Engineering Task Force 4004 (IETF). 4005 <xsl:choose> 4006 <xsl:when test="$xml2rfc-ext-consensus='yes'"> 4007 It represents the consensus of the IETF community. It has 4008 received public review and has been approved for publication by 4009 the Internet Engineering Steering Group (IESG). 4010 </xsl:when> 4011 <xsl:otherwise> 4012 It has been approved for publication by the Internet Engineering 4013 Steering Group (IESG). 4014 </xsl:otherwise> 4015 </xsl:choose> 4016 </xsl:when> 4017 <xsl:when test="$submissionType='IAB'"> 4018 This document is a product of the Internet Architecture Board (IAB), 4019 and represents information that the IAB has deemed valuable to 4020 provide for permanent record. 4021 </xsl:when> 4022 <xsl:when test="$submissionType='IRTF'"> 4023 <xsl:variable name="wg"> 4024 <xsl:choose> 4025 <xsl:when test="/rfc/front/workgroup"> 4026 <xsl:value-of select="/rfc/front/workgroup"/> 4027 </xsl:when> 4028 <xsl:otherwise> 4029 WORKGROUP INFO MISSING 4030 <xsl:call-template name="error"> 4031 <xsl:with-param name="msg" select="concat('Missing value for /rfc/front/workgroup: ', /rfc/front/workgroup)"/> 4032 <xsl:with-param name="inline" select="'no'"/> 4033 </xsl:call-template> 4034 </xsl:otherwise> 4035 </xsl:choose> 4036 </xsl:variable> 4037 4038 This document is a product of the Internet Research Task Force (IRTF). 4039 The IRTF publishes the results of Internet-related research and 4040 development activities. These results might not be suitable for 4041 deployment. 4042 <xsl:choose> 4043 <xsl:when test="$xml2rfc-ext-consensus='yes'"> 4044 This RFC represents the consensus of the 4045 <xsl:value-of select="$wg"/> Research Group of the Internet 4046 Research Task Force (IRTF). 4047 </xsl:when> 4048 <xsl:otherwise> 4049 This RFC represents the individual opinion(s) of one or more 4050 members of the <xsl:value-of select="$wg"/> Research Group of the 4051 Internet Research Task Force (IRTF). 4052 </xsl:otherwise> 4053 </xsl:choose> 4054 </xsl:when> 4055 <xsl:when test="$submissionType='independent'"> 4056 This is a contribution to the RFC Series, independently of any other 4057 RFC stream. The RFC Editor has chosen to publish this document at 4058 its discretion and makes no statement about its value for 4059 implementation or deployment. 4060 </xsl:when> 4061 <xsl:otherwise> 4062 <!-- will contain error message already --> 4063 <xsl:value-of select="$submissionType"/> 4064 </xsl:otherwise> 4065 </xsl:choose> 4066 <xsl:choose> 4067 <xsl:when test="$submissionType='IETF'"> 4068 <xsl:choose> 4069 <xsl:when test="/rfc/@category='bcp'"> 4070 Further information on BCPs is available in Section 2 of RFC XXXX. 4071 </xsl:when> 4072 <xsl:when test="/rfc/@category='std'"> 4073 Further information on Internet Standards is available in Section 4074 2 of RFC XXXX. 4075 </xsl:when> 4076 <xsl:otherwise> 4077 Not all documents approved by the IESG are candidate for any 4078 level of Internet Standards; see Section 2 of RFC XXXX. 4079 </xsl:otherwise> 4080 </xsl:choose> 4081 </xsl:when> 4082 <xsl:otherwise> 4083 <xsl:variable name="approver"> 4084 <xsl:choose> 4085 <xsl:when test="/rfc/@submissionType='IAB'">IAB</xsl:when> 4086 <xsl:when test="/rfc/@submissionType='IRTF'">IRSG</xsl:when> 4087 <xsl:otherwise>RFC Editor</xsl:otherwise> 4088 </xsl:choose> 4089 </xsl:variable> 4090 4091 Documents approved for publication by the 4092 <xsl:value-of select="$approver"/> are not a candidate for any level 4093 of Internet Standard; see Section 2 of RFC XXXX. 4094 </xsl:otherwise> 4095 </xsl:choose> 4096 </t> 4097 <t> 4098 Information about the current status of this document, any errata, and 4099 how to provide feedback on it may be obtained at 4100 <eref target="http://www.rfc-editor.org/info/rfc{/rfc/@number}">http://www.rfc-editor.org/info/rfc<xsl:value-of select="/rfc/@number"/></eref>. 4101 </t> 4102 </xsl:if> 4103 3913 4104 </section> 3914 4105 … … 5649 5840 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 5650 5841 <!-- when RCS keyword substitution in place, add version info --> 5651 <xsl:if test="contains('$Revision: 1.4 78$',':')">5652 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.4 78$', 'Revision: '),'$','')),', ')"/>5842 <xsl:if test="contains('$Revision: 1.485 $',':')"> 5843 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.485 $', 'Revision: '),'$','')),', ')"/> 5653 5844 </xsl:if> 5654 <xsl:if test="contains('$Date: 2009-1 0-16 14:30:15$',':')">5655 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-1 0-16 14:30:15$', 'Date: '),'$','')),', ')"/>5845 <xsl:if test="contains('$Date: 2009-11-28 15:36:33 $',':')"> 5846 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-11-28 15:36:33 $', 'Date: '),'$','')),', ')"/> 5656 5847 </xsl:if> 5657 5848 <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))"/>
Note: See TracChangeset
for help on using the changeset viewer.