Subject: Re: [xsl] XSLT 2 - Sorting data with two elements named the same From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 12 Jun 2008 11:40:16 +0100 |
<xsl:sort select="Rating/@value I think you just want <xsl:sort select="Rating[@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. ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT 2 - Sorting data wit, Andrew Welch | Thread | [xsl] XSLT Compiler for C/C++?, nium |
Re: [xsl] XSLT 2 - Sorting data wit, Andrew Welch | Date | [xsl] XSLT Compiler for C/C++?, nium |
Month |