Ignore:
Timestamp:
Oct 11, 2009, 9:49:29 AM (10 years ago)
Author:
julian.reschke@…
Message:

upgrade to latest version of rfc2629.xslt/xml2rfc.tcl; remove now superfluous empty <organization/> elements in references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toXHTML.xslt

    r704 r713  
    326326<xsl:variable name="ipr-2009-02" select="(     $ipr-2008-11 and $pub-yearmonth &gt;= 200902   )"/>
    327327
    328 <!-- this makes the Sep 2009 TLP text depend on the publication date to be >= 2009-12
     328<!-- this makes the Sep 2009 TLP text depend on the publication date to be >= 2009-11
    329329     for IDs, and around 2009-09 for RFCs-->
    330 <xsl:variable name="ipr-2009-09" select="(     ( not(/rfc/@number) and $pub-yearmonth &gt;= 200912 )     or     (       /rfc/@number and $pub-yearmonth &gt;= 200909 and       $rfcno!=5582 and $rfcno!=5621 and $rfcno!=5632 and $rfcno!=5645 and $rfcno!=5646 and $rfcno!=5681      )   )"/>
     330<xsl:variable name="ipr-2009-09" select="(     ( not(/rfc/@number) and $pub-yearmonth &gt;= 200911 )     or     (       /rfc/@number and $pub-yearmonth &gt;= 200909 and       $rfcno!=5582 and $rfcno!=5621 and $rfcno!=5632 and $rfcno!=5645 and $rfcno!=5646 and $rfcno!=5681      )   )"/>
    331331
    332332<!-- see http://mailman.rfc-editor.org/pipermail/rfc-interest/2009-June/001373.html -->
    333 <!-- for IDs, implement the change as 2009-12 -->
    334 <xsl:variable name="abstract-first" select="(     (/rfc/@number and $pub-yearmonth &gt;= 200907)     or     (not(/rfc/@number) and $pub-yearmonth &gt;= 200912)   )"/>
     333<!-- for IDs, implement the change as 2009-11 -->
     334<xsl:variable name="abstract-first" select="(     (/rfc/@number and $pub-yearmonth &gt;= 200907)     or     (not(/rfc/@number) and $pub-yearmonth &gt;= 200911)   )"/>
    335335
    336336<!-- funding switch --> 
     
    15001500      <xsl:with-param name="attr" select="'SANITYCHECK'"/>
    15011501    </xsl:call-template>
     1502    <xsl:call-template name="parse-pis">
     1503      <xsl:with-param name="nodes" select="//processing-instruction('rfc')"/>
     1504      <xsl:with-param name="attr" select="'SANITYCHECK'"/>
     1505    </xsl:call-template>
    15021506  </xsl:variable>
    15031507
     
    23012305
    23022306<xsl:template match="*">
    2303   <xsl:message>ERROR: no XSLT template for element: &lt;<xsl:value-of select="name()"/>&gt;</xsl:message>   
     2307  <xsl:call-template name="error">
     2308    <xsl:with-param name="inline" select="'no'"/>
     2309    <xsl:with-param name="msg">no XSLT template for element '<xsl:value-of select="name()"/>'</xsl:with-param>
     2310  </xsl:call-template>
    23042311  <tt xmlns="http://www.w3.org/1999/xhtml" class="error">&lt;<xsl:value-of select="name()"/>&gt;</tt>
    23052312  <xsl:copy><xsl:apply-templates select="node()|@*"/></xsl:copy>
     
    38213828            not be created, and it may not be published except as an Internet-Draft.
    38223829          </xsl:when>
    3823           <!-- escape clause moved to Copyright Notice as of 2009-12 -->
    3824           <xsl:when test="/rfc/@ipr = 'pre5378Trust200902' and $pub-yearmonth &lt; 200912">
     3830          <!-- escape clause moved to Copyright Notice as of 2009-11 -->
     3831          <xsl:when test="/rfc/@ipr = 'pre5378Trust200902' and $pub-yearmonth &lt; 200911">
    38253832            <xsl:value-of select="$escapeclause"/>
    38263833          </xsl:when>
     
    39413948       
    39423949        <!-- special case: RFC5378 escape applies to RFCs as well -->
    3943         <!-- for IDs historically in Status Of This Memo, over here starting 2009-12 -->
    3944         <xsl:if test="(/rfc/@number or $pub-yearmonth &gt;= 200912) and /rfc/@ipr = 'pre5378Trust200902'">
     3950        <!-- for IDs historically in Status Of This Memo, over here starting 2009-11 -->
     3951        <xsl:if test="(/rfc/@number or $pub-yearmonth &gt;= 200911) and /rfc/@ipr = 'pre5378Trust200902'">
    39453952          <t>
    39463953            <xsl:value-of select="$escapeclause"/>
     
    56175624    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    56185625    <!-- when RCS keyword substitution in place, add version info -->
    5619     <xsl:if test="contains('$Revision: 1.475 $',':')">
    5620       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.475 $', 'Revision: '),'$','')),', ')"/>
     5626    <xsl:if test="contains('$Revision: 1.477 $',':')">
     5627      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.477 $', 'Revision: '),'$','')),', ')"/>
    56215628    </xsl:if>
    5622     <xsl:if test="contains('$Date: 2009-10-02 10:40:00 $',':')">
    5623       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-10-02 10:40:00 $', 'Date: '),'$','')),', ')"/>
     5629    <xsl:if test="contains('$Date: 2009-10-09 21:33:42 $',':')">
     5630      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-10-09 21:33:42 $', 'Date: '),'$','')),', ')"/>
    56245631    </xsl:if>
    56255632    <xsl:value-of select="concat('XSLT vendor: ',system-property('xsl:vendor'),' ',system-property('xsl:vendor-url'))"/>
     
    59685975                  </xsl:if>
    59695976                 
     5977                  <xsl:if test="name()='rfc' and $attr='SANITYCHECK'">
     5978                    <xsl:choose>
     5979                      <xsl:when test="$attrname='include'">
     5980                        <xsl:call-template name="warning">
     5981                          <xsl:with-param name="msg">the rfc include pseudo-attribute is not supported by this processor, see http://greenbytes.de/tech/webdav/rfc2629xslt/rfc2629xslt.html#examples.internalsubset for help.</xsl:with-param>
     5982                          <xsl:with-param name="inline" select="'no'"/>
     5983                        </xsl:call-template>
     5984                      </xsl:when>
     5985                      <xsl:otherwise/>
     5986                    </xsl:choose>
     5987                  </xsl:if>
     5988
    59705989                  <xsl:choose>
    59715990                    <xsl:when test="$attrname != $attr">
Note: See TracChangeset for help on using the changeset viewer.