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.  unknown function: contains

    Posted Thu August 28, 2003 01:15 PM

    Hi,

    how to make a xquery with a request for a string contains an other string?

    i tried

     for $x in input()/list where contains($x/entry, "book 1") return $x 

    without any result. Tamino throws access failure (INOXQE6358, Function unknown, Function: contains).

    same thing with function ‘text-contains’.


    What namespace i’d have to declare or what to do basicly to search for a part of a string.


    Regards,

    Bastian Gorke


    X-Application Version: 4.1.1
    Tamino Version : 4.1.4.1
    Platform : Linux
    WebContainer : Tomcat 4.1.18, Struts
    JDK Version : 1.4.1_02-b06


    #webMethods
    #Tamino
    #API-Management


  • 2.  RE: unknown function: contains

    Posted Thu August 28, 2003 03:18 PM

    Hello,

    I had a look into the Tamino documentation. There is a reference for XQuery

    …/Documentation/xqueryref/xqr-functions-toc-alpha.htm#xqr-functions-toc-alpha

    with a chapter about implemented function. The XPath method ‘contains’ is not listed. There is only ‘xs:starts-with’ mentioned. However, there is a method ‘tf:containsText’.

    Perhaps, this method helps you to implement your query.

    Bye,
    Christian.


    #webMethods
    #Tamino
    #API-Management