RE: instance of

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