-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
893 fn:compare: Support for arbitrary atomic types #909
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A very pendantic reader might say that the sentence "If both $value1 and $value2 are instances of one of xs:string, xs:anyURI or xs:untypedAtomic" is ambiguous; it could mean that they both have to be instances of the same one of these three types. The phrase "one of" does not help to remove the ambiguity. A possible resolution would be to define that a value is "string-like" if it is an instance of one of these three types; we could use this defined term in quite a few places.
It's not a good idea to convert untypedAtomic to the type of the other operand. It leads to non-transitivity, which makes the function unsuitable as a callback to fn:sort.
I think base64Binary and hexBinary should be mutually comparable.
Revised, thanks.
I’ve now listed the corresponding types twice, once for each input value; same for For pedantic readers, we might also need to rephrase the rules of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example "compare(xs:date('2001-01-01'), xs:untypedAtomic('2001-01-01'))" needs to change.
The CG agreed to merge this PR at meeting 060 |
No description provided.