This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Looking at validateexpr-26: validate { document { <a/>, <b/> } } The error XQDY0061 (document node whose children do not consist of exactly one element node ) is expected. I think it is unclear in the spec whether XQDY0027 (root element information item in the PSVI resulting from validation does not have the expected validity property) might also permitted. Are the validate rules expected to be followed in order, and errors thrown with precedence from the order listed? If not, could the second error be added. When streaming results being able to throw the XQDY0027 error is preferable as it would be known before the XQDY0061 error.
Seems reasonable to add the extra error code. Generally the presumption is in favour of allowing alternative error codes if there's a plausible rationale for them.
The XML Query and XSL WGs discussed this issue at our March 2 meeting. We agreed to add the additional expected error that you have requested and I have made this change.
I think the XQDY0027 error code we suggested was wrong. As far as I can see the problem is that the empty namespace is not in the in scope schema types. Thus I believe the alternative error code should be XQDY0084, and not XQDY0027.
This bug has been resolved in QT3