This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
(This bug is probably only editorial) Under 1.7.4 Properties of functions, we state: <quote> All functions defined in this specification are ·deterministic· unless otherwise stated. Exceptions include the following: * Some functions (such as fn:distinct-values and fn:unordered) produce results in an ·implementation-defined· or ·implementation-dependent· order. In such cases there is no guarantee that the order of results from different calls will be the same. These functions are said to be non-deterministic with respect to ordering. <quote> I find a few issues with this: 1) neither fn:distinct-values nor fn:unordered have a mention in the body of their resp. entries that they are non-deterministic with respect to ordering 2) the functions map:keys and map:for-each have a mention in the body of their entries, but the line explaining the effect is slightly different with the definition above: "two calls with the same argument are not guaranteed to produce the results in the same order." versus "no guarantee that the order of results from different calls will be the same.". I propose the to bring the sentence in 1.7.4 in line with this, i.e., make it "no guarantee that the order of results from different calls with the same arguments will be the same." 3) none of fn:distinct-values, fn:unordered, map:for-each and map:keys are marked "non-deterministic" under their resp. properties. I think they should be. ---- I'm not 100% sure that these four functions is an exhaustive list of the non-deterministic wrt ordering functions. For instance, should fn:in-scope-prefixes be in here?
I have implemented the editorial suggestions here.