Ignore:
Timestamp:
01/06/09 13:21:15 (11 years ago)
Author:
julian.reschke@…
Message:

Update to latest version of rfc2629.xslt and bump up document dates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629.xslt

    r573 r588  
    13621362      </xsl:for-each>
    13631363     
    1364       <xsl:if test="front/date/@year != '' and front/date/@year != '???'">
     1364      <xsl:if test="front/date/@year != ''">
     1365        <xsl:if test="string(number(front/date/@year)) = 'NaN'">
     1366          <xsl:call-template name="warning">
     1367            <xsl:with-param name="inline" select="'no'"/>
     1368            <xsl:with-param name="msg">date/@year should be a number: '<xsl:value-of select="front/date/@year"/>' in reference '<xsl:value-of select="@anchor"/>'</xsl:with-param>
     1369          </xsl:call-template>
     1370        </xsl:if>
    13651371        <xsl:text>, </xsl:text>
    13661372        <xsl:if test="front/date/@month!=''"><xsl:value-of select="front/date/@month" />&#0160;</xsl:if>
     
    15751581          <meta name="DC.Description.Abstract" content="{normalize-space(/rfc/front/abstract)}" />
    15761582        </xsl:if>     
     1583
     1584        <xsl:if test="/rfc/@number">
     1585          <meta name="DC.isPartOf" content="urn:ISSN:2070-1721" />
     1586        </xsl:if>     
     1587
    15771588      </xsl:if>     
    15781589    </head>
     
    19992010    </xsl:when>
    20002011   
     2012    <!-- Paragraph links -->
     2013    <xsl:when test="$node/self::t">
     2014      <a href="#{$target}">
     2015        <xsl:variable name="tcnt">
     2016          <xsl:for-each select="$node">
     2017            <xsl:call-template name="get-paragraph-number" />
     2018          </xsl:for-each>
     2019        </xsl:variable>
     2020        <xsl:choose>
     2021          <xsl:when test="@format='counter'">
     2022            <xsl:value-of select="$tcnt" />
     2023          </xsl:when>
     2024          <xsl:when test="@format='title'">
     2025            <xsl:value-of select="$node/@title" />
     2026          </xsl:when>
     2027          <xsl:otherwise>
     2028            <xsl:value-of select="normalize-space(concat('Paragraph&#160;',substring-after($tcnt,'p.')))"/>
     2029          </xsl:otherwise>
     2030        </xsl:choose>
     2031      </a>
     2032    </xsl:when>
     2033
     2034    <!-- Comment links -->
     2035    <xsl:when test="$node/self::cref">
     2036      <a href="#{$target}">
     2037        <xsl:variable name="name">
     2038          <xsl:for-each select="$node">
     2039            <xsl:call-template name="get-comment-name" />
     2040          </xsl:for-each>
     2041        </xsl:variable>
     2042        <xsl:choose>
     2043          <xsl:when test="@format='counter'">
     2044            <xsl:value-of select="$name" />
     2045          </xsl:when>
     2046          <xsl:when test="@format='title'">
     2047            <xsl:value-of select="$node/@title" />
     2048          </xsl:when>
     2049          <xsl:otherwise>
     2050            <xsl:value-of select="normalize-space(concat('Comment&#160;',$name))"/>
     2051          </xsl:otherwise>
     2052        </xsl:choose>
     2053      </a>
     2054    </xsl:when>
     2055
    20012056    <!-- Reference links -->
    20022057    <xsl:when test="$node/self::reference">
     
    33073362                            <xsl:for-each select="$rs2">
    33083363                              <xsl:sort select="substring-before(concat(@x:sec,'.'),'.')" data-type="number"/>
    3309                               <xsl:sort select="substring(@x:sec,1+string-length(substring-before(@x:sec,'.')))" data-type="number"/>
     3364                              <xsl:sort select="substring(@x:sec,2+string-length(substring-before(@x:sec,'.')))" data-type="number"/>
    33103365                              <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-sec',concat(@target,'..',@x:sec)))">
    33113366                                <li class="indline1">
     
    42324287    <xsl:when test="$target">
    42334288      <a href="#{$target/@anchor}" class="smpl">
     4289        <xsl:call-template name="copy-anchor"/>
    42344290        <!-- to be indexed? -->
    42354291        <xsl:if test="$irefs">
     
    43204376<xsl:template match="x:h">
    43214377  <b>
     4378    <xsl:call-template name="copy-anchor"/>
    43224379    <xsl:apply-templates/>
    43234380  </b>
     
    43344391<xsl:template match="x:highlight">
    43354392  <b>
     4393    <xsl:call-template name="copy-anchor"/>
    43364394    <xsl:apply-templates/>
    43374395  </b>
     
    43634421<!-- Nop -->
    43644422<xsl:template match="x:span">
    4365   <xsl:apply-templates/>
     4423  <span>
     4424    <xsl:call-template name="copy-anchor"/>
     4425    <xsl:apply-templates/>
     4426  </span>
    43664427</xsl:template>
    43674428
     
    50475108  <xsl:param name="msg2"/>
    50485109  <xsl:param name="inline"/>
    5049   <xsl:if test="$inline!='no'">
    5050     <div class="error">WARNING: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/></div>
    5051   </xsl:if>
    5052   <xsl:message>WARNING: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:message>
     5110  <xsl:call-template name="emit-message">
     5111    <xsl:with-param name="level">WARNING</xsl:with-param>
     5112    <xsl:with-param name="msg" select="$msg"/>
     5113    <xsl:with-param name="msg2" select="$msg2"/>
     5114    <xsl:with-param name="inline" select="$inline"/>
     5115  </xsl:call-template>
    50535116</xsl:template>
    50545117
     
    50575120  <xsl:param name="msg2"/>
    50585121  <xsl:param name="inline"/>
    5059   <xsl:if test="$inline!='no'">
    5060     <div class="error">ERROR: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/></div>
    5061   </xsl:if>
    5062   <xsl:message>ERROR: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:message>
     5122  <xsl:call-template name="emit-message">
     5123    <xsl:with-param name="level">ERROR</xsl:with-param>
     5124    <xsl:with-param name="msg" select="$msg"/>
     5125    <xsl:with-param name="msg2" select="$msg2"/>
     5126    <xsl:with-param name="inline" select="$inline"/>
     5127  </xsl:call-template>
     5128</xsl:template>
     5129
     5130<xsl:template name="emit-message">
     5131  <xsl:param name="level"/>
     5132  <xsl:param name="msg"/>
     5133  <xsl:param name="msg2"/>
     5134  <xsl:param name="inline"/>
     5135  <xsl:variable name="message"><xsl:value-of select="$level"/>: <xsl:value-of select="$msg"/><xsl:value-of select="$msg2"/><xsl:call-template name="lineno"/></xsl:variable>
     5136  <xsl:choose>
     5137    <xsl:when test="$inline!='no'">
     5138      <div class="error"><xsl:value-of select="$message"/></div>
     5139    </xsl:when>
     5140    <xsl:otherwise>
     5141      <xsl:comment><xsl:value-of select="$message"/></xsl:comment>
     5142    </xsl:otherwise>
     5143  </xsl:choose>
     5144  <xsl:message><xsl:value-of select="$message"/></xsl:message>
    50635145</xsl:template>
    50645146
     
    51595241<!-- cref support -->
    51605242
     5243<xsl:template name="get-comment-name">
     5244  <xsl:choose>
     5245    <xsl:when test="@anchor">
     5246      <xsl:value-of select="@anchor"/>
     5247    </xsl:when>
     5248    <xsl:otherwise>
     5249      <xsl:value-of select="$anchor-prefix"/>
     5250      <xsl:text>.comment.</xsl:text>
     5251      <xsl:number count="cref[not(@anchor)]" level="any"/>
     5252    </xsl:otherwise>
     5253  </xsl:choose>
     5254</xsl:template>
     5255
    51615256<xsl:template match="cref">
    51625257  <xsl:if test="$xml2rfc-comments!='no'">
    51635258    <xsl:variable name="cid">
    5164       <xsl:choose>
    5165         <xsl:when test="@anchor">
    5166           <xsl:value-of select="@anchor"/>
    5167         </xsl:when>
    5168         <xsl:otherwise>
    5169           <xsl:value-of select="$anchor-prefix"/>
    5170           <xsl:text>.comment.</xsl:text>
    5171           <xsl:number count="cref[not(@anchor)]" level="any"/>
    5172         </xsl:otherwise>
    5173       </xsl:choose>
     5259      <xsl:call-template name="get-comment-name"/>
    51745260    </xsl:variable>
    51755261   
     
    53315417    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    53325418    <!-- when RCS keyword substitution in place, add version info -->
    5333     <xsl:if test="contains('$Revision: 1.432 $',':')">
    5334       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.432 $', 'Revision: '),'$','')),', ')" />
     5419    <xsl:if test="contains('$Revision: 1.438 $',':')">
     5420      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.438 $', 'Revision: '),'$','')),', ')" />
    53355421    </xsl:if>
    5336     <xsl:if test="contains('$Date: 2009-04-09 13:16:17 $',':')">
    5337       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-04-09 13:16:17 $', 'Date: '),'$','')),', ')" />
     5422    <xsl:if test="contains('$Date: 2009-05-27 13:34:05 $',':')">
     5423      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2009-05-27 13:34:05 $', 'Date: '),'$','')),', ')" />
    53385424    </xsl:if>
    53395425    <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.