Re: [F&O] Casting to xs:NOTATION, xs:QName not clarified

Frank Legler wrote:
> Hello Ashok,
> 
> Does that mean that it is possible to construct xs:QName and xs:NOTATION 
> from xs:string,
> but it is not possible to cast xs:QName and xs:NOTATION from a xs:
> string?

 From section 17.6 of XQuery 1.0 and XPath 2.0 Functions and Operators:

"Casting from xs:string and xdt:untypedAtomic to xs:QName, xs:NOTATION, 
or types derived from them is not possible because it requires knowledge 
of the namespace context. Constructor functions are available to 
construct values of these types provided that the lexical representation 
is known statically."

...


~Grauw

-- 
Ushiko-san! Kimi wa doushite, Ushiko-san!!

Received on Saturday, 15 January 2005 03:35:49 UTC