<?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>21719</bug_id>
          
          <creation_ts>2013-04-16 15:27:02 +0000</creation_ts>
          <short_desc>Tests on require-feature/prohibit-feature</short_desc>
          <delta_ts>2013-05-02 10:01:18 +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>Candidate Recommendation</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="Christian Gruen">christian.gruen</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>tim</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>86295</commentid>
    <comment_count>0</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2013-04-16 15:27:02 +0000</bug_when>
    <thetext>- well-formed-feature-2:
  This test case should also allow XQST0123 as result, because &quot;qname&quot; is no
  valid feature. As an alternative, the feature string could be reduced to
  &quot;not:a:qname&quot;

- well-formed-feature-4:
  I would have expected XPST0081 as error

- require-prohibit-1:
  XQST0120 should also be accepted here

- require-prohibit-3:
  The current specification says that the &quot;Serialization Feature does
  not have a feature name, and cannot be required or prohibited in a module.&quot;,
  so this test should probably return XQST0123 instead.

- require-prohibit-5:
  XQST0120 should also be accepted here

- require-all-optional-features-5-s:
  I would suggest to also add XQST0128 as correct result, because the
  spec says that a) &quot;it is a static error [err:XQST0128] if a feature name
  that an implementation supports appears in a prohibit-feature option
  declaration and the implementation is unable to disable the feature&quot; and
  b) &quot;all-optional-features corresponds to the set of all named features that
  correspond to features listed in 5.2 Optional Features&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87108</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-05-01 15:20:06 +0000</bug_when>
    <thetext>Bugs fixed and committed to cvs. Please see below for comments on the test cases.

(In reply to comment #0)
&gt; - well-formed-feature-2:
&gt;   This test case should also allow XQST0123 as result, because &quot;qname&quot; is no
&gt;   valid feature. As an alternative, the feature string could be reduced to
&gt;   &quot;not:a:qname&quot;

Fixed 
&gt; 
&gt; - well-formed-feature-4:
&gt;   I would have expected XPST0081 as error

Fixed already by Tim some time ago
&gt; 
&gt; - require-prohibit-1:
&gt;   XQST0120 should also be accepted here

I am rejecting this proposed change. I would think that during the static checking phase duplicates and clashing features would be caught.  If you disagree please feel free to re-open the bug.

&gt; 
&gt; - require-prohibit-3:
&gt;   The current specification says that the &quot;Serialization Feature does
&gt;   not have a feature name, and cannot be required or prohibited in a
&gt; module.&quot;,
&gt;   so this test should probably return XQST0123 instead.

Test has been removed

&gt; 
&gt; - require-prohibit-5:
&gt;   XQST0120 should also be accepted here

I am rejecting this proposed change. I would think that during the static checking phase duplicates and clashing features would be caught.  If you disagree please feel free to re-open the bug.

&gt; 
&gt; - require-all-optional-features-5-s:
&gt;   I would suggest to also add XQST0128 as correct result, because the
&gt;   spec says that a) &quot;it is a static error [err:XQST0128] if a feature name
&gt;   that an implementation supports appears in a prohibit-feature option
&gt;   declaration and the implementation is unable to disable the feature&quot; and
&gt;   b) &quot;all-optional-features corresponds to the set of all named features that
&gt;   correspond to features listed in 5.2 Optional Features&quot;

This test looks to have been fixed already</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87122</commentid>
    <comment_count>2</comment_count>
    <who name="Christian Gruen">christian.gruen</who>
    <bug_when>2013-05-01 20:54:18 +0000</bug_when>
    <thetext>Yes, I agree with your reasoning; thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87152</commentid>
    <comment_count>3</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-05-02 10:01:18 +0000</bug_when>
    <thetext>*** Bug 21839 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>