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.

 View Only
  • 1.  Case insensitive search

    Posted Thu October 06, 2005 04:23 PM

    Hi,

    how do I do a case insensitive search? Obviously upper-case and lower-case are unsupported in 4.2, but what is a possible workaround?

    More precisely, I’d like to do somethink like

    where fn:upper-case($f/@name) = fn:upper-case('fooBar')
    

    Regards,

    Jochen


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: Case insensitive search

    Posted Thu October 06, 2005 04:31 PM

    you can do so by specifying a case-insensitive collation


    #Tamino
    #webMethods
    #API-Management


  • 3.  RE: Case insensitive search

    Posted Thu October 06, 2005 04:35 PM

    Thanks for the reply, Harald. Let’s extend the query:

    fn:upper-case(@name)=fn:upper-case(‘fooBar’) and
    @value=‘barFoo’

    How about that?


    #API-Management
    #Tamino
    #webMethods


  • 4.  RE: Case insensitive search

    Posted Fri October 07, 2005 11:37 AM

    Here is an example that shows how to do a case insensitive compare:

    
    for $e in (<e name="fooBar" value="BarFoo" />,
    <e name="FooBar" value="BarFoo" />,
    <e name="fooBar" value="barFoo" />,
    <e name="FooBar" value="barFoo" />)
    where compare ($e/@name, 'fooBar', "collation?strength=secondary") = 0
    and $e/@value = 'barFoo'
    return $e

    The result is:

    
    <e name="fooBar" value="barFoo"/>
    <e name="FooBar" value="barFoo"/>

    Tamino 4.4 includes support for fn:upper-case.


    #webMethods
    #API-Management
    #Tamino