Ignore:
Timestamp:
Apr 5, 2012, 4:39:00 AM (8 years ago)
Author:
julian.reschke@…
Message:

bump up document dates, update to latest version of rfc2629.xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629.xslt

    r1552 r1652  
    760760    </xsl:when>
    761761    <xsl:when test="not(contains($content,'&#10;'))">
    762       <xsl:if test="string-length($content) > 69 + $indent">
     762      <xsl:if test="string-length($content) > 69 + number($indent)">
    763763        <xsl:call-template name="warning">
    764764          <xsl:with-param name="msg">artwork line too long: '<xsl:value-of select="$content"/>' (<xsl:value-of select="string-length($content)"/> characters)</xsl:with-param>
     
    29472947  <xsl:param name="in-prose"/>
    29482948  <xsl:choose>
    2949     <xsl:when test="$xml2rfc-ext-pub-day >= 1">
     2949    <xsl:when test="number($xml2rfc-ext-pub-day) >= 1">
    29502950      <xsl:if test="$in-prose">
    29512951        <xsl:text>on </xsl:text>
     
    40254025  <!-- generate navigation links to index subsections -->
    40264026  <p class="noprint">
    4027     <xsl:variable name="irefs" select="//iref[generate-id(.) = generate-id(key('index-first-letter',translate(substring(@item,1,1),$lcase,$ucase)))]"/>
    4028     <xsl:variable name="xrefs" select="//reference[not(starts-with(@anchor,'deleted-'))][generate-id(.) = generate-id(key('index-first-letter',translate(substring(@anchor,1,1),$lcase,$ucase)))]"/>
     4027    <xsl:variable name="irefs" select="//iref[generate-id(.) = generate-id(key('index-first-letter',translate(substring(@item,1,1),$lcase,$ucase))[1])]"/>
     4028    <xsl:variable name="xrefs" select="//reference[not(starts-with(@anchor,'deleted-'))][generate-id(.) = generate-id(key('index-first-letter',translate(substring(@anchor,1,1),$lcase,$ucase))[1])]"/>
    40294029 
    40304030    <xsl:for-each select="$irefs | $xrefs">
     
    40544054  <div class="print2col">
    40554055  <ul class="ind">
    4056     <xsl:variable name="irefs2" select="//iref[generate-id(.) = generate-id(key('index-first-letter',translate(substring(@item,1,1),$lcase,$ucase)))]"/>
    4057     <xsl:variable name="xrefs2" select="//reference[not(starts-with(@anchor,'deleted-'))][generate-id(.) = generate-id(key('index-first-letter',translate(substring(@anchor,1,1),$lcase,$ucase)))]"/>
     4056    <xsl:variable name="irefs2" select="//iref[generate-id(.) = generate-id(key('index-first-letter',translate(substring(@item,1,1),$lcase,$ucase))[1])]"/>
     4057    <xsl:variable name="xrefs2" select="//reference[not(starts-with(@anchor,'deleted-'))][generate-id(.) = generate-id(key('index-first-letter',translate(substring(@anchor,1,1),$lcase,$ucase))[1])]"/>
    40584058 
    40594059    <xsl:for-each select="$irefs2 | $xrefs2">
     
    41054105                              <xsl:sort select="substring-before(concat(@x:sec,'.'),'.')" data-type="number"/>
    41064106                              <xsl:sort select="substring(@x:sec,2+string-length(substring-before(@x:sec,'.')))" data-type="number"/>
    4107                               <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-sec',concat(@target,'..',@x:sec)))">
     4107                              <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-sec',concat(@target,'..',@x:sec))[1])">
    41084108                                <li>
    41094109                                  <em>
     
    41354135                              <xsl:for-each select="$rs3">
    41364136                                <xsl:sort select="count($doc//*[@anchor and following::*/@anchor=substring-after(current()/@x:rel,'#')])" order="ascending" data-type="number"/>
    4137                                 <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-anchor',concat(@target,'..',@x:rel)))">
     4137                                <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-anchor',concat(@target,'..',@x:rel))[1])">
    41384138                                  <li>
    41394139                                    <em>
     
    41684168                  <xsl:otherwise>
    41694169                    <!-- regular iref -->
    4170                     <xsl:if test="generate-id(.) = generate-id(key('index-item',concat(@item,@anchor)))">
     4170                    <xsl:if test="generate-id(.) = generate-id(key('index-item',concat(@item,@anchor))[1])">
    41714171                      <xsl:variable name="item" select="@item"/>
    41724172                      <xsl:variable name="in-artwork" select="key('index-item',$item)[@primary='true' and ancestor::artwork]"/>
     
    51775177      </xsl:call-template>
    51785178    </xsl:when>
    5179     <xsl:when test="number($name)=$name">
     5179    <xsl:when test="string(number($name))=$name">
    51805180      <a href="{concat($rfcUrlPrefix,$name,$rfcUrlPostfix)}"><xsl:value-of select="$name"/></a>
    51815181      <xsl:call-template name="check-front-matter-ref">
     
    65336533    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    65346534    <!-- when RCS keyword substitution in place, add version info -->
    6535     <xsl:if test="contains('$Revision: 1.570 $',':')">
    6536       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.570 $', 'Revision: '),'$','')),', ')" />
     6535    <xsl:if test="contains('$Revision: 1.572 $',':')">
     6536      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.572 $', 'Revision: '),'$','')),', ')" />
    65376537    </xsl:if>
    6538     <xsl:if test="contains('$Date: 2012-02-13 19:17:35 $',':')">
    6539       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2012-02-13 19:17:35 $', 'Date: '),'$','')),', ')" />
     6538    <xsl:if test="contains('$Date: 2012-03-19 14:26:22 $',':')">
     6539      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2012-03-19 14:26:22 $', 'Date: '),'$','')),', ')" />
    65406540    </xsl:if>
    65416541    <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.