From: Joe W. <jo...@gm...> - 2008-11-21 23:37:29
|
Thanks, Andrzej and Pierrick. I'll give the XSLT route a try. We hand-corrected these this time, since there were only about 40 offending @xmlns-less TEI files. - Joe On Thu, Nov 20, 2008 at 12:22 PM, Andrzej Jan Taramina <an...@ch...> wrote: > >> 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 > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |