RE: instance of

"Michael Kay" <[email protected]> Wed, 27 Apr 2005 08:39:46 +0100
Newsgroups gmane.comp.web.query-languages
Message-ID <[email protected]>
> 
> 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/