<?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>19601</bug_id>
          
          <creation_ts>2012-10-18 13:37:31 +0000</creation_ts>
          <short_desc>[QT3TS] require-schema-aware-4</short_desc>
          <delta_ts>2013-03-20 13:00:16 +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="Ghislain Fourny">g</assigned_to>
          <cc>g</cc>
    
    <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>76583</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-18 13:37:31 +0000</bug_when>
    <thetext>The expected result of this test should be:

      &lt;any-of&gt;
        &lt;!-- supported --&gt;
        &lt;assert-false/&gt;
        &lt;!-- not supported --&gt;
        &lt;error code=&quot;XQST0120&quot;/&gt;
      &lt;/any-of&gt;

since there is not element declaration in a schema for element &apos;element&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76588</commentid>
    <comment_count>1</comment_count>
    <who name="Ghislain Fourny">g</who>
    <bug_when>2012-10-18 13:50:22 +0000</bug_when>
    <thetext>My intent while writing the test was actually:

(validate lax { &lt;element
                         xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
                         xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
                         xsi:type=&quot;xs:integer&quot;&gt;42&lt;/element&gt; }) instance of element(*, xs:integer)

So I fixed the three tests using this query accordingly.

I think that otherwise a dynamic error XQDY0027 would be thrown, and I designed the test to succeed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76589</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-10-18 13:52:28 +0000</bug_when>
    <thetext>As a general rule, if we expect a test to produce different results depending on what features an implementation supports, we should not simply list all the results in an &lt;any-of&gt; - we should have different versions of the test with different dependencies, giving one expected result for each set of dependencies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77884</commentid>
    <comment_count>3</comment_count>
    <who name="Ghislain Fourny">g</who>
    <bug_when>2012-11-05 14:15:35 +0000</bug_when>
    <thetext>All prohibit/require-feature tests have now been split into supported/non-supported using the dependency tags, following your remark.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77886</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-11-05 14:28:40 +0000</bug_when>
    <thetext>Please see Bug 19858.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84727</commentid>
    <comment_count>5</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-03-20 11:10:01 +0000</bug_when>
    <thetext>I confirm this bug has been fixed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84735</commentid>
    <comment_count>6</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-03-20 13:00:16 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>