RE: instance of

> 
> A quick question ...
> 
> Shouldn't  this expression evaluate to true rather than a 
> dynamic error
> regarding the non existence of element(P1Y2M3DT10H30M)?
> 
> P1Y2M3DT10H30M instance of xs:duration
> 

No, P1Y2M3DT10H30M is a valid element name and is interpreted as
./child::P1Y2M3DT10H30M.

You want

xs:duration("P1Y2M3DT10H30M") instance of xs:duration

Michael Kay
http://www.saxonica.com/

Received on Wednesday, 27 April 2005 08:02:28 UTC