Re: [xsl] key() and ordering of resulting node-set

Subject: Re: [xsl] key() and ordering of resulting node-set
From: Ronan Klyne <ronan.klyne@xxxxxxxxxxx>
Date: Thu, 16 Nov 2006 10:49:28 +0000
Michael Kay wrote:
> In XSLT 1.0, key() returns a node-set - a set of nodes with no intrinsic
> order.

Is there a way of sorting them to document order?

To put this in context, I have XSL generating javascript arrays to hold
menu information, and a different bit of XSL generating a listing of
items to which the menus apply.
I'm numbering the menus and items in order (using position()), the order
being defined by the source document. XT is putting the menus in reverse
order.

	# r

-- 
Ronan Klyne
Business Collaborator Developer
Tel: +44 (0)870 163 2555
ronan.klyne@xxxxxxxxxxx
www.groupbc.com

Current Thread