[xquery-talk] Can I use a dynamic text as the name of result node?

=?GB2312?B?1dTA1w==?= zhaolei at gmail.com
Wed May 30 18:25:32 PDT 2007


Hi,

How to create an xml fragment whose root name is dynamic? The following code
is false, of course.

let $a := <a>bbb</a>
let $r := $a/text()
return
<{$r}>something</{$r}>

With namespace?

return
<{QName("http://aaa",concat($prefix,":",$r))}/>

Are there any methods to do this?

Thanks,
Lei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20070530/091b9c04/attachment.htm


More information about the talk mailing list