[xquery-talk] Order of results in XQuery expressions

Michael Kay mike at saxonica.com
Sun Dec 3 22:58:36 PST 2006

> I need to retrieve elements in document-order, but when 
> inside an xquery function I apply sth like:
> let $var := /AAA/* 
> I get a non-deterministic sequence.

That should return results in document order unless you have set ordering
mode to "unordered" in the query prolog, or have an enclosing unordered{}

What does your full query look like, what product are you using, and what's
your evidence that the results are non-deterministic?

Michael Kay

More information about the talk mailing list