Bug #6471
Updated by Michael Kay about 1 month ago
An XQuery "validate" expression is parsed at the wrong level of operator precedence. It is recognised as an `ExprSingle` which means it cannot be followed by an operator such as union (`|`) or `=>`.
It is possible to work around the problem by using parentheses.