This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In: http://www.w3.org/TR/xquery-semantics/#sec_value_comparisons "The static semantics for function calls is given in [4.1.5 Function Calls]. The comparison functions all have return type xs:boolean, as specified in [Functions and Operators]." Since value comparisons can operate on empty sequences, shouldn't ValueOp(Expr1, Expr2) type check to xs:boolean? in the general case?
This is a good catch. The text is not reflecting the current status (probably hasn't for a long time). This should be fixed. I believe the inference rules are consistent with F&O and do not need to be fixed. - Jerome
Tim, This bug has been reclassified as editorial. The XSLT and XML Query working groups have decided to accept the comment and fix the text to align with the F&O document. Best, - Jerome On Behalf of the XSLT and XML Query WGs