Date Comparisons?

Hi

I’m using Tamino 4.1.4.1 on a Windows 2000 server.

I’m trying to do a date comparison.

The xml’s use the standard format for dates (the tsd specifies them as type=“xs:date”):

2004-02-25
2003-08-25
2005-03-03


The xquery looks like this:

for $x in input()/thing
let $id := string($x/@id)
where $x/a > ‘2004-02-02’
return


It throws an error like this:

<ino:message ino:returnvalue=“6301”>
<ino:messagetext ino:code=“INOXQE6301”>Runtime type exception</ino:messagetext>

Are date comparisions possible? If so, what is the syntax?

Thanks.

I found the answer myself by reading other posts.

The where clause needed to be:

where $x/a > xs:date(“2004-02-02”)