<?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>17267</bug_id>
          
          <creation_ts>2012-05-31 10:28:58 +0000</creation_ts>
          <short_desc>[QT3TS] K2-SeqDeepEqualFunc-38, 39</short_desc>
          <delta_ts>2012-10-10 09:36:49 +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>Working drafts</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="Michael Kay">mike</assigned_to>
          <cc>mike</cc>
    
    <cc>oneil</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>68389</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-05-31 10:28:58 +0000</bug_when>
    <thetext>These tests perform validation without importing a schema, but do not expect an XQDY0084 error.  Is the test driver meant to auto-generate imports for each schema in the environment?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68398</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-31 11:53:43 +0000</bug_when>
    <thetext>The interpretation of &quot;import schema&quot; and in-scope schema components has been subject to quite a lot of drift over the years. I&apos;ve always had the view that it should be possible to validate using schema components that are available at execution time even though they were not imported into a specific module of the query at compile time, so long as the names of the schema components don&apos;t appear statically in the query; but I agree there&apos;s limited support for that theory in XQuery 1.0 and perhaps even less in 3.0. My thinking is that if a schema appears in the test environment then it is available for validating instance documents even though it is not in the static context of the query. We have plenty of tests that do that in relation to validation of input documents, though perhaps not in relation to validation initiated within the query itself.

However, I guess there is nothing to lose by adding a schema import here, so we&apos;ll add it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71936</commentid>
    <comment_count>2</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-08-08 13:35:42 +0000</bug_when>
    <thetext>Looks like schema import has been added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72023</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-08-10 09:56:51 +0000</bug_when>
    <thetext>Confirmed fixed.  Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72038</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-08-10 15:01:10 +0000</bug_when>
    <thetext>The schema is referenced by the environment, but not imported.

The line:

declare namespace p = &quot;http://www.w3.org/XQueryTest/perversity&quot;;

should be replaced with 

import schema namespace p = &quot;http://www.w3.org/XQueryTest/perversity&quot;;

and 

&lt;dependency type=&quot;feature&quot; value=&quot;schemaImport&quot;/&gt;

should be added to both K2-SeqDeepEqualFunc-38 and 39.

   &lt;test-case name=&quot;K2-SeqDeepEqualFunc-38&quot;&gt;
      &lt;description&gt;Element with mixed content is not equal to similar element with element-only content&lt;/description&gt;
      &lt;created by=&quot;Michael Kay&quot; on=&quot;2012-05-30&quot;/&gt;
      &lt;environment ref=&quot;perverse&quot;/&gt;
      &lt;dependency type=&quot;spec&quot; value=&quot;XQ10+&quot;/&gt;
      &lt;dependency type=&quot;feature&quot; value=&quot;schemaValidation&quot;/&gt;
      &lt;test&gt;&lt;![CDATA[
        declare namespace p = &quot;http://www.w3.org/XQueryTest/perversity&quot;;
        let $v := validate strict {&lt;p:elementOnly&gt;&lt;p:e/&gt;&lt;/p:elementOnly&gt;}
        let $w := validate strict {&lt;p:mixed&gt;&lt;p:e/&gt;&lt;/p:mixed&gt;}
        let $x := validate strict {&lt;p:empty&gt;&lt;p:e/&gt;&lt;/p:empty&gt;}
        let $y := validate strict {&lt;p:simple&gt;&lt;p:e/&gt;&lt;/p:simple&gt;}
        return deep-equal($v/p:e, $w/p:e) or deep-equal($w/p:e, $x/p:e) 
        	or deep-equal($v/p:e, $x/p:e) or deep-equal($x/p:e, $y/p:e)
      ]]&gt;&lt;/test&gt;
      &lt;result&gt;
         &lt;assert-false/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75673</commentid>
    <comment_count>5</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-09 11:36:00 +0000</bug_when>
    <thetext>I have made the changes to the tests cases affected and committed to cvs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75803</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-10 09:36:49 +0000</bug_when>
    <thetext>Confirmed fixed.  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>