<?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>19868</bug_id>
          
          <creation_ts>2012-11-05 19:54:46 +0000</creation_ts>
          <short_desc>[QT3TS] alternate result for XQST0046 test cases</short_desc>
          <delta_ts>2013-03-11 16:23:31 +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>Last Call drafts</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="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="Tim Mills">tim</assigned_to>
          <cc>christian.gruen</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>77902</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2012-11-05 19:54:46 +0000</bug_when>
    <thetext>Test cases XQST0046_02, XQST0046_07, and XQST0046_10 all use namespace URI &quot;%gg&quot; and expect error XQST0046. I believe that this error is not required. Section 2.4.5, URI Literals, of XQuery says:

  XQuery 3.0 requires a statically known, valid URI in a URILiteral or a
  BracedURILiteral. An implementation may raise a static error [err:XQST0046]
  if the value of a URI Literal or a Braced URI Literal is of nonzero length
  and is neither an absolute URI nor a relative URI.


Additionally, the query for XQST0046_10 contains a reference to a non-existent library module.

import module &quot;%gg&quot; at &quot;http://www.w3.org/&quot;; 1

This test case should make reference to a valid library module.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77937</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-11-06 11:03:56 +0000</bug_when>
    <thetext>I have made a number of modifications to the listed tests as well as other XQST0046 tests.  Please review them to see if you agree.  I&apos;d be particularly interested in alternative results for XQST0046_08, 09, 11, 13 and 14.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77949</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2012-11-06 15:14:01 +0000</bug_when>
    <thetext>In order to narrow XQST0046_10 to test just the URI of the module being imported, I suggest that the test be rewritten as:

   &lt;test-case name=&quot;XQST0046_10&quot;&gt;
      &lt;description&gt; check that bad namespace declarations are reported correctly &lt;/description&gt;
      &lt;created by=&quot;Tim Mills&quot; on=&quot;2008-05-16&quot;/&gt;
      &lt;modified by=&quot;Tim Mills&quot; on=&quot;2011-11-06&quot; change=&quot;Resolved Bug 19868&quot;/&gt;
      &lt;module uri=&quot;%gg&quot; file=&quot;CombinedErrorCodes/XQST0046_lib.xq&quot;/&gt;
      &lt;test&gt;import module &quot;%gg&quot;; true()&lt;/test&gt;
      &lt;result&gt;
	&lt;any-of&gt;
	  &lt;error code=&quot;XQST0046&quot;/&gt;
	  &lt;assert-true /&gt;
	&lt;/any-of&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;

I suggest the same change for XQST0046_08.

For XQST0046_09 and XQST0046_11, it seems that XQST0059 should be allowed.

&quot;It is a static error [err:XQST0059] if the implementation is not able to process a schema import by finding a valid schema with the specified target namespace.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77952</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-11-06 15:44:25 +0000</bug_when>
    <thetext>Unfortunately I think

 &lt;module uri=&quot;%gg&quot; file=&quot;CombinedErrorCodes/XQST0046_lib.xq&quot;/&gt;

wouldn&apos;t be aloud, as %gg might not be considered a valid xs:anyURI by an XML schema 1.0 processor. i.e. the catalog would be invalid.

I have made the suggested changes to XQST0046_09 and XQST0046_11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84199</commentid>
    <comment_count>4</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2013-03-10 13:49:43 +0000</bug_when>
    <thetext>For test case XQST0046_02, I would also propose to add error XQST0059 as valid result, because the namespace of the imported module does not match the requested one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84244</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-03-11 16:14:58 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; For test case XQST0046_02, I would also propose to add error XQST0059 as
&gt; valid result, because the namespace of the imported module does not match
&gt; the requested one.

I agree that XQST0059 should be permitted.  I&apos;m less sure as to whether the current possible expected value of &quot;true()&quot; is valid.  I&apos;ve removed this until such time as someone objects.

Please mark as CLOSED if you agree with the resolution.  Otherwise, REOPEN.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84245</commentid>
    <comment_count>6</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2013-03-11 16:23:31 +0000</bug_when>
    <thetext>Thanks, I have closed this bug. Some trivia: the XML declaration of the current CombinedErrorCodes.xml file has the version attribute set to &quot;0.0&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>