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 8265 - [XQuery] Do schema import, module import and module declaration add to the statically known namespaces?
Summary: [XQuery] Do schema import, module import and module declaration add to the st...
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: Recommendation
Hardware: All All
: P5 trivial
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: http://www.w3.org/TR/xquery/#dt-stati...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-11 21:27 UTC by Henry Zongaro
Modified: 2011-09-06 16:03 UTC (History)
1 user (show)

See Also:


Attachments

Description Henry Zongaro 2009-11-11 21:27:04 UTC
According to the definition of "Statically known namespaces,"[1] "Some namespaces are predefined; additional namespaces can be added to the statically known namespaces by namespace declarations in a Prolog and by namespace declaration attributes in direct element constructors."  The description of namespace declarations[2] states that the declaration adds "the (prefix,URI) pair to the statically known namespaces."

The descriptions of schema import[3], module import,[4] and module declaration,[5] however, all indicate that those declarations may bind a namespace prefix and that such a prefix must not conflict with a prefix bound by another schema import, module import, namespace declaration or module declaration.  They do not indicate that the (prefix,URI) pair is added to the statically known namespaces.

I don't see an obvious reason why such a (prefix,URI) pair should not be added to the statically known namespaces - otherwise, the prefix is rendered useless unless overridden by a direct element constructor - so I will assume that this is just an editorial problem.  I suggest the following editorial corrections:

. In section 2.1.1, second bullet, change "by namespace declarations in a Prolog" to "by namespace declarations, schema imports or module imports in a Prolog, by a module declaration,"

. In the last sentence of the first paragraph of 4.2, change "the namespace prefix specified in the module declaration is bound to the module's target namespace" to "the (prefix,URI) pair is added to the set of statically known namespaces."

. At the end of the first paragraph of 4.10 and of 4.11, add the sentence "If it does bind a namespace prefix to the target namespace, the (prefix, URI) pair is added to the set of statically known namespaces."

[1] http://www.w3.org/TR/xquery/#dt-static-namespaces
[2] http://www.w3.org/TR/xquery/#dt-namespace-declaration
[3] http://www.w3.org/TR/xquery/#id-schema-import
[4] http://www.w3.org/TR/xquery/#id-module-import
[5] http://www.w3.org/TR/xquery/#dt-module-declaration
Comment 1 Jonathan Robie 2010-02-11 23:24:46 UTC
I think you are right. I believe this is an editorial correction where the intended semantics are clear.

Comment 2 Jonathan Robie 2011-09-06 16:03:58 UTC
Fixed in expressions.xml, revision 2.103; query-prolog.xml, revision 1.78.