[xquery-talk] namespace declarations in an element

Leo Studer leo.studer at varioweb.ch
Thu May 26 07:14:21 PDT 2011


Hi Michael and Ghislain

thank you for your input. Indeed with those two functions I get the prefixes and the namespaces as I need them.

Now a related question. How do I generate such namespaces in an element with xQuery?

<root xmlns:a="http://a.ch" xmlns:b="http://b.ch" xmlns:c="http://c.ch" xmlns="http://test.ch">
    <a:test/>
    <b:test/>
    <c:test/>
</root>

to create root with a namespace I do with 
element{QName("http://test.ch", "root")}{...}

but how to get other namespace declarations in an element I ignore.

Thanks again for caring
Leo







More information about the talk mailing list