> On 31 May 2016, at 17:24, Ghislain Fourny <[email protected]> wrote:
> 
> Hi Leo,
> 
> In XQuery, you can do this in the prolog like so (this is from the spec):
> 
> declare default element namespace "http://example.org/names 
> <http://example.org/names>";
> 
> You can also do so using xmlns attribute in node constructors, and the 
> default namespace will be in scope in all nested expressions.
> 
> Kind regards,
> Ghislain
> 


The main difference from the XSLT xpath-default-namespace is that this default 
applies both to names in path expressions and to names in element constructors, 
which is inconvenient when the input and output documents are in different 
namespaces.

Michael Kay
Saxonica
_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to