[xquery-talk] namespace declarations in an element

David Carlisle davidc at nag.co.uk
Thu May 26 07:32:36 PDT 2011


On 26/05/2011 15:23, Ghislain Fourny wrote:
> Hi Leo,
>
> In XQuery 3.0 you have namespace node constructors which might be what you are looking for.
>
> Or you can also simply build the elements a:test, b:test, c:test just like the root element and let the serializer do the job, but the namespace declarations might not end up at the same place in the output document.
>
> I hope this helps.
>
> Kind regards,
> Ghislain
>

If you do need to generate namespace declarations (perhaps for namespace 
values in attribute values such as xpath or xsd types
rather than element names) in xquery 1 rather than 3 you can use

http://fgeorges.blogspot.com/2006/08/add-namespace-node-to-element-in.html

David


________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________


More information about the talk mailing list