[xquery-talk] namespace questions
martin at x-hive.com
Mon May 8 12:01:07 PDT 2006
> There are two kinds of namespace declarations in XQuery. "declare
> defines a namespace binding that can be used anywhere in the query,
> which is not copied into constructed elements. An xmlns="xyz"
> declaration in
> a direct element constructor defines a binding that can be used
> lexically within that element constructor, and which is also copied
> to the
> result element.
This sounds very sensible and is also the way X-Hive implements it,
but I cannot find anything describing this behaviour in the
specification documents. The section about Namespace Declaration
Attributes (http://www.w3.org/TR/xquery/#id-namespaces) does not
mention anything like that, if I'm not mistaken. Maybe this should be
included when something is done about the copy-namespaces declaration?
More information about the talk