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

    r2628 r2707  
    376376<xsl:param name="rfcUrlPostfix" select="'.txt'" />
    377377-->
    378 <!-- Reference the marked up versions over on http://tools.ietf.org/html. -->
    379 <xsl:param name="rfcUrlPrefix" select="'http://tools.ietf.org/html/rfc'" />
     378<!-- Reference the marked up versions over on https://tools.ietf.org/html. -->
     379<xsl:param name="rfcUrlPrefix" select="'https://tools.ietf.org/html/rfc'" />
    380380<xsl:param name="rfcUrlPostfix" select="''" />
    381381<xsl:param name="rfcUrlFragSection" select="'section-'" />
    382382<xsl:param name="rfcUrlFragAppendix" select="'appendix-'" />
    383 <xsl:param name="internetDraftUrlPrefix" select="'http://tools.ietf.org/html/'" />
     383<xsl:param name="internetDraftUrlPrefix" select="'https://tools.ietf.org/html/'" />
    384384<xsl:param name="internetDraftUrlPostfix" select="''" />
    385385<xsl:param name="internetDraftUrlFrag" select="'section-'" />
     
    10811081    </xsl:if>
    10821082  </xsl:for-each>
     1083  <xsl:variable name="anch-container">
     1084    <xsl:choose>
     1085      <xsl:when test="ancestor::t">span</xsl:when>
     1086      <xsl:otherwise>div</xsl:otherwise>
     1087    </xsl:choose>
     1088  </xsl:variable>
    10831089  <xsl:if test="@anchor!=''">
    10841090    <xsl:call-template name="check-anchor"/>
    1085     <div id="{@anchor}"/>
     1091    <xsl:element name="{$anch-container}">
     1092    <xsl:attribute name="id"><xsl:value-of select="@anchor"/></xsl:attribute>
     1093    </xsl:element>
    10861094  </xsl:if>
    10871095  <xsl:variable name="anch">
    10881096    <xsl:call-template name="get-figure-anchor"/>
    10891097  </xsl:variable>
    1090   <div id="{$anch}" />
     1098  <xsl:element name="{$anch-container}">
     1099    <xsl:attribute name="id"><xsl:value-of select="$anch"/></xsl:attribute>
     1100  </xsl:element>
    10911101  <xsl:apply-templates />
    10921102  <xsl:if test="(@title!='') or (@anchor!='' and not(@suppress-title='true'))">
     
    11431153    <xsl:apply-templates select="title"/>
    11441154    <xsl:if test="/rfc/@docName">
     1155   
    11451156      <xsl:variable name="docname" select="/rfc/@docName"/>
    11461157
    1147       <br/>
    1148       <span class="filename"><xsl:value-of select="$docname"/></span>
    1149 
     1158      <xsl:choose>
     1159        <xsl:when test="$rfcno!=''">
     1160          <xsl:call-template name="warning">
     1161            <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>
     1162          </xsl:call-template>
     1163        </xsl:when>
     1164        <xsl:otherwise>
     1165          <br/>
     1166          <span class="filename"><xsl:value-of select="$docname"/></span>
     1167        </xsl:otherwise>
     1168      </xsl:choose>
     1169     
    11501170      <xsl:variable name="docname-noext">
    11511171        <xsl:choose>
     
    64016421  <!-- check ABNF syntax references -->
    64026422  <xsl:if test="//artwork[@type='abnf2616']">
    6403     <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-'))])">
     6423    <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-'))])">
     6424      <!-- check for draft-ietf-httpbis-p1-messaging- is for backwards compat -->
    64046425      <xsl:call-template name="warning">
    6405         <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>
     6426        <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>
    64066427      </xsl:call-template>
    64076428    </xsl:if>
     
    70507071    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    70517072    <!-- when RCS keyword substitution in place, add version info -->
    7052     <xsl:if test="contains('$Revision: 1.629 $',':')">
    7053       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.629 $', 'Revision: '),'$','')),', ')" />
     7073    <xsl:if test="contains('$Revision: 1.638 $',':')">
     7074      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.638 $', 'Revision: '),'$','')),', ')" />
    70547075    </xsl:if>
    7055     <xsl:if test="contains('$Date: 2014/04/17 09:22:01 $',':')">
    7056       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2014/04/17 09:22:01 $', 'Date: '),'$','')),', ')" />
     7076    <xsl:if test="contains('$Date: 2014/05/31 12:29:37 $',':')">
     7077      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2014/05/31 12:29:37 $', 'Date: '),'$','')),', ')" />
    70577078    </xsl:if>
    70587079    <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.