- From: Michael Kay <mhk@mhk.me.uk>
- Date: Mon, 16 Feb 2004 10:54:07 -0000
- To: "'Daniela Florescu'" <danielaf@bea.com>, <public-qt-comments@w3.org>
>
> XQuery: serious limitation
>
>
> Casting is not permitted from xs:Qname to xs:string.
> This is a very serious limitation. This implies that we
> cannot create an attribute node whose value is of type
> Qname.
>
> XQuery should allow this operation.
>
We can't allow this operation unless we can define meaningful semantics
for it. What would you suggest as the semantics?
One proposal I made for a way forward on this is that we should define
the value space of xs:QName as a triple, retaining the prefix in rather
the same way as we retain the timezone of a dateTime value. What do you
think of this suggestion?
Another suggestion that I have made in the past is that we should (in
collaboration with the Schema working group) extend the lexical space of
xs:QName to allow QNames in Clark notation, that is "{uri}local-name".
This would solve many of our problems with QNames at a stroke.
Michael Kay
Received on Monday, 16 February 2004 05:53:27 UTC