This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: <xsl:sort> using a derived element
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] <xsl:sort> using a derived element
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 6 Mar 2001 19:52:27 -0000
- 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"/>
You haven't explained enough about the context, but perhaps you want
<xsl:sort select="substring-after(.,'-')" order="ascending"/>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list