[xquery-talk] QName in content

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

Daniela Florescu wrote:


> <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 §
<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:


  What's exactly the problem here?


Florent Georges


More information about the talk mailing list