<?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>20450</bug_id>
          
          <creation_ts>2012-12-19 15:35:40 +0000</creation_ts>
          <short_desc>[XQ3.0] Option declarations in the XQuery namespace</short_desc>
          <delta_ts>2013-06-19 09:58:51 +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.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Michael Kay">mike</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          
          
          <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>80409</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2012-12-19 15:35:40 +0000</bug_when>
    <thetext>Test K-OptionDeclarationProlog-1b reads:

declare option myopt &quot;option value&quot;; true()

and expects success. My implementation raises an error. The specification is unclear.

It&apos;s clear that the option is in the XQuery namespace. 

1. The spec says &quot;Each implementation recognizes an implementation-defined set of namespace URIs used in option names.&quot; I think it should require that this implementation-defined set always contains the XQuery namespace.

2. The spec says that if an option is not recognized, it is implementation-defined what happens. Either:

(2a) we really mean this, in which case the result of the test is implementation-defined, or

(2b) we want to define a different rule for the XQuery namespace, namely that the implementation must recognize exactly that set of options which are defined in the specification; in which case the expected result of the test should be an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81048</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-01-08 15:43:32 +0000</bug_when>
    <thetext>I agree, and prefer 2b.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82281</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2013-01-29 17:16:14 +0000</bug_when>
    <thetext>The Working Group agrees that:

1. The implementation-defined set of namespace URIs used in option names always contains the XQuery namespace.

2. The implementation must recognize exactly that set of options which are defined in the specification; in which case the expected result of the test should be an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82286</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-01-29 18:00:05 +0000</bug_when>
    <thetext>Minor correction, point 2 applies only to the case where the namespace is the XQuery namespace.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>