1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
(:**************************************************************:)
(: Test: functx-fn-namespace-uri-3 :)
(: Written by: Priscilla Walmsley (Frans Englich is maintainer) :)
(: Date: 2008-05-16+02:00 :)
(:**************************************************************:)
declare namespace functx = "http://www.example.com/";
declare namespace pre = "http://datypic.com/pre";
declare namespace unpre = "http://datypic.com/unpre";
let $in-xml := <noNamespace>
<pre:prefixed xmlns="http://datypic.com/unpre"
xmlns:pre="http://datypic.com/pre">
<unprefixed pre:prefAttr="a" noNSAttr="b">123</unprefixed>
</pre:prefixed>
</noNamespace>
return (namespace-uri($in-xml//unpre:unprefixed))
|