This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9328 - errors-and-optimization-1.xq
Summary: errors-and-optimization-1.xq
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-25 22:33 UTC by Michael Kay
Modified: 2010-03-29 20:57 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2010-03-25 22:33:21 UTC
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.
Comment 1 Jonathan Robie 2010-03-26 17:05:26 UTC
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!")