While trying to transform an xhtml document I ran into this general case:
copy $ul :=
<li>item</li>
<li>item</li>
</ul>
modify
(
insert node attribute class {"a"} into $ul
)
return $ul
which throws an "[XUDY0024] New namespaces conflict with each other." error.
After reading the XQuery update facility recomendation it wasn't clear to me if this is supposed to happen. Do I *have* to use chained copy statements to achieve both renaming a node an inserting an attribute?
Thanks, Alex