Hi,
I'm using Weblogic 9.2 which uses Saxon 8.1.1 as its XQuery Engine. I'm using max function and in the argument I'm passing the node which has two dateTime values. It is giving exception.
Following is part of my XML Document:
<effectiveTime value="2007-03-20T18:10:15"/>
Following is part of my XQuery:
$maxTime := (max($bodySect[code/@code='11502-2']/entry/observation/effectiveTime/@value))
It is giving following exception:
net.sf.saxon.DynamicPathError: Cannot convert {2007-02-13T18:10:15} to a number.
Basically, it is trying to convert it into double.
However, the documentation says that comparison can be done with same base type and return max from that. Here we have same base type i.e., xs:dateTime. So, I think there is some conflict between w3c specification and Saxon implementation or may be I’m misinterpreting it.
Hope somebody can help me.
Thanks,
Ismail