Changeset 729 for rfc2629xslt/rfc2629.xslt
- Timestamp:
- 01/12/09 08:11:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rfc2629xslt/rfc2629.xslt
r723 r729 290 290 </xsl:param> 291 291 292 <!-- experimental support for http://tools.ietf.org/html/draft-iab-streams-headers-boilerplates-08, work in progress --> 293 294 <xsl:param name="xml2rfc-ext-hab"> 295 <xsl:call-template name="parse-pis"> 296 <xsl:with-param name="nodes" select="/processing-instruction('rfc-ext')"/> 297 <xsl:with-param name="attr" select="'h-a-b'"/> 298 <xsl:with-param name="default" select="'no'"/> 299 </xsl:call-template> 300 </xsl:param> 301 <xsl:param name="xml2rfc-ext-consensus"> 302 <xsl:call-template name="parse-pis"> 303 <xsl:with-param name="nodes" select="/processing-instruction('rfc-ext')"/> 304 <xsl:with-param name="attr" select="'consensus'"/> 305 <xsl:with-param name="default" select="'yes'"/> 306 </xsl:call-template> 307 </xsl:param> 308 292 309 <!-- trailing dots in section numbers --> 293 310 … … 394 411 395 412 <xsl:variable name="rfcno" select="/rfc/@number"/> 396 413 414 <xsl:variable name="submissionType"> 415 <xsl:choose> 416 <xsl:when test="/rfc/@submissionType='IETF' or not(/rfc/@submissionType) or /rfc/submissionType=''">IETF</xsl:when> 417 <xsl:when test="/rfc/@submissionType='IAB' or /rfc/@submissionType='IRTF' or /rfc/@submissionType='independent'"> 418 <xsl:value-of select="/rfc/@submissionType"/> 419 </xsl:when> 420 <xsl:otherwise> 421 <xsl:value-of select="concat('(UNSUPPORTED SUBMISSION TYPE: ',/rfc/@submissionType,')')"/> 422 <xsl:call-template name="error"> 423 <xsl:with-param name="msg" select="concat('Unsupported value for /rfc/@submissionType: ', /rfc/@submissionType)"/> 424 <xsl:with-param name="inline" select="'no'"/> 425 </xsl:call-template> 426 </xsl:otherwise> 427 </xsl:choose> 428 </xsl:variable> 429 397 430 <xsl:variable name="ipr-rfc4748" select="( 398 431 $ipr-rfc3667 and … … 927 960 928 961 <!-- insert the collected information --> 929 <table class="header" border="0" cellpadding="1" cellspacing="1">962 <table class="header"> 930 963 <xsl:choose> 931 964 <xsl:when test="function-available('exslt:node-set')"> … … 1079 1112 1080 1113 <xsl:template match="list[@style='empty' or not(@style)]"> 1081 < dl class="empty">1114 <ul class="empty"> 1082 1115 <xsl:call-template name="insertInsDelClass"/> 1083 1116 <xsl:apply-templates /> 1084 </ dl>1117 </ul> 1085 1118 </xsl:template> 1086 1119 … … 1141 1174 <xsl:template match="list[@style='empty' or not(@style)]/t | list[@style='empty' or not(@style)]/ed:replace/ed:*/t"> 1142 1175 <!-- Inherited through CSS now <dd style="margin-top: .5em">--> 1143 < dd>1176 <li> 1144 1177 <xsl:call-template name="copy-anchor"/> 1145 1178 <xsl:call-template name="insertInsDelClass"/> 1146 1179 <xsl:apply-templates /> 1147 </ dd>1180 </li> 1148 1181 </xsl:template> 1149 1182 … … 1615 1648 <xsl:template match="rfc"> 1616 1649 1617 <!-- conformance checks -->1618 <xsl:if test="$xml2rfc-symrefs!='no' and $xml2rfc-symrefs!='yes' and //reference">1619 <xsl:call-template name="warning">1620 <xsl:with-param name="inline" select="'no'"/>1621 <xsl:with-param name="msg">symrefs PI not specified; default has changed from 'no' to 'yes'.</xsl:with-param>1622 </xsl:call-template>1623 </xsl:if>1624 1625 1650 <xsl:variable name="ignored"> 1626 1651 <xsl:call-template name="parse-pis"> … … 2453 2478 <xsl:if test="$xml2rfc-private=''"> 2454 2479 <xsl:choose> 2455 <xsl:when test="/rfc/front/workgroup"> 2480 <xsl:when test="$xml2rfc-ext-hab='yes' and $submissionType='independent'"> 2481 <myns:item>Independent<!-- Stream--></myns:item> 2482 </xsl:when> 2483 <xsl:when test="$xml2rfc-ext-hab='yes' and $submissionType='IETF'"> 2484 <myns:item>Internet Engineering Task Force</myns:item> 2485 </xsl:when> 2486 <xsl:when test="$xml2rfc-ext-hab='yes' and $submissionType='IRTF'"> 2487 <myns:item>Internet Research Task Force</myns:item> 2488 </xsl:when> 2489 <xsl:when test="$xml2rfc-ext-hab='yes' and $submissionType='IAB'"> 2490 <myns:item>Internet Architecture Board</myns:item> 2491 </xsl:when> 2492 <xsl:when test="/rfc/front/workgroup and (not(/rfc/@number) or /rfc/@number='')"> 2456 2493 <xsl:for-each select="/rfc/front/workgroup"> 2457 2494 <myns:item><xsl:value-of select="."/></myns:item> … … 2579 2616 <xsl:param name="rc" /> 2580 2617 2581 <xsl:for-each select="$lc/myns:item | $rc/myns:item"> 2582 <xsl:variable name="pos" select="position()" /> 2583 <xsl:if test="$pos < count($lc/myns:item) + 1 or $pos < count($rc/myns:item) + 1"> 2584 <tr> 2585 <td class="header left"><xsl:call-template name="copynodes"><xsl:with-param name="nodes" select="$lc/myns:item[$pos]/node()" /></xsl:call-template></td> 2586 <td class="header right"><xsl:call-template name="copynodes"><xsl:with-param name="nodes" select="$rc/myns:item[$pos]/node()" /></xsl:call-template></td> 2587 </tr> 2588 </xsl:if> 2589 </xsl:for-each> 2618 <tbody> 2619 <xsl:for-each select="$lc/myns:item | $rc/myns:item"> 2620 <xsl:variable name="pos" select="position()" /> 2621 <xsl:if test="$pos < count($lc/myns:item) + 1 or $pos < count($rc/myns:item) + 1"> 2622 <tr> 2623 <td class="left"><xsl:call-template name="copynodes"><xsl:with-param name="nodes" select="$lc/myns:item[$pos]/node()" /></xsl:call-template></td> 2624 <td class="right"><xsl:call-template name="copynodes"><xsl:with-param name="nodes" select="$rc/myns:item[$pos]/node()" /></xsl:call-template></td> 2625 </tr> 2626 </xsl:if> 2627 </xsl:for-each> 2628 </tbody> 2590 2629 </xsl:template> 2591 2630 … … 2785 2824 <t> 2786 2825 This document is subject to the rights, licenses and restrictions 2787 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 authors2826 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 2788 2827 retain all their rights. 2789 2828 </t> … … 2989 3028 } 2990 3029 <!-- spacing between two entries in definition lists --> 2991 dl.empty dd { 3030 ul.empty { 3031 list-style-type: none; 3032 } 3033 ul.empty li { 2992 3034 margin-top: .5em; 2993 3035 } … … 3141 3183 </xsl:if> 3142 3184 table.header { 3185 border-spacing: 1px; 3143 3186 width: 95%; 3144 3187 font-size: 10pt; … … 3152 3195 white-space: nowrap; 3153 3196 } 3154 t d.header{3197 table.header td { 3155 3198 background-color: gray; 3156 3199 width: 50%; 3157 3200 }<xsl:if test="/rfc/@obsoletes | /rfc/@updates"> 3158 t d.header a {3201 table.header a { 3159 3202 color: white; 3160 3203 }</xsl:if> … … 3995 4038 </xsl:when> 3996 4039 4040 <xsl:when test="/rfc/@category='bcp' and $xml2rfc-ext-hab='yes'"> 4041 <t> 4042 This memo documents an Internet Best Current Practice. 4043 </t> 4044 </xsl:when> 3997 4045 <xsl:when test="/rfc/@category='bcp'"> 3998 4046 <t> … … 4000 4048 Community, and requests discussion and suggestions for improvements. 4001 4049 Distribution of this memo is unlimited. 4050 </t> 4051 </xsl:when> 4052 <xsl:when test="/rfc/@category='exp' and $xml2rfc-ext-hab='yes'"> 4053 <t> 4054 This document is not an Internet Standards Track specification; it is 4055 published for examination, experimental implementation, and evaluation. 4002 4056 </t> 4003 4057 </xsl:when> … … 4010 4064 </t> 4011 4065 </xsl:when> 4066 <xsl:when test="/rfc/@category='historic' and $xml2rfc-ext-hab='yes'"> 4067 <t> 4068 This document is not an Internet Standards Track specification; it is 4069 published for the historical record. 4070 </t> 4071 </xsl:when> 4012 4072 <xsl:when test="/rfc/@category='historic'"> 4013 4073 <t> … … 4017 4077 </t> 4018 4078 </xsl:when> 4019 <xsl:when test="/rfc/@category=' info' or not(/rfc/@category)">4079 <xsl:when test="/rfc/@category='std' and $xml2rfc-ext-hab='yes'"> 4020 4080 <t> 4021 This memo provides information for the Internet community. 4022 It does not specify an Internet standard of any kind. 4023 Distribution of this memo is unlimited. 4081 This is an Internet Standards Track document. 4024 4082 </t> 4025 4083 </xsl:when> … … 4033 4091 </t> 4034 4092 </xsl:when> 4093 <xsl:when test="(/rfc/@category='info' or not(/rfc/@category)) and $xml2rfc-ext-hab='yes'"> 4094 <t> 4095 This document is not an Internet Standards Track specification; it is 4096 published for informational purposes. 4097 </t> 4098 </xsl:when> 4099 <xsl:when test="/rfc/@category='info' or not(/rfc/@category)"> 4100 <t> 4101 This memo provides information for the Internet community. 4102 It does not specify an Internet standard of any kind. 4103 Distribution of this memo is unlimited. 4104 </t> 4105 </xsl:when> 4035 4106 <xsl:otherwise> 4036 <t>UNSUPPORTED CATEGORY.</t> 4107 <t> 4108 UNSUPPORTED CATEGORY. 4109 </t> 4110 <xsl:call-template name="error"> 4111 <xsl:with-param name="msg" select="concat('Unsupported value for /rfc/@category: ', /rfc/@category)"/> 4112 <xsl:with-param name="inline" select="'no'"/> 4113 </xsl:call-template> 4037 4114 </xsl:otherwise> 4038 4115 </xsl:choose> 4116 4117 <!-- 2nd and 3rd paragraph --> 4118 <xsl:if test="$xml2rfc-ext-hab='yes'"> 4119 <t> 4120 <xsl:if test="/rfc/@category='exp'"> 4121 This document defines an Experimental Protocol for the Internet 4122 community. 4123 </xsl:if> 4124 <xsl:if test="/rfc/@category='historic'"> 4125 This document defines a Historic Document for the Internet community. 4126 </xsl:if> 4127 <xsl:choose> 4128 <xsl:when test="$submissionType='IETF'"> 4129 This document is a product of the Internet Engineering Task Force 4130 (IETF). 4131 <xsl:choose> 4132 <xsl:when test="$xml2rfc-ext-consensus='yes'"> 4133 It represents the consensus of the IETF community. It has 4134 received public review and has been approved for publication by 4135 the Internet Engineering Steering Group (IESG). 4136 </xsl:when> 4137 <xsl:otherwise> 4138 It has been approved for publication by the Internet Engineering 4139 Steering Group (IESG). 4140 </xsl:otherwise> 4141 </xsl:choose> 4142 </xsl:when> 4143 <xsl:when test="$submissionType='IAB'"> 4144 This document is a product of the Internet Architecture Board (IAB), 4145 and represents information that the IAB has deemed valuable to 4146 provide for permanent record. 4147 </xsl:when> 4148 <xsl:when test="$submissionType='IRTF'"> 4149 <xsl:variable name="wg"> 4150 <xsl:choose> 4151 <xsl:when test="/rfc/front/workgroup"> 4152 <xsl:value-of select="/rfc/front/workgroup"/> 4153 </xsl:when> 4154 <xsl:otherwise> 4155 WORKGROUP INFO MISSING 4156 <xsl:call-template name="error"> 4157 <xsl:with-param name="msg" select="concat('Missing value for /rfc/front/workgroup: ', /rfc/front/workgroup)"/> 4158 <xsl:with-param name="inline" select="'no'"/> 4159 </xsl:call-template> 4160 </xsl:otherwise> 4161 </xsl:choose> 4162 </xsl:variable> 4163 4164 This document is a product of the Internet Research Task Force (IRTF). 4165 The IRTF publishes the results of Internet-related research and 4166 development activities. These results might not be suitable for 4167 deployment. 4168 <xsl:choose> 4169 <xsl:when test="$xml2rfc-ext-consensus='yes'"> 4170 This RFC represents the consensus of the 4171 <xsl:value-of select="$wg"/> Research Group of the Internet 4172 Research Task Force (IRTF). 4173 </xsl:when> 4174 <xsl:otherwise> 4175 This RFC represents the individual opinion(s) of one or more 4176 members of the <xsl:value-of select="$wg"/> Research Group of the 4177 Internet Research Task Force (IRTF). 4178 </xsl:otherwise> 4179 </xsl:choose> 4180 </xsl:when> 4181 <xsl:when test="$submissionType='independent'"> 4182 This is a contribution to the RFC Series, independently of any other 4183 RFC stream. The RFC Editor has chosen to publish this document at 4184 its discretion and makes no statement about its value for 4185 implementation or deployment. 4186 </xsl:when> 4187 <xsl:otherwise> 4188 <!-- will contain error message already --> 4189 <xsl:value-of select="$submissionType"/> 4190 </xsl:otherwise> 4191 </xsl:choose> 4192 <xsl:choose> 4193 <xsl:when test="$submissionType='IETF'"> 4194 <xsl:choose> 4195 <xsl:when test="/rfc/@category='bcp'"> 4196 Further information on BCPs is available in Section 2 of RFC XXXX. 4197 </xsl:when> 4198 <xsl:when test="/rfc/@category='std'"> 4199 Further information on Internet Standards is available in Section 4200 2 of RFC XXXX. 4201 </xsl:when> 4202 <xsl:otherwise> 4203 Not all documents approved by the IESG are candidate for any 4204 level of Internet Standards; see Section 2 of RFC XXXX. 4205 </xsl:otherwise> 4206 </xsl:choose> 4207 </xsl:when> 4208 <xsl:otherwise> 4209 <xsl:variable name="approver"> 4210 <xsl:choose> 4211 <xsl:when test="/rfc/@submissionType='IAB'">IAB</xsl:when> 4212 <xsl:when test="/rfc/@submissionType='IRTF'">IRSG</xsl:when> 4213 <xsl:otherwise>RFC Editor</xsl:otherwise> 4214 </xsl:choose> 4215 </xsl:variable> 4216 4217 Documents approved for publication by the 4218 <xsl:value-of select="$approver"/> are not a candidate for any level 4219 of Internet Standard; see Section 2 of RFC XXXX. 4220 </xsl:otherwise> 4221 </xsl:choose> 4222 </t> 4223 <t> 4224 Information about the current status of this document, any errata, and 4225 how to provide feedback on it may be obtained at 4226 <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>. 4227 </t> 4228 </xsl:if> 4229 4039 4230 </section> 4040 4231 … … 5776 5967 <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text> 5777 5968 <!-- when RCS keyword substitution in place, add version info --> 5778 <xsl:if test="contains('$Revision: 1.4 78$',':')">5779 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.4 78$', 'Revision: '),'$','')),', ')" />5969 <xsl:if test="contains('$Revision: 1.485 $',':')"> 5970 <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.485 $', 'Revision: '),'$','')),', ')" /> 5780 5971 </xsl:if> 5781 <xsl:if test="contains('$Date: 2009-1 0-16 14:30:15$',':')">5782 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-1 0-16 14:30:15$', 'Date: '),'$','')),', ')" />5972 <xsl:if test="contains('$Date: 2009-11-28 15:36:33 $',':')"> 5973 <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-11-28 15:36:33 $', 'Date: '),'$','')),', ')" /> 5783 5974 </xsl:if> 5784 5975 <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.