Re: Baffled by xsl:sort - want to process nodes in reverse document o rder.

Subject: Re: Baffled by xsl:sort - want to process nodes in reverse document o rder.
From: David_Marston@xxxxxxxxx
Date: Wed, 27 Sep 2000 11:45:41 -0400
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


Current Thread