<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9328</bug_id>
          
          <creation_ts>2010-03-25 22:33:21 +0000</creation_ts>
          <short_desc>errors-and-optimization-1.xq</short_desc>
          <delta_ts>2010-03-29 20:57:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jonathan.robie</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>33925</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-03-25 22:33:21 +0000</bug_when>
    <thetext>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 &quot;else&quot; branch: the argument to error#1 must be a QName.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33949</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-03-26 17:05:26 +0000</bug_when>
    <thetext>I changed the query to this:

if (true())
   then 1
   else error(QName(&apos;http://www.example.com/errors&apos;, &apos;err:oops&apos;),
              &quot;Oops, this error should not be raised!&quot;)
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>