I have the following issue with my local function.
The following function:
declare function local:exp($w as node()) as element()* {
for $e in ($w/e)
let $exp:= QName ("myns", "real")
return
element {$exp}{
attribute resource {$e/@lang}
}
};
generates this xml:
<real xmlns="myns" resource="eng"/>
What really needed is:
<myns:real rdf:resource="lang"/>
How can I achive that?
- How can I address the problem?
- How can I add "rdf" as NS for resource attribute.
Thanks in advance.