[xquery-talk] Order of results

Michael Kay mike at saxonica.com
Fri Nov 5 10:14:55 PST 2010


> That was my first thought as well, but doesn't unordered just allow 
> the flwor and / expressions to mess up, but , is guaranteed ?
>
> http://www.w3.org/TR/xquery/#dt-comma-operator
>
> doesn't say anything about ordering mode.
>
I think the "," was in a subexpression to the FLWOR, wasn't it?

for $i in 1 to 2 return ('a','b')

can return any permutation of ('a','b','a','b'), I believe. (But I've 
just looked at the spec and I'm not sure. I have never studied it 
closely as setting unordered mode in Saxon has no effect.)

Michael Kay
Saxonica


More information about the talk mailing list