[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: <xsl:sort> using a derived element

Subject: RE: <xsl:sort> using a derived element
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 6 Mar 2001 20:16:41 -0000
RE:  <xsl:sort> using a derived element
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.