Ignore:
Timestamp:
01/06/14 08:29:57 (6 years ago)
Author:
julian.reschke@…
Message:

bump up document dates, update rfc2629.xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toXHTML.xslt

    r2628 r2707  
    332332<xsl:param name="rfcUrlPostfix" select="'.txt'" />
    333333-->
    334 <!-- Reference the marked up versions over on http://tools.ietf.org/html. -->
    335 <xsl:param name="rfcUrlPrefix" select="'http://tools.ietf.org/html/rfc'"/>
     334<!-- Reference the marked up versions over on https://tools.ietf.org/html. -->
     335<xsl:param name="rfcUrlPrefix" select="'https://tools.ietf.org/html/rfc'"/>
    336336<xsl:param name="rfcUrlPostfix" select="''"/>
    337337<xsl:param name="rfcUrlFragSection" select="'section-'"/>
    338338<xsl:param name="rfcUrlFragAppendix" select="'appendix-'"/>
    339 <xsl:param name="internetDraftUrlPrefix" select="'http://tools.ietf.org/html/'"/>
     339<xsl:param name="internetDraftUrlPrefix" select="'https://tools.ietf.org/html/'"/>
    340340<xsl:param name="internetDraftUrlPostfix" select="''"/>
    341341<xsl:param name="internetDraftUrlFrag" select="'section-'"/>
     
    949949    </xsl:if>
    950950  </xsl:for-each>
     951  <xsl:variable name="anch-container">
     952    <xsl:choose>
     953      <xsl:when test="ancestor::t">span</xsl:when>
     954      <xsl:otherwise>div</xsl:otherwise>
     955    </xsl:choose>
     956  </xsl:variable>
    951957  <xsl:if test="@anchor!=''">
    952958    <xsl:call-template name="check-anchor"/>
    953     <div xmlns="http://www.w3.org/1999/xhtml" id="{@anchor}"/>
     959    <xsl:element namespace="http://www.w3.org/1999/xhtml" name="{$anch-container}">
     960    <xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute>
     961    </xsl:element>
    954962  </xsl:if>
    955963  <xsl:variable name="anch">
    956964    <xsl:call-template name="get-figure-anchor"/>
    957965  </xsl:variable>
    958   <div xmlns="http://www.w3.org/1999/xhtml" id="{$anch}"/>
     966  <xsl:element namespace="http://www.w3.org/1999/xhtml" name="{$anch-container}">
     967    <xsl:attribute name="id"><xsl:value-of select="$anch"/></xsl:attribute>
     968  </xsl:element>
    959969  <xsl:apply-templates/>
    960970  <xsl:if test="(@title!='') or (@anchor!='' and not(@suppress-title='true'))">
     
    10111021    <xsl:apply-templates select="title"/>
    10121022    <xsl:if test="/rfc/@docName">
     1023   
    10131024      <xsl:variable name="docname" select="/rfc/@docName"/>
    10141025
    1015       <br/>
    1016       <span class="filename"><xsl:value-of select="$docname"/></span>
    1017 
     1026      <xsl:choose>
     1027        <xsl:when test="$rfcno!=''">
     1028          <xsl:call-template name="warning">
     1029            <xsl:with-param name="msg">The @docName attribute '<xsl:value-of select="$docname"/>' is ignored because an RFC number is specified as well.</xsl:with-param>
     1030          </xsl:call-template>
     1031        </xsl:when>
     1032        <xsl:otherwise>
     1033          <br/>
     1034          <span class="filename"><xsl:value-of select="$docname"/></span>
     1035        </xsl:otherwise>
     1036      </xsl:choose>
     1037     
    10181038      <xsl:variable name="docname-noext">
    10191039        <xsl:choose>
     
    62586278  <!-- check ABNF syntax references -->
    62596279  <xsl:if test="//artwork[@type='abnf2616']">
    6260     <xsl:if test="not(//reference/seriesInfo[@name='RFC' and (@value='2068' or @value='2616')]) and not(//reference/seriesInfo[@name='Internet-Draft' and (starts-with(@value, 'draft-ietf-httpbis-p1-messaging-'))])">
     6280    <xsl:if test="not(//reference/seriesInfo[@name='RFC' and (@value='2068' or @value='2616' or @value='7230')]) and not(//reference/seriesInfo[@name='Internet-Draft' and (starts-with(@value, 'draft-ietf-httpbis-p1-messaging-'))])">
     6281      <!-- check for draft-ietf-httpbis-p1-messaging- is for backwards compat -->
    62616282      <xsl:call-template name="warning">
    6262         <xsl:with-param name="msg">document uses HTTP-style ABNF syntax, but doesn't reference RFC 2068, RFC 2616, or draft-ietf-httpbis-p1-messaging.</xsl:with-param>
     6283        <xsl:with-param name="msg">document uses HTTP-style ABNF syntax, but doesn't reference RFC 2068, RFC 2616, or RFC 7230.</xsl:with-param>
    62636284      </xsl:call-template>
    62646285    </xsl:if>
     
    69076928    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    69086929    <!-- when RCS keyword substitution in place, add version info -->
    6909     <xsl:if test="contains('$Revision: 1.629 $',':')">
    6910       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.629 $', 'Revision: '),'$','')),', ')"/>
     6930    <xsl:if test="contains('$Revision: 1.638 $',':')">
     6931      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.638 $', 'Revision: '),'$','')),', ')"/>
    69116932    </xsl:if>
    6912     <xsl:if test="contains('$Date: 2014/04/17 09:22:01 $',':')">
    6913       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2014/04/17 09:22:01 $', 'Date: '),'$','')),', ')"/>
     6933    <xsl:if test="contains('$Date: 2014/05/31 12:29:37 $',':')">
     6934      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2014/05/31 12:29:37 $', 'Date: '),'$','')),', ')"/>
    69146935    </xsl:if>
    69156936    <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.