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

    r1552 r1652  
    628628    </xsl:when>
    629629    <xsl:when test="not(contains($content,'&#xA;'))">
    630       <xsl:if test="string-length($content) &gt; 69 + $indent">
     630      <xsl:if test="string-length($content) &gt; 69 + number($indent)">
    631631        <xsl:call-template name="warning">
    632632          <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>
     
    28152815  <xsl:param name="in-prose"/>
    28162816  <xsl:choose>
    2817     <xsl:when test="$xml2rfc-ext-pub-day &gt;= 1">
     2817    <xsl:when test="number($xml2rfc-ext-pub-day) &gt;= 1">
    28182818      <xsl:if test="$in-prose">
    28192819        <xsl:text>on </xsl:text>
     
    38933893  <!-- generate navigation links to index subsections -->
    38943894  <p xmlns="http://www.w3.org/1999/xhtml" class="noprint">
    3895     <xsl:variable name="irefs" select="//iref[generate-id(.) = generate-id(key('index-first-letter',translate(substring(@item,1,1),$lcase,$ucase)))]"/>
    3896     <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)))]"/>
     3895    <xsl:variable name="irefs" select="//iref[generate-id(.) = generate-id(key('index-first-letter',translate(substring(@item,1,1),$lcase,$ucase))[1])]"/>
     3896    <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])]"/>
    38973897 
    38983898    <xsl:for-each select="$irefs | $xrefs">
     
    39223922  <div xmlns="http://www.w3.org/1999/xhtml" class="print2col">
    39233923  <ul class="ind">
    3924     <xsl:variable name="irefs2" select="//iref[generate-id(.) = generate-id(key('index-first-letter',translate(substring(@item,1,1),$lcase,$ucase)))]"/>
    3925     <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)))]"/>
     3924    <xsl:variable name="irefs2" select="//iref[generate-id(.) = generate-id(key('index-first-letter',translate(substring(@item,1,1),$lcase,$ucase))[1])]"/>
     3925    <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])]"/>
    39263926 
    39273927    <xsl:for-each select="$irefs2 | $xrefs2">
     
    39733973                              <xsl:sort select="substring-before(concat(@x:sec,'.'),'.')" data-type="number"/>
    39743974                              <xsl:sort select="substring(@x:sec,2+string-length(substring-before(@x:sec,'.')))" data-type="number"/>
    3975                               <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-sec',concat(@target,'..',@x:sec)))">
     3975                              <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-sec',concat(@target,'..',@x:sec))[1])">
    39763976                                <li>
    39773977                                  <em>
     
    40034003                              <xsl:for-each select="$rs3">
    40044004                                <xsl:sort select="count($doc//*[@anchor and following::*/@anchor=substring-after(current()/@x:rel,'#')])" order="ascending" data-type="number"/>
    4005                                 <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-anchor',concat(@target,'..',@x:rel)))">
     4005                                <xsl:if test="generate-id(.) = generate-id(key('index-xref-by-anchor',concat(@target,'..',@x:rel))[1])">
    40064006                                  <li>
    40074007                                    <em>
     
    40364036                  <xsl:otherwise>
    40374037                    <!-- regular iref -->
    4038                     <xsl:if test="generate-id(.) = generate-id(key('index-item',concat(@item,@anchor)))">
     4038                    <xsl:if test="generate-id(.) = generate-id(key('index-item',concat(@item,@anchor))[1])">
    40394039                      <xsl:variable name="item" select="@item"/>
    40404040                      <xsl:variable name="in-artwork" select="key('index-item',$item)[@primary='true' and ancestor::artwork]"/>
     
    50335033      </xsl:call-template>
    50345034    </xsl:when>
    5035     <xsl:when test="number($name)=$name">
     5035    <xsl:when test="string(number($name))=$name">
    50365036      <a xmlns="http://www.w3.org/1999/xhtml" href="{concat($rfcUrlPrefix,$name,$rfcUrlPostfix)}"><xsl:value-of select="$name"/></a>
    50375037      <xsl:call-template name="check-front-matter-ref">
     
    63886388    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    63896389    <!-- when RCS keyword substitution in place, add version info -->
    6390     <xsl:if test="contains('$Revision: 1.570 $',':')">
    6391       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.570 $', 'Revision: '),'$','')),', ')"/>
     6390    <xsl:if test="contains('$Revision: 1.572 $',':')">
     6391      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.572 $', 'Revision: '),'$','')),', ')"/>
    63926392    </xsl:if>
    6393     <xsl:if test="contains('$Date: 2012-02-13 19:17:35 $',':')">
    6394       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2012-02-13 19:17:35 $', 'Date: '),'$','')),', ')"/>
     6393    <xsl:if test="contains('$Date: 2012-03-19 14:26:22 $',':')">
     6394      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2012-03-19 14:26:22 $', 'Date: '),'$','')),', ')"/>
    63956395    </xsl:if>
    63966396    <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.