<?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>3281</bug_id>
          
          <creation_ts>2006-05-12 21:16:03 +0000</creation_ts>
          <short_desc>value-comparison-3 and value-comparison-4 without schema import</short_desc>
          <delta_ts>2006-07-06 13:06:25 +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>0.9.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Marc Van Cappellen">marc.van.cappellen</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9774</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-05-12 21:16:03 +0000</bug_when>
    <thetext>For both value-comparison-3 and value-comparison-4 XPST0017 should be added as an alternate (negative) result.
Implementations not supporting the optional feature Schema Import report XPST0017 as myType:hatsize() and myType:shoesize() are unknown functions.

Thanks,
Marc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9779</commentid>
    <comment_count>1</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-05-12 22:24:57 +0000</bug_when>
    <thetext>And similar for the new &apos;UserDefined&apos; tests:

user-defined-1
user-defined-2
user-defined-3
user-defined-4
user-defined-5
user-defined-6
user-defined-7
user-defined-8
user-defined-9
user-defined-10
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9793</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-05-15 20:34:35 +0000</bug_when>
    <thetext>If an implementation does&apos;t recognized schema import, then it should raise err:XQST0009. Section 5.2.1, Schema Import Feature, of XQuery says:

&quot;If an XQuery implementation does not support the Schema Import Feature, it MUST raise a static error [err:XQST0009] if it encounters a schema import.&quot;

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9796</commentid>
    <comment_count>3</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-05-15 20:52:09 +0000</bug_when>
    <thetext>But the XQTS guidelines allow to substitute a &quot;schema import&quot; with a &quot;namespace declaration&quot;. That&apos;s what our test harness does first of all.
As such XQST0009 doesn&apos;t apply and XPST0017 is reported.

Does this make sense?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9803</commentid>
    <comment_count>4</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2006-05-16 09:56:48 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; But the XQTS guidelines allow to substitute a &quot;schema import&quot; with a &quot;namespace
&gt; declaration&quot;. That&apos;s what our test harness does first of all.
&gt; As such XQST0009 doesn&apos;t apply and XPST0017 is reported.
&gt; 
&gt; Does this make sense?
&gt; 

This guideline of replacing schema import by a namespace declaration has been the cause of bug reports in just about every release of the test suite.

I think that it would be __much__ better if this guideline were removed and
tests that didn&apos;t really need the schema import were written to use a namespace declaration, and those that do need it were moved to test groups that explictly depend on schema import feature, so that they can be skipped cleanly by implementations not supporting that feature.

David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9807</commentid>
    <comment_count>5</comment_count>
    <who name="Marc Van Cappellen">marc.van.cappellen</who>
    <bug_when>2006-05-16 19:04:43 +0000</bug_when>
    <thetext>+1 for David&apos;s suggestion

Actually here are some more queries for which we have the same issue with one of our products. Either add XPST0017 or gor for David&apos;s approach.
notation-cast-3
qname-cast-3.xq
qname-cast-4.xq

Thanks,
Marc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9866</commentid>
    <comment_count>6</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-05-19 14:31:44 +0000</bug_when>
    <thetext>Marc/David:

Thanks for raising this issue.  After discussion at the testting task force, 
we agree that implementations are allowed to raise XPST0017 on these tests.
An alternate error code was added to the test cases.  Please close the bug if in agreement.

We also decided not to change the guidelines at this point.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10401</commentid>
    <comment_count>7</comment_count>
    <who name="Tom Brosens">Tom.Brosens</who>
    <bug_when>2006-07-06 13:06:25 +0000</bug_when>
    <thetext>We agree. Closing.

Thanks,
Tom.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>