Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
HiI’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-03The xquery looks like this:for $x in input()/thinglet $id := string($x/@id)where $x/a > ‘2004-02-02’returnIt 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”)