If I run the following code,
xquery version "1.0-ml";
let $a := <article xmlns:m="http://www.w3.org/1998/Math/MathML"
xmlns="mynamespace"><subnode>test</subnode></article>
return
element {fn:QName("mynamespace","article")}
{
$a/@*
,
$a/node()
}
the return I got is
<article xmlns="mynamespace"><subnode>test</subnode></article>
I missed the namespace definition in the original article node
xmlns:m="http://www.w3.org/1998/Math/MathML" in my new article node.
It looks like the $a/@* does not put the namespace attribute there. How can I
get all the attributes into my new node dynamically so I know I didn't miss
anything?
Thanks, Helen
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general