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.  Support for 'contains()' function

    Posted Wed November 26, 2003 01:43 PM

    Hi

    Does Tamino support the ‘contains()’ function when using xquery?

    I am trying

     for $x in input()/DesignationCode[contains(/DesignationCode,'Analyst')] return $x </pre> but receive the error <pre class="ip-ubbcode-code-pre"> <ino:message ino:returnvalue="6358">
    <ino:messagetext ino:code="INOXQE6358">Function unknown</ino:messagetext> 
    <ino:messageline>Function: contains</ino:messageline> 
    </ino:message> 



    Thanks
    Elsabe Jacobs


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: Support for 'contains()' function

    Posted Wed November 26, 2003 02:41 PM

    Hello Elsabe,

    The function contains() is not implemented but there is the tf:containsText() function which may provide the functionality you need. For example:-

      
    declare namespace tf="http://namespaces.softwareag.com/tamino/TaminoFunction"
    input()/DesignationCode
    where tf:containsText($x/somespecificnode, 'Analyst')
    return $x



    For more information please refer to Tamino documentation. Hope this helps.

    Stuart Fyffe-Collins
    Software AG (UK) Ltd.


    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: Support for 'contains()' function

    Posted Wed November 26, 2003 03:12 PM

    Elsabe,

    Stuart is right, use tf:containsText instead. xf:contains will be available with the next Tamino Version, release to be in Q2 2004

    regards,

    Timm


    #Tamino
    #API-Management
    #webMethods