|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] namespace declarations in an elementDavid Carlisle davidc at nag.co.ukThu 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. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








