W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2005

RE: instance of

From: Michael Kay <mhk@mhk.me.uk>
Date: Wed, 27 Apr 2005 08:39:46 +0100
To: "'Carmelo Montanez'" <carmelo@nist.gov>, <www-ql@w3.org>
Message-ID: <E1DQh9e-0001zD-8O@lisa.w3.org>

> 
> 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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:17 UTC