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

Re: AW: Sorting and re-ordering down a hierarchy

Subject: Re: AW: Sorting and re-ordering down a hierarchy
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Tue, 22 Jul 2003 10:29:07 +0000
Re: AW:  Sorting and re-ordering down a hierarchy

Hi,

>Does anybody else have a solution, and can anyone tell me why my solution
>does not work?

><xsl:template match="input">
>	<xsl:apply-templates select="node">
>		<xsl:sort select="node/rank" data-type="number"
order="ascending"/>
>	</xsl:apply-templates>
></xsl:template>

The statement select="node" defines the set which is sorted.
You have different call to the template with different sets.
Each is sorted. Where is the problem?

Regards,

Juergen


The problem is that _not_ each are sorted - not according to what I see, at least.
If you look at the second level of output, you can see that they are in the original (input) order. Only the first level is sorted ascendingly.


Regards,

Ragulf Pickaxe :)

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail



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.