<?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>19630</bug_id>
          
          <creation_ts>2012-10-19 10:46:09 +0000</creation_ts>
          <short_desc>[QT3TS]  separate-modules-1 to 9</short_desc>
          <delta_ts>2012-11-05 13:41:12 +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="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>g</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>76671</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-19 10:46:09 +0000</bug_when>
    <thetext>The test separate-modules- is grammatically incorrect.  

import module module = &quot;http://www.w3.org/XQueryTest/RequireProhibitFeature&quot;;
declare option prohibit-feature &quot;higher-order-function&quot;;
let $f in module:one() return 1

The second use of module should be &quot;module&quot; (string literal).
&apos;in&apos; should be &apos;:=&apos;

Similar problems exist in the other separate-modules-X tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76675</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-19 11:17:45 +0000</bug_when>
    <thetext>Correction,

import module module = &quot;http://www.w3.org/XQueryTest/RequireProhibitFeature&quot;;

should be

import module namespace module = &quot;http://www.w3.org/XQueryTest/RequireProhibitFeature&quot;;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77099</commentid>
    <comment_count>2</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-25 08:56:13 +0000</bug_when>
    <thetext>In the file dummy.xquery the module declaration is grammatically incorrect :

module namespace = &quot;http://www.w3.org/XQueryTest/RequireProhibitFeature&quot;;

Missing a name. Correction made:

module namespace m = &quot;http://www.w3.org/XQueryTest/RequireProhibitFeature&quot;;

It looks like the other problems have been resolved. Therefore I am marking this bug as fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77103</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-25 09:43:40 +0000</bug_when>
    <thetext>This doesn&apos;t look fixed to me.

e.g.

separate-modules-1

      import module module = &quot;http://www.w3.org/XQueryTest/RequireProhibitFeature&quot;;
      declare option prohibit-feature &quot;higher-order-function&quot;;
      let $f in module:one() return 1

See comment #1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77104</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-25 09:53:14 +0000</bug_when>
    <thetext>I&apos;ve taken the liberty of correcting a number of syntax errors which were afflicting these tests.

separate-modules-8 and 9 seem to be fundamentally wrong though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77105</commentid>
    <comment_count>5</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-25 10:21:57 +0000</bug_when>
    <thetext>I have correct separate-modules-2. Similar problem as described in comment #0.

The following:
for $f := module:one() return 1

Should be:

for $f in module:one() return 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77106</commentid>
    <comment_count>6</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2012-10-25 10:44:37 +0000</bug_when>
    <thetext>There is still a problem with separate-modules-2:

import module namespace module = &quot;http://www.w3.org/XQueryTest/RequireProhibitFeature&quot;;
declare option prohibit-feature &quot;all-optional-features&quot;;
for $f in module:one() return 1

The expected result is reported to succeed if supported with &lt;assert-eq&gt;1&lt;/assert-eq&gt;. But surely this test should fail since all-optional-features are prohibited and module has not been declared as a required-feature.
I will make the change of replacing the expected result above with the error code XQST0016.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77108</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-10-25 10:57:27 +0000</bug_when>
    <thetext>Indeed it should.  I suggest asking Ghislain to sort these tests out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77650</commentid>
    <comment_count>8</comment_count>
    <who name="Ghislain Fourny">g</who>
    <bug_when>2012-11-01 11:15:26 +0000</bug_when>
    <thetext>Thanks for noticing. I added a feature dependency on module import for all these tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77652</commentid>
    <comment_count>9</comment_count>
    <who name="Ghislain Fourny">g</who>
    <bug_when>2012-11-01 11:16:37 +0000</bug_when>
    <thetext>Many thanks O&apos;Neil for correcting the syntax errors. We&apos;ll have a definitive confirmation on them as soon as an implementation can run these tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77875</commentid>
    <comment_count>10</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-11-05 13:40:58 +0000</bug_when>
    <thetext>I think these are all now working.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>