webMethods

webMethods

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.

 View Only
Expand all | Collapse all

Tamino Implementation of the XQuery

  • 1.  Tamino Implementation of the XQuery

    Posted Fri June 06, 2003 07:48 PM

    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


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Tamino Implementation of the XQuery

    Posted Fri June 06, 2003 08:46 PM

    Hello Ravi,

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

    Greetings,
    Trevor.


    #webMethods
    #Tamino
    #API-Management