Tamino Implementation of the XQuery

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.

Thanks and Regards,
Ravi

Hello Ravi,

I posted a reply to this topic in the Tamino API for Java Forum: here

Greetings,
Trevor.