<?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>9130</bug_id>
          
          <creation_ts>2010-02-23 16:22:04 +0000</creation_ts>
          <short_desc>XQTS:CVS: errors-and-optimization-1, 6</short_desc>
          <delta_ts>2010-09-08 10:11:10 +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>CLOSED</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="Tim Mills">tim</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>nick</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>32587</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2010-02-23 16:22:04 +0000</bug_when>
    <thetext>errors-and-optimization-1 is marked in the catalog as expecting a runtime error.  The query contains a type error (XPTY0004).  The catalog entry has no expected-error element.

errors-and-optimization-6 contains a static error (XPST0017) - fn:QName expects two arguments.  The catalog lists it as expecting FOCA0002


(: Name: errors-and-optimization-6.xq :)
(: Description: 

   Expressions must not be rewritten in such a way as to create or
   remove static errors. 
   
:)

(: insert-start :)
(: insert-end :)

let $s := &quot;var:QName&quot;
return QName($s)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33950</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-03-26 17:05:58 +0000</bug_when>
    <thetext>I have checked in result files for queries 1 and 3 - was 6 the right number here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34654</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2010-04-08 12:46:07 +0000</bug_when>
    <thetext>Yes. There was a change required for 6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34655</commentid>
    <comment_count>3</comment_count>
    <who name="Nick Jones">nick</who>
    <bug_when>2010-04-08 12:47:02 +0000</bug_when>
    <thetext>errors-and-optimization-1 also now has a spurious newline at the end of the result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37231</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-08-04 18:07:27 +0000</bug_when>
    <thetext>Fixed the error for errors-and-optimization-6 - it now expects XPST0017.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37372</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2010-08-12 15:19:30 +0000</bug_when>
    <thetext>Thanks.

errors-and-optimization-6 is fixed, but errors-and-optimization-1 remains in error.  

See Comment 3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37594</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2010-08-18 08:28:35 +0000</bug_when>
    <thetext>errors-and-optimization-6 is incorrectly marked in the catalog as is-XPath2=&quot;true&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38570</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-09-07 22:35:30 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Thanks.
&gt; 
&gt; errors-and-optimization-6 is fixed, but errors-and-optimization-1 remains in
&gt; error.  


OK, I&apos;ve removed the extraneous newline now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38571</commentid>
    <comment_count>8</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2010-09-07 22:36:55 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; errors-and-optimization-6 is incorrectly marked in the catalog as
&gt; is-XPath2=&quot;true&quot;.

I modified it so it runs as either XQuery or XPath:

for $s in &quot;var:QName&quot;
return QName($s)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38651</commentid>
    <comment_count>9</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2010-09-08 10:10:45 +0000</bug_when>
    <thetext>I can confirm that this is now fixed.  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>