From: Pierrick B. <pie...@fr...> - 2008-11-20 06:54:52
|
Hi, Joe Wicentowski a écrit : > So is there no good way to add an @xmlns to the root element of a > document? Is the only solution to "remove the document"? If need be > I can do that, I guess. I'm afraid you have to reconstruct every element in the new namespace : you are really changing their identity (in other words, it's not "just" a matter of adding an "attribute"). Once done, eXist should handle the namespace declaration automatically in the right place :-) Unfortunately, this is not very easy to do in XQuery, at least in just a single line. We have described such a "copy constructor" several times on this mailing-list though... Cheers, p.b. |