RE: instance of
"Michael Rys" <[email protected]> Tue, 26 Apr 2005 14:17:02 -0700
| Newsgroups | gmane.comp.web.query-languages |
|---|---|
| Message-ID | <BAE415CEAA831548800F68C44E905AF501F4DF1C@RED-MSG-60.redmond.corp.microsoft.com> |
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: [email protected] [mailto:[email protected]] On Behalf
Of
> Carmelo Montanez
> Sent: Tuesday, April 26, 2005 1:09 PM
> To: [email protected]
> 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
>