This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 16199 - [XQ30] Default Namespace for Annotations and Annotation Assertions
Summary: [XQ30] Default Namespace for Annotations and Annotation Assertions
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 12:59 UTC by John Snelson
Modified: 2012-09-27 08:30 UTC (History)
2 users (show)

See Also:


Attachments

Description John Snelson 2012-03-02 12:59:02 UTC
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
Comment 1 Jonathan Robie 2012-05-22 17:00:36 UTC
The Working Group agrees.
Comment 2 Tim Mills 2012-07-12 15:53:26 UTC
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 "http://www.w3.org/2012/xquery".  This is not listed as reserved in the aforementioned section.  In fact, it's not mentioned in the specification at all, if I'm not mistaken.

   <test-case name="annotation-28">
      <description>A function annotation (default function namespace does not affect annotations)</description>
      <created by="Josh Spiegel" on="2012-01-08"/>
      <modified by="John Snelson" on="2012-06-19" change="Changed per bug 16199"/>
      <dependency type="spec" value="XQ30+"/>
      <test><![CDATA[
         declare default function namespace "http://example.com";
         declare %x variable $foo := "bar";
         $foo
      ]]></test>
      <result>
         <error code="XQST0045"/>
      </result>
   </test-case>
Comment 3 Jonathan Robie 2012-07-24 14:58:27 UTC
(In reply to comment #2)
> 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

But we made this decision, a draft containing these changes will appear in due course.
Comment 4 Tim Mills 2012-09-27 08:30:58 UTC
Confirmed fixed.