This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
<xsl:sort> using a derived element
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] <xsl:sort> using a derived element
- From: "RUSSO, EDITH" <EDIRUS at SAFECO dot com>
- Date: Tue, 6 Mar 2001 08:01:13 -0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
I'd like to sort using ItmDesc, but only a substring of it. Here's my sort:
<xsl:sort select="substring-after(ItmDesc,'-')" order="ascending"/>
Here's an example of the data, I want to sort Spokane, not 214-Spokane:
<ItmDesc>214-Spokane</ItmDesc>
The sort statement above does not do it. How do I do it?
Thanks,
Edith
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list