This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Stripping all whitespace and carriage return / end of line
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Stripping all whitespace and carriage return / end of line
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 13 Oct 2000 17:45:07 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I thought that
>
> <xsl:strip-space elements="*"/>
>
> strips all whitespace from element content
No, it only strips whitespace nodes, that is, text nodes containing nothing
but whitespace.
, but this does not seem to
> include carriage returns, tabs and similar trailing and leading
> characters. However, when reading an element content, I would like to
> have those ignored.
Use the normalize-space() function.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list