This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]