<?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>16199</bug_id>
          
          <creation_ts>2012-03-02 12:59:02 +0000</creation_ts>
          <short_desc>[XQ30] Default Namespace for Annotations and Annotation Assertions</short_desc>
          <delta_ts>2012-09-27 08:30:58 +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>Linux</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="John Snelson">john.snelson</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>jim.melton</cc>
    
    <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>64904</commentid>
    <comment_count>0</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2012-03-02 12:59:02 +0000</bug_when>
    <thetext>The default namespace for annotations and annotation assertions is currently the default function namespace. I think this is problematic, especially in library modules where a common use of the default function namespace is to set it to the namespace URI of the library module itself.

I think we should adopt a mechanism like we have for prolog options, which use a single unchanging default namespace, which is reserved for working group use. I think it would be good if the default namespace for both options and annotations was the same, and suggest:

http://www.w3.org/2012/xquery</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68018</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-05-22 17:00:36 +0000</bug_when>
    <thetext>The Working Group agrees.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69888</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-07-12 15:53:26 +0000</bug_when>
    <thetext>The acceptance of this bug would suggest that the default namespace for options should now be http://www.w3.org/2012/xquery and not http://www.w3.org/2011/xquery-options as stated in the current internal draft at

https://www.w3.org/XML/Group/qtspecs/specifications/xquery-30/html/xquery-30.html#id-annotations

Test case annotation-28 expects XQST0045.  According to Bug 16199, the default namespace for annotations is &quot;http://www.w3.org/2012/xquery&quot;.  This is not listed as reserved in the aforementioned section.  In fact, it&apos;s not mentioned in the specification at all, if I&apos;m not mistaken.

   &lt;test-case name=&quot;annotation-28&quot;&gt;
      &lt;description&gt;A function annotation (default function namespace does not affect annotations)&lt;/description&gt;
      &lt;created by=&quot;Josh Spiegel&quot; on=&quot;2012-01-08&quot;/&gt;
      &lt;modified by=&quot;John Snelson&quot; on=&quot;2012-06-19&quot; change=&quot;Changed per bug 16199&quot;/&gt;
      &lt;dependency type=&quot;spec&quot; value=&quot;XQ30+&quot;/&gt;
      &lt;test&gt;&lt;![CDATA[
         declare default function namespace &quot;http://example.com&quot;;
         declare %x variable $foo := &quot;bar&quot;;
         $foo
      ]]&gt;&lt;/test&gt;
      &lt;result&gt;
         &lt;error code=&quot;XQST0045&quot;/&gt;
      &lt;/result&gt;
   &lt;/test-case&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71388</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2012-07-24 14:58:27 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; The acceptance of this bug would suggest that the default namespace for options
&gt; should now be http://www.w3.org/2012/xquery and not
&gt; http://www.w3.org/2011/xquery-options as stated in the current internal draft
&gt; at
&gt; 
&gt; https://www.w3.org/XML/Group/qtspecs/specifications/xquery-30/html/xquery-30.html#id-annotations

But we made this decision, a draft containing these changes will appear in due course.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74628</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2012-09-27 08:30:58 +0000</bug_when>
    <thetext>Confirmed fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>