xsl-list
[Top] [All Lists]

Re: [xsl] strip leading whitespace for sorting

2008-10-27 04:26:51
Joe Barwell wrote:
I've got a problem with nodes that contain leading whitespace that I want to strip, because it's affecting my sorts.

Hi people,

To answer my own question: I misunderstood. The tool I needed was normalize-space(), i.e.:

...
<xsl:for-each select="NewDataSet/Table">
                <xsl:sort select="normalize-space(Currency)" order="ascending" 
/>
                <xsl:sort select="normalize-space(Name)" order="ascending" />
...

Sorry for wasting people's bandwidth.

Cheers!

Joe


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>