Subject: Re: [xsl] Getting a list of node Text() From: Nicholas Orr <nick@xxxxxxxxxxx> Date: Wed, 20 Jun 2007 13:00:57 +1000 |
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.
Cheers, Nick
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Getting a list of node Te, Houghton,Andrew | Thread | Re: [xsl] Getting a list of node Te, Andrew Welch |
RE: [xsl] Getting a list of node Te, Houghton,Andrew | Date | Re: [xsl] When/How to use templates, Ian Jolly |
Month |