Re: strange problem with string-replace

Subject: Re: strange problem with string-replace
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 10 Feb 2000 10:21:03 GMT
> But when I wand to remove
> all &#13; (line feed) or &#32; (space)

line endings are normalised to 10 not 13, and since this is working
at the level of single characters you can use translate() rather than
string-replace.


<xsl:template match="a">
  <xsl:value-of select="translate(.,'&#10; ','')"/>
</xsl:template>
</xsl:stylesheet>

converts


<a>
1 2
3 4
5 6
</a>

to

123456


David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread