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 14930 - [XQ30] Missing error condition for default namespace declarations
Summary: [XQ30] Missing error condition for default namespace declarations
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Recommendation
Hardware: PC All
: P2 minor
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: 2011-11-25 09:30 UTC by Michael Kay
Modified: 2013-06-19 08:52 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2011-11-25 09:30:09 UTC
The rule in 4.13: "The namespace URI specified in a namespace declaration must not be http://www.w3.org/XML/1998/namespace or http://www.w3.org/2000/xmlns/ [err:XQST0070]." should apply to default namespace declarations as well as namespace declarations.

(Note that according to the definition in 4.13, a "default namespace declaration" is not a "namespace declaration", and the spec is scrupulous in making this distinction).
Comment 1 Tim Mills 2011-11-25 14:56:32 UTC
Are you proposing that this should only apply in XQuery 3.0?

At the moment in XQuery 1.0, it appears that declaring the default element/function namespace to be http://www.w3.org/XML/1998/namespace or http://www.w3.org/2000/xmlns/ is fine, so long as nothing makes use of it (which is a tad obsurd).
Comment 2 Michael Kay 2011-11-25 16:22:56 UTC
It's clearly an omission in the 1.0 spec (or more specifically, erratum E19 [1], that's carried forward to 3.0. The error is defined for namespace declarations (i.e. with an explicit prefix) but not for default namespace declarations - there's no rationale for having any difference.

[1] http://www.w3.org/XML/2007/qt-errata/xquery-errata.html#E19
Comment 3 Jonathan Robie 2012-07-24 15:45:22 UTC
The Working Group agrees.