-----Original Message-----
From: Nicholas Orr [mailto:nick(_at_)goya(_dot_)com(_dot_)au]
Sent: 19 June, 2007 19:35
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Getting a list of node Text()
One slightly related question, is it possible to remove
whitespace ( returns and spaces ) from before and after the
text. So in this line from above :
<xsl:value-of select="."/>
If you don't mind compressing all whitespace, then
<xsl:value-of select="normalize-space(.)"/>
which remove the beginning, trailing and compresses all
runs of spaces to one.
If you really only want to remove whitespace from just the
beginning and end, then that's a little harder to do in
XSLT 1.0 vs. XSLT 2.0 which has regular expressions.
Andy.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--