xsl-list
[Top] [All Lists]

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

2006-11-15 11:51:22
Ah! I was reading the 1.0 spec, and couldn't find an explicit statement
of ordering.
FYI, XT seems to return nodes in reverse document order...

        # r

James A. Robinson wrote:
Is it possible to guarantee the ordering of the node-set returned by key()?
If not, is it possible to force the order to document order?
I have looked to the spec, but to no avail...

According to the 2.0 CR it is document order:

  The result of the function is a sequence of nodes, 
  in document order and with duplicates removed

from http://www.w3.org/TR/xslt20/#keys

Jim

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       
jim(_dot_)robinson(_at_)stanford(_dot_)edu
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--