<?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>30079</bug_id>
          
          <creation_ts>2017-03-24 13:12:44 +0000</creation_ts>
          <short_desc>contextDecl-058 should not apply to XQuery 3.0</short_desc>
          <delta_ts>2017-04-05 09:07:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Josh Spiegel">josh.spiegel</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>mike</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>128502</commentid>
    <comment_count>0</comment_count>
    <who name="Josh Spiegel">josh.spiegel</who>
    <bug_when>2017-03-24 13:12:44 +0000</bug_when>
    <thetext>contextDecl-058 has the dependency XQ30+ but I think it should be XQ31+.  Normally I would fix this without a bug but the modified comment indicates this was intended:

 &quot;applies to XQ30+, not just XQ31&quot;

The test uses arrays.

&lt;test-case name=&quot;contextDecl-058&quot; xmlns=&quot;http://www.w3.org/2010/09/qt-fots-catalog&quot;&gt;
    &lt;description&gt;Two modules constrain the context item type, and the types overlap&lt;/description&gt;
    &lt;created by=&quot;Michael Kay&quot; on=&quot;2016-12-31&quot;/&gt;
    &lt;modified by=&quot;Michael Kay&quot; on=&quot;2017-03-20&quot; change=&quot;applies to XQ30+, not just XQ31&quot;/&gt;
    &lt;environment&gt;
      &lt;context-item select=&quot;[&amp;apos;blue&amp;apos;, &amp;apos;green&amp;apos;]&quot;/&gt;
    &lt;/environment&gt;
    &lt;dependency type=&quot;spec&quot; value=&quot;XQ30+&quot;/&gt;
    &lt;module uri=&quot;http://www.w3.org/TestModules/libmodule5&quot; file=&quot;ContextItemDecl/libmodule-5.xq&quot;/&gt;
    &lt;test&gt;&lt;![CDATA[
      import module namespace m=&quot;http://www.w3.org/TestModules/libmodule5&quot;;
      declare context item as array(xs:string) external;
      $m:v eq &apos;green&apos;
    ]]&gt;&lt;/test&gt;
    &lt;result&gt;
      &lt;assert-true/&gt;
    &lt;/result&gt;
  &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>128519</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2017-04-05 09:07:37 +0000</bug_when>
    <thetext>I don&apos;t know how to explain this. I suspect I intended to apply this change to a different test. But I don&apos;t even recall why I should have been concerned with XQ30 applicability anyway. Anyway, I have now reverted it.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>