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>, "'Jeni Tennison'" <mail at jenitennison 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 20:16:41 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
You are sorting List elements, but there only seems to be one of them, and
you are sorting on the value of the ItmDesc child element, but the List
element doesn't have an ItmDesc child. So I can see why it doesn't work, but
I don't know what you're actually trying to do.
Mike Kay
> <xsl:apply-templates select="PATHFINDER/List[ListID='102000']">
> <xsl:sort select="substring-after(ItmDesc,'-')"
> order="ascending"/>
>
> <PATHFINDER version="2000">
> <List>
> <ListID>102000</ListID>
> <ListDesc>Legal Office</ListDesc>
> <Itm>
> <ListID>102000</ListID>
> <ItmID>102020</ItmID>
> <ItmDesc>020-Glendale</ItmDesc>
> </Itm>
> <Itm>
> <ListID>102000</ListID>
> <ItmID>102021</ItmID>
> <ItmDesc>021-Ventura</ItmDesc>
> </Itm>
> </List>
> </PATHFINDER>
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list