RE: [XQuery] Create namespace node for xs:QName

> The XQuery document notes that the following element 
> constructor fails with a validation error:
>    
>     <p xsi:type="xs:integer">3</p>
> 
> This is an unpleasant surprise for users - and there is a 
> simple solution. The specification already requires 
> implementations to create a namespace node for each namespace 
> used in an element or attribute
> name:

<snip/>
> 
> A similar rule should be added to create a namespace node
> for each namespace used in an instance of the xs:QName type.
> 

But how do you know it's a QName until you've validated it, and how do
you validate it if there is no namespace node?

Michael Kay

Received on Wednesday, 11 February 2004 19:44:30 UTC