xsl-list
[Top] [All Lists]

Re: [xsl] XSLT 2 - Sorting data with two elements named the same

2008-06-12 03:40:41
 <xsl:sort select="Rating/@value

I think you just want

 <xsl:sort select="Rating[(_at_)type = 'Adjusted']/@value"

But note that in xslt2 you don't need to copy all the elements into a
new tree in order to stroe the sorted list, you can save a sequence of
the _original_ nodes in a new sorted order. see xsl:perform-sort rather tha
use <xsl:copy-of select="."/>.


David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>