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

RE: Sorting and re-ordering down a hierarchy

Subject: RE: Sorting and re-ordering down a hierarchy
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Wed, 23 Jul 2003 07:24:00 +0000
RE:  Sorting and re-ordering down a hierarchy
Of course!

Thought that the sorting would be on the current node, but it is of course compared to the template selected nodes. Then it was just a fluke that I seemingly got the first level to function.

Thanks David and Americo for spelling it out to me.

And I hope that Chris Cole, the original poster, can also use this solution.

Ragulf Pickaxe :)

When defining what to use for sorting, you do so in the context of the nodes
being sorted - so where you have, in both cases:


<xsl:sort select="node/rank" data-type="number" order="ascending"/>

I think you should have

<xsl:sort select="rank" data-type="number" order="ascending"/>

With that change I think your code works fine.

_________________________________________________________________
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.