Ignore:
Timestamp:
01/07/13 08:47:55 (9 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

    r2280 r2301  
    468468<xsl:template match="text()[not(ancestor::artwork)]">
    469469  <xsl:variable name="ws" select="'&#x9;&#xA;&#xD; '"/>
    470   <xsl:variable name="starts-with-ws" select="translate(substring(.,1,1),$ws,'')"/>
    471   <xsl:variable name="ends-with-ws" select="translate(substring(.,string-length(.),1),$ws,'')"/>
     470  <xsl:variable name="starts-with-ws" select="'' = translate(substring(.,1,1),$ws,'')"/>
     471  <xsl:variable name="ends-with-ws" select="'' = translate(substring(.,string-length(.),1),$ws,'')"/>
     472  <xsl:variable name="normalized" select="normalize-space(.)"/>
    472473  <!--<xsl:message> Orig: "<xsl:value-of select="."/>"</xsl:message>
    473474  <xsl:message>Start: "<xsl:value-of select="$starts-with-ws"/>"</xsl:message>
    474475  <xsl:message>  End: "<xsl:value-of select="$ends-with-ws"/>"</xsl:message> -->
    475   <xsl:if test="$starts-with-ws='' and preceding-sibling::node() | parent::ed:ins | parent::ed:del">
     476  <xsl:if test="$starts-with-ws and (preceding-sibling::node() | parent::ed:ins | parent::ed:del)">
    476477    <xsl:text> </xsl:text>
    477478  </xsl:if>
    478   <xsl:value-of select="normalize-space(.)"/>
    479   <xsl:if test="$ends-with-ws='' and following-sibling::node() | parent::ed:ins | parent::ed:del">
     479  <xsl:value-of select="$normalized"/>
     480  <xsl:if test="$ends-with-ws and $normalized!='' and (following-sibling::node() | parent::ed:ins | parent::ed:del)">
    480481    <xsl:text> </xsl:text>
    481482  </xsl:if>
     
    65686569    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    65696570    <!-- when RCS keyword substitution in place, add version info -->
    6570     <xsl:if test="contains('$Revision: 1.597 $',':')">
    6571       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.597 $', 'Revision: '),'$','')),', ')"/>
     6571    <xsl:if test="contains('$Revision: 1.598 $',':')">
     6572      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.598 $', 'Revision: '),'$','')),', ')"/>
    65726573    </xsl:if>
    6573     <xsl:if test="contains('$Date: 2013/05/27 06:39:42 $',':')">
    6574       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2013/05/27 06:39:42 $', 'Date: '),'$','')),', ')"/>
     6574    <xsl:if test="contains('$Date: 2013/06/23 14:11:10 $',':')">
     6575      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2013/06/23 14:11:10 $', 'Date: '),'$','')),', ')"/>
    65756576    </xsl:if>
    65766577    <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.