IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

unique() function?

  • 1.  unique() function?

    Posted Mon December 01, 2003 10:56 PM

    I thought I remembered that W3C XQuery had a unique() function that would return a sequence identical to its arguments except with duplicate items removed, but I can’t find it in either the Tamino or W3C documentation. Is this just my imagination, or was it there and then removed, or is it there and I just can’t find it?

    (For people familiar with ADABAS/NATURAL, what I’m really looking for is the equivalent of a HISTOGRAM.)


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: unique() function?

    Posted Tue December 23, 2003 10:37 AM

    Hi Curtis,

    XQuery offers a distinct-values() function to get rid of duplicates
    in lists of atomic values. A list of nodes $nl is made unique by
    making it a path expression, for instance $nl/., but this also sorts
    it in document order. Tamino does currently not offer the
    distinct-values() function but will do so in the next version.

    Regards,
    Juliane.


    #webMethods
    #Tamino
    #API-Management