Ignore:
Timestamp:
Feb 17, 2008, 8:30:31 AM (12 years ago)
Author:
julian.reschke@…
Message:

Update to latest eUpdate to latest version of rfc2629.xslt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rfc2629xslt/rfc2629toXHTML.xslt

    r204 r213  
    37203720</xsl:template>
    37213721
     3722<!-- measuring lengths -->
     3723<xsl:template match="x:length-of">
     3724  <xsl:variable name="target" select="//*[@anchor=current()/@target]"/>
     3725  <xsl:if test="count($target)!=1">
     3726    <xsl:call-template name="error">
     3727      <xsl:with-param name="msg" select="concat('@target ',@target,' defined ',count($target),' times.')"/>
     3728    </xsl:call-template>
     3729  </xsl:if>
     3730  <xsl:variable name="content">
     3731    <xsl:apply-templates select="$target"/>
     3732  </xsl:variable>
     3733  <xsl:variable name="lineends" select="string-length($content) - string-length(translate($content,'&#xA;',''))"/>
     3734  <xsl:variable name="indents">
     3735    <xsl:choose>
     3736      <xsl:when test="@indented">
     3737        <xsl:value-of select="number(@indented) * $lineends"/>
     3738      </xsl:when>
     3739      <xsl:otherwise>0</xsl:otherwise>
     3740    </xsl:choose>
     3741  </xsl:variable>
     3742  <xsl:value-of select="string-length($content) + $lineends - $indents"/>
     3743</xsl:template>
     3744
     3745<!-- Nop -->
     3746<xsl:template match="x:span">
     3747  <xsl:apply-templates/>
     3748</xsl:template>
     3749
    37223750<!-- box drawing -->
    37233751
     
    45154543    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    45164544    <!-- when RCS keyword substitution in place, add version info -->
    4517     <xsl:if test="contains('$Revision: 1.357 $',':')">
    4518       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.357 $', 'Revision: '),'$','')),', ')"/>
     4545    <xsl:if test="contains('$Revision: 1.358 $',':')">
     4546      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.358 $', 'Revision: '),'$','')),', ')"/>
    45194547    </xsl:if>
    4520     <xsl:if test="contains('$Date: 2008/02/06 14:33:26 $',':')">
    4521       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2008/02/06 14:33:26 $', 'Date: '),'$','')),', ')"/>
     4548    <xsl:if test="contains('$Date: 2008-02-17 16:03:10 $',':')">
     4549      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2008-02-17 16:03:10 $', 'Date: '),'$','')),', ')"/>
    45224550    </xsl:if>
    45234551    <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.