This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In 3.8.3.7 Computed Namespace Constructors, should add the error condition: (An error [err:XQDY0101] is raised if a computed namespace constructor attempts to do any of the following:...) * Bind any prefix (including the empty prefix) to a zero-length namespace URI. (That is, you can only create namespace bindings, not namespace unbindings.)
In discussion it was noted (a) that the syntax of computed namespace constructors allows the URI part to be omitted, and (b) that there might be a useful semantics for a namespace constructor to generate a "namespace undeclaration" (that is, overriding the normal effect of namespace inheritance). Note that this relates to the XSLT problem in bug #5857.
In today's telcon, we agreed to add the requested error. In addition, we decided that URIExpr in the following production should be required: [153] CompNamespaceConstructor ::= "namespace" (Prefix | ("{" PrefixExpr "}")) "{" URIExpr? "}" => CompNamespaceConstructor ::= "namespace" (Prefix | ("{" PrefixExpr "}")) "{" URIExpr "}" We will revisit this in future versions of XQuery, to allow namespace undeclarations.