Hi Christian, hello all,
to write a new index to get better results out of mostly mixed-content elements, I have to delete some elements:
db:create('index', for $item in db:open('data') return $item update delete node .//(note|sic), db:open('data')/db:path(.))
After that I have to remove some elements, but not the content, like the FunctX-function functx:remove-elements-not-contents does (http://www.xqueryfunctions.com/xq/functx_remove-elements-not-contents.html),
to get <p>This is only an illustrative example, not a real text.</p> from <p>This is only an illustrative <hi>example</hi>, not a <q>real</q> text.</p>
Is there any way, to do it with the help of BaseX XQuery Update?
Best regards, Günter