Re: [xsl] xsl:strip-space and nbsp

Subject: Re: [xsl] xsl:strip-space and nbsp
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 27 Jun 2006 10:43:55 +0100
> Anyways, what I'm wondering is how to strip the space including the
> nbsp.

non breaking space characters are not "whitespace" as defined by XML and
XSLT specifications (which just consists of tab, space and various end
of line characters) so you get rid of character 160 the same way as
you'd get rid of any other character such as "a", 
trannslate(.,'&#160; &#9;&#10;&#13;','')
for example will translate nbsp along with the whitespace characters to
nothing.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread