[xquery-talk] QName in content

Andrew Welch andrew.j.welch at gmail.com
Wed Nov 24 19:12:04 PST 2010


>> <a>{ QName("uri","local") }</a>
>> (a) does return according to the specand
>> (b) should return based on your own user expectation ?
>
>  I am not sure exactly what's the problem here.  As per §3.7.1.3
> <http://www.w3.org/TR/xquery/#id-content>, the enclosed
> expression must result in a text node, the value of which must be
> the same as casting the QName to a string.  Which, from the XDM
> §17.1.2 <http://www.w3.org/TR/xpath-functions/#casting-to-string>
> results in the text "local" because it does not have any prefix.
>
>  So the result must be:
>
>    <a>local</a>
>
>  What's exactly the problem here?

Perhaps the ultimate underlying problem - the inability to represent
the namespace uri and the local name as a string...  ;-)

Anyone solved that one yet?

(Bula from Fiji, where it's raining hard...)

-- 
Andrew Welch
http://andrewjwelch.com



More information about the talk mailing list