This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The test description is: Conditional and typeswitch expressions must not raise a dynamic error in respect of subexpressions occurring in a branch that is not selected However, they can raise type errors in respect of the unselected branch. This query contains a type error in the "else" branch: the argument to error#1 must be a QName.
I changed the query to this: if (true()) then 1 else error(QName('http://www.example.com/errors', 'err:oops'), "Oops, this error should not be raised!")