Ignore:
Timestamp:
05/11/11 17:01:22 (9 years ago)
Author:
julian.reschke@…
Message:

Update to latest version of rfc2629.xslt, add next/prev link relations (does not affect TXT version)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629.xslt

    r1426 r1472  
    353353<xsl:param name="internetDraftUrlPostfix" select="''" />
    354354<xsl:param name="internetDraftUrlFrag" select="'section-'" />
     355
     356<!-- the format we're producing -->
     357<xsl:param name="outputExtension" select="'html'"/>
    355358
    356359<!-- warning re: absent node-set ext. function -->
     
    14651468  <xsl:choose>
    14661469    <xsl:when test="$ref and $bib/x:source/@href and $bib/x:source/@basename and $ref/@x:rel">
    1467       <xsl:value-of select="concat($bib/x:source/@basename,'.html',$ref/@x:rel)" />
     1470      <xsl:value-of select="concat($bib/x:source/@basename,'.',$outputExtension,$ref/@x:rel)" />
    14681471    </xsl:when>
    14691472    <!-- tools.ietf.org won't have the "-latest" draft -->
    14701473    <xsl:when test="$bib/seriesInfo/@name='Internet-Draft' and $bib/x:source/@href and $bib/x:source/@basename and substring($bib/x:source/@basename, (string-length($bib/x:source/@basename) - string-length('-latest')) + 1)='-latest'">
    1471       <!-- TODO: should produce the right extension based on the format we're producing -->
    1472       <xsl:value-of select="concat($bib/x:source/@basename,'.html')" />
     1474      <xsl:value-of select="concat($bib/x:source/@basename,'.',$outputExtension)" />
    14731475    </xsl:when>
    14741476    <xsl:when test="$bib/seriesInfo/@name='RFC'">
     
    18651867      <xsl:apply-templates select="/" mode="links" />
    18661868      <xsl:for-each select="x:link">
    1867         <link><xsl:copy-of select="@*" /></link>
     1869        <link>
     1870          <xsl:choose>
     1871            <xsl:when test="@basename">
     1872              <xsl:attribute name="href">
     1873                <xsl:value-of select="concat(@basename,'.',$outputExtension)"/>
     1874              </xsl:attribute>
     1875              <xsl:copy-of select="@rel|@title" />
     1876            </xsl:when>
     1877            <xsl:otherwise>
     1878              <xsl:copy-of select="@*" />
     1879            </xsl:otherwise>
     1880          </xsl:choose>
     1881        </link>
    18681882      </xsl:for-each>
    18691883      <xsl:if test="@number">
     
    63466360    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    63476361    <!-- when RCS keyword substitution in place, add version info -->
    6348     <xsl:if test="contains('$Revision: 1.556 $',':')">
    6349       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.556 $', 'Revision: '),'$','')),', ')" />
     6362    <xsl:if test="contains('$Revision: 1.558 $',':')">
     6363      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.558 $', 'Revision: '),'$','')),', ')" />
    63506364    </xsl:if>
    6351     <xsl:if test="contains('$Date: 2011-08-28 20:30:48 $',':')">
    6352       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-08-28 20:30:48 $', 'Date: '),'$','')),', ')" />
     6365    <xsl:if test="contains('$Date: 2011-11-05 16:48:52 $',':')">
     6366      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2011-11-05 16:48:52 $', 'Date: '),'$','')),', ')" />
    63536367    </xsl:if>
    63546368    <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.