Ignore:
Timestamp:
01/08/10 10:48:12 (10 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/samples/rfc2629.xslt

    r832 r971  
    28182818
    28192819<xsl:template name="expirydate">
     2820  <xsl:param name="in-prose"/>
    28202821  <xsl:choose>
    28212822    <xsl:when test="$xml2rfc-ext-pub-day >= 1">
     2823      <xsl:if test="$in-prose">
     2824        <xsl:text>on </xsl:text>
     2825      </xsl:if>
    28222826      <xsl:call-template name="normalize-date">
    28232827        <xsl:with-param name="year" select="$xml2rfc-ext-pub-year"/>
     
    28262830      </xsl:call-template>
    28272831    </xsl:when>
    2828     <xsl:when test="$xml2rfc-ext-pub-month='January'">July <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
    2829     <xsl:when test="$xml2rfc-ext-pub-month='February'">August <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
    2830     <xsl:when test="$xml2rfc-ext-pub-month='March'">September <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
    2831     <xsl:when test="$xml2rfc-ext-pub-month='April'">October <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
    2832     <xsl:when test="$xml2rfc-ext-pub-month='May'">November <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
    2833     <xsl:when test="$xml2rfc-ext-pub-month='June'">December <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
    2834     <xsl:when test="$xml2rfc-ext-pub-month='July'">January <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
    2835     <xsl:when test="$xml2rfc-ext-pub-month='August'">February <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
    2836     <xsl:when test="$xml2rfc-ext-pub-month='September'">March <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
    2837     <xsl:when test="$xml2rfc-ext-pub-month='October'">April <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
    2838     <xsl:when test="$xml2rfc-ext-pub-month='November'">May <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
    2839     <xsl:when test="$xml2rfc-ext-pub-month='December'">June <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
    2840       <xsl:otherwise>WRONG SYNTAX FOR MONTH</xsl:otherwise>
    2841    </xsl:choose>
     2832    <xsl:otherwise>
     2833      <xsl:if test="$in-prose">
     2834        <xsl:text>in </xsl:text>
     2835      </xsl:if>
     2836      <xsl:choose>
     2837        <xsl:when test="$xml2rfc-ext-pub-month='January'">July <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
     2838        <xsl:when test="$xml2rfc-ext-pub-month='February'">August <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
     2839        <xsl:when test="$xml2rfc-ext-pub-month='March'">September <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
     2840        <xsl:when test="$xml2rfc-ext-pub-month='April'">October <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
     2841        <xsl:when test="$xml2rfc-ext-pub-month='May'">November <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
     2842        <xsl:when test="$xml2rfc-ext-pub-month='June'">December <xsl:value-of select="$xml2rfc-ext-pub-year" /></xsl:when>
     2843        <xsl:when test="$xml2rfc-ext-pub-month='July'">January <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
     2844        <xsl:when test="$xml2rfc-ext-pub-month='August'">February <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
     2845        <xsl:when test="$xml2rfc-ext-pub-month='September'">March <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
     2846        <xsl:when test="$xml2rfc-ext-pub-month='October'">April <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
     2847        <xsl:when test="$xml2rfc-ext-pub-month='November'">May <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
     2848        <xsl:when test="$xml2rfc-ext-pub-month='December'">June <xsl:value-of select="$xml2rfc-ext-pub-year + 1" /></xsl:when>
     2849        <xsl:otherwise>WRONG SYNTAX FOR MONTH</xsl:otherwise>
     2850      </xsl:choose>
     2851    </xsl:otherwise>
     2852  </xsl:choose>
    28422853</xsl:template>
    28432854
     
    42184229      </xsl:if>
    42194230      <t>
    4220         This Internet-Draft will expire in <xsl:call-template name="expirydate" />.
     4231        This Internet-Draft will expire <xsl:call-template name="expirydate"><xsl:with-param name="in-prose" select="true()"/></xsl:call-template>.
    42214232      </t>
    42224233    </xsl:when>
     
    61806191    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    61816192    <!-- when RCS keyword substitution in place, add version info -->
    6182     <xsl:if test="contains('$Revision: 1.518 $',':')">
    6183       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.518 $', 'Revision: '),'$','')),', ')" />
     6193    <xsl:if test="contains('$Revision: 1.520 $',':')">
     6194      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.520 $', 'Revision: '),'$','')),', ')" />
    61846195    </xsl:if>
    6185     <xsl:if test="contains('$Date: 2010-06-27 12:07:31 $',':')">
    6186       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-06-27 12:07:31 $', 'Date: '),'$','')),', ')" />
     6196    <xsl:if test="contains('$Date: 2010-07-14 12:36:35 $',':')">
     6197      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2010-07-14 12:36:35 $', 'Date: '),'$','')),', ')" />
    61876198    </xsl:if>
    61886199    <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.