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

RE: instance of

From: Michael Rys <mrys@microsoft.com>
Date: Tue, 26 Apr 2005 14:17:02 -0700
Message-ID: <BAE415CEAA831548800F68C44E905AF501F4DF1C@RED-MSG-60.redmond.corp.microsoft.com>
To: "Carmelo Montanez" <carmelo@nist.gov>, <www-ql@w3.org>

XQuery does not have a literal constant for duration values. Thus the
P1Y2... gets interpreted as an element. You need to use the constructor
function:

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

Best regards
Michael

> -----Original Message-----
> From: www-ql-request@w3.org [mailto:www-ql-request@w3.org] On Behalf
Of
> Carmelo Montanez
> Sent: Tuesday, April 26, 2005 1:09 PM
> To: www-ql@w3.org
> Subject: 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
> 
> Thanks,
> Carmelo
> 
Received on Tuesday, 26 April 2005 21:17:16 UTC

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