Subject: RE: [xsl] Getting a list of node Text() From: "Houghton,Andrew" <houghtoa@xxxxxxxx> Date: Tue, 19 Jun 2007 19:48:57 -0400 |
> -----Original Message----- > From: Nicholas Orr [mailto:nick@xxxxxxxxxxx] > Sent: 19 June, 2007 19:35 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting a list of node Te, David Carlisle | Thread | Re: [xsl] Getting a list of node Te, Nicholas Orr |
Re: [xsl] Getting a list of node Te, David Carlisle | Date | Re: [xsl] Getting a list of node Te, Nicholas Orr |
Month |