[xquery-talk] namespace questions

Martin Probst martin at x-hive.com
Mon May 8 12:01:07 PDT 2006


Hi,

> There are two kinds of namespace declarations in XQuery. "declare  
> namespace"
> defines a namespace binding that can be used anywhere in the query,  
> but
> which is not copied into constructed elements. An xmlns="xyz"  
> declaration in
> a direct element constructor defines a binding that can be used  
> anywhere
> 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?

Martin



More information about the talk mailing list