This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
The Working Group agrees.
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>
(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.
Confirmed fixed.