Hi,
My question: is it possible to use basex reasonably here shedding it of all the namespace baggage that I can not deal with.
If you just want to get rid of all the namespaces and your scenario doesn't evolve around huge amounts of data you could use the following approach, which has been posted on our list some time ago:
*declare function local:strip-namespace($e as element()) as element() {* * element {QName((), local-name($e))} {* * for $child in $e/(@*,*)* * return* * if ($child instance of element())* * then local:strip-namespace($child)* * else $child* * }* *};* * * You could then f.i. replace the original node with the node returned by the function, or create a new database from the result, ... Note that all namespace declarations will be completely removed!
Cheers, Lukas