This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Baffled by xsl:sort - want to process nodes in reverse document o rder.
- To: xsl-list at mulberrytech dot com
- Subject: RE: Baffled by xsl:sort - want to process nodes in reverse document o rder.
- From: Dylan Walsh <Dylan dot Walsh at Kadius dot com>
- Date: Thu, 28 Sep 2000 09:42:44 +0100
- Cc: David_Marston at lotus dot com
- Reply-To: xsl-list at mulberrytech dot com
Thank you. Your suggestion works with the XSL processor I'm using.
> -----Original Message-----
> From: David_Marston@lotus.com [SMTP:David_Marston@lotus.com]
> Sent: Wednesday, September 27, 2000 4:46 PM
> To: xsl-list@mulberrytech.com
> 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