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

RE: Baffled by xsl:sort - want to process nodes in reverse d

Subject: RE: Baffled by xsl:sort - want to process nodes in reverse document o rder.
From: Dylan Walsh <Dylan.Walsh@xxxxxxxxxx>
Date: Thu, 28 Sep 2000 09:42:44 +0100
xsl sort reverse
Thank you. Your suggestion works with the XSL processor I'm using.

> -----Original Message-----
> From:	David_Marston@xxxxxxxxx [SMTP:David_Marston@xxxxxxxxx]
> Sent:	Wednesday, September 27, 2000 4:46 PM
> To:	xsl-list@xxxxxxxxxxxxxxxx
> Subject:	Re: Baffled by xsl:sort - want to process nodes in reverse
> document o rder.
> 
> 
> Dylan Walsh asks about
> <xsl:sort select="position()" data-type="number"
> order="descending"/>
> to process the selected elements in reverse order.
> 
> As a quick fix, try this:
> <xsl:sort select="count(following-sibling::*)"
> data-type="number"/>
> Note that ascending is the correct order, since the
> first sibling has the most followers. Adapt this as
> necessary.
> .................David Marston
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.