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 30079 - contextDecl-058 should not apply to XQuery 3.0
Summary: contextDecl-058 should not apply to XQuery 3.0
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-24 13:12 UTC by Josh Spiegel
Modified: 2017-04-05 09:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Josh Spiegel 2017-03-24 13:12:44 UTC
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:

 "applies to XQ30+, not just XQ31"

The test uses arrays.

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