<?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>15644</bug_id>
          
          <creation_ts>2012-01-20 15:46:33 +0000</creation_ts>
          <short_desc>[QT3TS] validate-as-91016</short_desc>
          <delta_ts>2012-06-06 07:29:21 +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>Member-only Editors 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>jim.melton</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>62938</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-01-20 15:46:33 +0000</bug_when>
    <thetext>This test expects XPST0081. 

&quot;It is a static error if a QName used in a query contains a namespace prefix that cannot be expanded into a namespace URI by using the statically known namespaces.&quot;

However, prefix &apos;hat&apos; is fine here.

I suspect the ocrrect error code is XQDY0027, however, the text in the Appendix F (of XQuery 3.0) for this error code reads:

&quot;In a validate expression, it is a dynamic error if the root element information item in the PSVI resulting from validation does not have the expected validity property: valid if validation mode is strict, or either valid or notKnown if validation mode is lax.&quot;

which doesn&apos;t mention validate type expressions.

   &lt;test-case name=&quot;validate-as-91016&quot;&gt;
      &lt;description/&gt;
      &lt;created by=&quot;Michael Kay&quot; on=&quot;2008-12-01&quot;/&gt;
      &lt;environment ref=&quot;hats&quot;/&gt;
      &lt;dependency type=&quot;spec&quot; value=&quot;XQ30+&quot;/&gt;
      &lt;test&gt;&lt;![CDATA[
        import schema namespace hat = &quot;http://www.w3.org/XQueryTest/hats&quot;(:  at &quot;qischema001.xsd&quot; :); 
        validate type hat:hatsize { &lt;hat&gt;banana&lt;/hat&gt; }
      ]]&gt;&lt;/test&gt;
      &lt;result&gt;
         &lt;error code=&quot;XPST0081&quot;/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68037</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-05-23 09:25:18 +0000</bug_when>
    <thetext>Mike, Can I ask you for your thoughts on the reported bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68041</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-05-23 09:57:56 +0000</bug_when>
    <thetext>Under 3.17 rule 5b the error code should be XQDY0027. Test fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68412</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-05-31 12:34:23 +0000</bug_when>
    <thetext>The test suite has error code XPDY0027, not XQDY0027.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68418</commentid>
    <comment_count>4</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-05-31 13:07:39 +0000</bug_when>
    <thetext>Bug fixed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68749</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-06-06 07:29:21 +0000</bug_when>
    <thetext>Confirmed fixed.  Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>