[xquery-talk] QName in content

Florent Georges lists at fgeorges.org
Wed Nov 24 18:54:31 PST 2010


Daniela Florescu wrote:

  Hi,

> <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?

  Regards,

-- 
Florent Georges
http://fgeorges.org/




      



More information about the talk mailing list