Changeset 2301 for rfc2629xslt/samples


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

    r2280 r2301  
    600600<xsl:template match="text()[not(ancestor::artwork)]">
    601601  <xsl:variable name="ws" select="'&#9;&#10;&#13;&#32;'"/>
    602   <xsl:variable name="starts-with-ws" select="translate(substring(.,1,1),$ws,'')"/>
    603   <xsl:variable name="ends-with-ws" select="translate(substring(.,string-length(.),1),$ws,'')"/>
     602  <xsl:variable name="starts-with-ws" select="'' = translate(substring(.,1,1),$ws,'')"/>
     603  <xsl:variable name="ends-with-ws" select="'' = translate(substring(.,string-length(.),1),$ws,'')"/>
     604  <xsl:variable name="normalized" select="normalize-space(.)"/>
    604605  <!--<xsl:message> Orig: "<xsl:value-of select="."/>"</xsl:message>
    605606  <xsl:message>Start: "<xsl:value-of select="$starts-with-ws"/>"</xsl:message>
    606607  <xsl:message>  End: "<xsl:value-of select="$ends-with-ws"/>"</xsl:message> -->
    607   <xsl:if test="$starts-with-ws='' and preceding-sibling::node() | parent::ed:ins | parent::ed:del">
     608  <xsl:if test="$starts-with-ws and (preceding-sibling::node() | parent::ed:ins | parent::ed:del)">
    608609    <xsl:text> </xsl:text>
    609610  </xsl:if>
    610   <xsl:value-of select="normalize-space(.)"/>
    611   <xsl:if test="$ends-with-ws='' and following-sibling::node() | parent::ed:ins | parent::ed:del">
     611  <xsl:value-of select="$normalized"/>
     612  <xsl:if test="$ends-with-ws and $normalized!='' and (following-sibling::node() | parent::ed:ins | parent::ed:del)">
    612613    <xsl:text> </xsl:text>
    613614  </xsl:if>
     
    67116712    <xsl:text>http://greenbytes.de/tech/webdav/rfc2629.xslt, </xsl:text>
    67126713    <!-- when RCS keyword substitution in place, add version info -->
    6713     <xsl:if test="contains('$Revision: 1.597 $',':')">
    6714       <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.597 $', 'Revision: '),'$','')),', ')" />
     6714    <xsl:if test="contains('$Revision: 1.598 $',':')">
     6715      <xsl:value-of select="concat('Revision ',normalize-space(translate(substring-after('$Revision: 1.598 $', 'Revision: '),'$','')),', ')" />
    67156716    </xsl:if>
    6716     <xsl:if test="contains('$Date: 2013/05/27 06:39:42 $',':')">
    6717       <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2013/05/27 06:39:42 $', 'Date: '),'$','')),', ')" />
     6717    <xsl:if test="contains('$Date: 2013/06/23 14:11:10 $',':')">
     6718      <xsl:value-of select="concat(normalize-space(translate(substring-after('$Date: 2013/06/23 14:11:10 $', 'Date: '),'$','')),', ')" />
    67186719    </xsl:if>
    67196720    <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.