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/rfc2629toXHTML.xslt

    r723 r729  
    243243    <xsl:with-param name="attr" select="'duplex'"/>
    244244    <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'"/>
    245262  </xsl:call-template>
    246263</xsl:param>
     
    325342
    326343<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
    328361<xsl:variable name="ipr-rfc4748" select="(   $ipr-rfc3667 and     ( $rfcno &gt;= 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 &gt;= 200611)   )"/>
    329362
     
    807840     
    808841    <!-- 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">
    810843      <xsl:choose>
    811844        <xsl:when test="function-available('exslt:node-set')">
     
    959992
    960993<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">
    962995    <xsl:call-template name="insertInsDelClass"/>
    963996    <xsl:apply-templates/>
    964   </dl>
     997  </ul>
    965998</xsl:template>
    966999
     
    10211054<xsl:template match="list[@style='empty' or not(@style)]/t | list[@style='empty' or not(@style)]/ed:replace/ed:*/t">
    10221055  <!-- Inherited through CSS now <dd style="margin-top: .5em">-->
    1023   <dd xmlns="http://www.w3.org/1999/xhtml">
     1056  <li xmlns="http://www.w3.org/1999/xhtml">
    10241057    <xsl:call-template name="copy-anchor"/>
    10251058    <xsl:call-template name="insertInsDelClass"/>
    10261059    <xsl:apply-templates/>
    1027   </dd>
     1060  </li>
    10281061</xsl:template>
    10291062
     
    14951528<xsl:template match="rfc">
    14961529 
    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  
    15051530  <xsl:variable name="ignored">
    15061531    <xsl:call-template name="parse-pis">
     
    23332358  <xsl:if test="$xml2rfc-private=''">
    23342359    <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='')">
    23362373        <xsl:for-each select="/rfc/front/workgroup">
    23372374          <myns:item><xsl:value-of select="."/></myns:item>
     
    24592496  <xsl:param name="rc"/>
    24602497
    2461   <xsl:for-each select="$lc/myns:item | $rc/myns:item">
    2462     <xsl:variable name="pos" select="position()"/>
    2463     <xsl:if test="$pos &lt; count($lc/myns:item) + 1 or $pos &lt; 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 &lt; count($lc/myns:item) + 1 or $pos &lt; 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>
    24702509</xsl:template>
    24712510
     
    26652704          <t>
    26662705            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 authors
     2706            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
    26682707            retain all their rights.
    26692708          </t>
     
    28692908}
    28702909<!-- spacing between two entries in definition lists -->
    2871 dl.empty dd {
     2910ul.empty {
     2911  list-style-type: none;
     2912}
     2913ul.empty li {
    28722914  margin-top: .5em;
    28732915}
     
    30213063</xsl:if>
    30223064table.header {
     3065  border-spacing: 1px;
    30233066  width: 95%;
    30243067  font-size: 10pt;
     
    30323075  white-space: nowrap;
    30333076}
    3034 td.header {
     3077table.header td {
    30353078  background-color: gray;
    30363079  width: 50%;
    30373080}<xsl:if test="/rfc/@obsoletes | /rfc/@updates">
    3038 td.header a {
     3081table.header a {
    30393082  color: white;
    30403083}</xsl:if>
     
    38693912    </xsl:when>
    38703913
     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>
    38713919    <xsl:when test="/rfc/@category='bcp'">
    38723920      <t>
     
    38743922        Community, and requests discussion and suggestions for improvements.
    38753923        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.
    38763930      </t>
    38773931    </xsl:when>
     
    38843938      </t>
    38853939    </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>
    38863946    <xsl:when test="/rfc/@category='historic'">
    38873947      <t>
     
    38913951      </t>
    38923952    </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'">
    38943954      <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.
    38983956      </t>
    38993957    </xsl:when>
     
    39073965      </t>
    39083966    </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>
    39093980    <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>
    39113988    </xsl:otherwise>
    39123989  </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   
    39134104  </section>
    39144105 
     
    56495840    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    56505841    <!-- when RCS keyword substitution in place, add version info -->
    5651     <xsl:if test="contains('$Revision: 1.478 $',':')">
    5652       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.478 $', '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: '),'$','')),', ')"/>
    56535844    </xsl:if>
    5654     <xsl:if test="contains('$Date: 2009-10-16 14:30:15 $',':')">
    5655       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-10-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: '),'$','')),', ')"/>
    56565847    </xsl:if>
    56575848    <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.