[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

namespace declarations in an element

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


  namespace declarations in an element
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. 
________________________________________________________________________


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.