w3c / qtspecs

XSLT and XQuery Specifications - the source used to build the specs, and the errata
Other
30 stars 25 forks source link

[fo31] Incorrect note regarding fn:collation-key() #3

Closed michaelhkay closed 2 years ago

michaelhkay commented 4 years ago

In F&O 3.1, the notes for fn:collation-key() say:

This specification does not mandate that collation keys should retain ordering. This is partly because the primary use case is for maps, where only equality comparisons are required, and partly to allow the use of binary data types (which are currently unordered types) for the result. The specification may be revised in a future release to specify that ordering is preserved.

This paragraph is incorrect and should be deleted. The spec does now mandate that fn:collation-key() is order-preserving, and binary data types are now ordered, which was done specifically to make this possible.

michaelhkay commented 2 years ago

The paragraph has been deleted from the 4.0 draft.