Hi There,
I have encountered a problem related to the max/min functions using Tamin XQuery.
I am trying to get the maximum value of Elements with the following xquery
let $info :=input()/BatchInfo[GroupID=“ssc_test”]/BatchScheduleTime return max($info)
The output of this query results in the minimum value, whereas the following query
let $info :=input()/BatchInfo[GroupID=“ssc_test”]/BatchScheduleTime return min($info)
which uses the min function, results in the maximum value. I have tried with the XPath to get the maximum value with the following Query,
max(BatchInfo[GroupID=“ssc_test”]/BatchScheduleTime)
This results in a NaN in Tamino.
I am attaching the schema(SharpStatementInfo) to test this query.
Thanks and Regards,
Ravi
SharpStatementInfo.tsd (5.22 KB)
#API-Management#webMethods-Tamino-XML-Server-APIs#webMethods