19 Sep
2013
19 Sep
'13
1:01 p.m.
While trying to transform an xhtml document I ran into this general case: copy $ul := <ul xmlns="http://www.w3.org/1999/xhtml"> <li>item</li> <li>item</li> </ul> modify ( rename node $ul as QName("http://www.w3.org/1999/xhtml","ol"), 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