Ignore:
Timestamp:
Dec 1, 2009, 12:11:18 AM (10 years ago)
Author:
julian.reschke@…
Message:

Bump up document dates, update to latest versions of rfc2629.xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629.xslt

    r723 r729  
    290290</xsl:param>
    291291
     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
    292309<!-- trailing dots in section numbers -->
    293310
     
    394411
    395412<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
    397430<xsl:variable name="ipr-rfc4748" select="(
    398431  $ipr-rfc3667 and
     
    927960     
    928961    <!-- insert the collected information -->
    929     <table class="header" border="0" cellpadding="1" cellspacing="1">
     962    <table class="header">
    930963      <xsl:choose>
    931964        <xsl:when test="function-available('exslt:node-set')">
     
    10791112
    10801113<xsl:template match="list[@style='empty' or not(@style)]">
    1081   <dl class="empty">
     1114  <ul class="empty">
    10821115    <xsl:call-template name="insertInsDelClass"/>
    10831116    <xsl:apply-templates />
    1084   </dl>
     1117  </ul>
    10851118</xsl:template>
    10861119
     
    11411174<xsl:template match="list[@style='empty' or not(@style)]/t | list[@style='empty' or not(@style)]/ed:replace/ed:*/t">
    11421175  <!-- Inherited through CSS now <dd style="margin-top: .5em">-->
    1143   <dd>
     1176  <li>
    11441177    <xsl:call-template name="copy-anchor"/>
    11451178    <xsl:call-template name="insertInsDelClass"/>
    11461179    <xsl:apply-templates />
    1147   </dd>
     1180  </li>
    11481181</xsl:template>
    11491182
     
    16151648<xsl:template match="rfc">
    16161649 
    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  
    16251650  <xsl:variable name="ignored">
    16261651    <xsl:call-template name="parse-pis">
     
    24532478  <xsl:if test="$xml2rfc-private=''">
    24542479    <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='')">
    24562493        <xsl:for-each select="/rfc/front/workgroup">
    24572494          <myns:item><xsl:value-of select="."/></myns:item>
     
    25792616  <xsl:param name="rc" />
    25802617
    2581   <xsl:for-each select="$lc/myns:item | $rc/myns:item">
    2582     <xsl:variable name="pos" select="position()" />
    2583     <xsl:if test="$pos &lt; count($lc/myns:item) + 1 or $pos &lt; 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 &lt; count($lc/myns:item) + 1 or $pos &lt; 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>
    25902629</xsl:template>
    25912630
     
    27852824          <t>
    27862825            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 authors
     2826            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
    27882827            retain all their rights.
    27892828          </t>
     
    29893028}
    29903029<!-- spacing between two entries in definition lists -->
    2991 dl.empty dd {
     3030ul.empty {
     3031  list-style-type: none;
     3032}
     3033ul.empty li {
    29923034  margin-top: .5em;
    29933035}
     
    31413183</xsl:if>
    31423184table.header {
     3185  border-spacing: 1px;
    31433186  width: 95%;
    31443187  font-size: 10pt;
     
    31523195  white-space: nowrap;
    31533196}
    3154 td.header {
     3197table.header td {
    31553198  background-color: gray;
    31563199  width: 50%;
    31573200}<xsl:if test="/rfc/@obsoletes | /rfc/@updates">
    3158 td.header a {
     3201table.header a {
    31593202  color: white;
    31603203}</xsl:if>
     
    39954038    </xsl:when>
    39964039
     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>
    39974045    <xsl:when test="/rfc/@category='bcp'">
    39984046      <t>
     
    40004048        Community, and requests discussion and suggestions for improvements.
    40014049        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.
    40024056      </t>
    40034057    </xsl:when>
     
    40104064      </t>
    40114065    </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>
    40124072    <xsl:when test="/rfc/@category='historic'">
    40134073      <t>
     
    40174077      </t>
    40184078    </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'">
    40204080      <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.
    40244082      </t>
    40254083    </xsl:when>
     
    40334091      </t>
    40344092    </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>
    40354106    <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>
    40374114    </xsl:otherwise>
    40384115  </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   
    40394230  </section>
    40404231 
     
    57765967    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    57775968    <!-- when RCS keyword substitution in place, add version info -->
    5778     <xsl:if test="contains('$Revision: 1.478 $',':')">
    5779       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.478 $', '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: '),'$','')),', ')" />
    57805971    </xsl:if>
    5781     <xsl:if test="contains('$Date: 2009-10-16 14:30:15 $',':')">
    5782       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-10-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: '),'$','')),', ')" />
    57835974    </xsl:if>
    57845975    <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.