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 (line feed) or   (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(.,' ','')"/>
</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
|