From: Andrzej J. T. <an...@ch...> - 2008-11-20 17:22:53
|
> 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... It's probably a lot easier to to this using an XSLT transform, than in XQuery! And since calling an XSLT from XQuery is pretty simple, I'ld go that route. -- Andrzej Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com |