let $x := <hello xmlns="dude"
xmlns:w="wns"><w:what>2</w:what><goodbye>1</goodbye></hello>
return
(
$x/child::element()[1],fn:node-name($x/child::element()[1]),
fn:prefix-from-QName($x/child::element()[1]),
fn:namespace-uri-from-QName($x/child::element()[1])
)
(:
What is returned:
<w:what xmlns="dude" xmlns:w="w">2</w:what>
what
-
dude
Expected:
<w:what xmlns="dude" xmlns:w="w">2</w:what>
what
w
wns
:)
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general