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
  • 1.  how to use w3c function exists()

    Posted Mon October 01, 2007 10:26 AM

    Hallo there,
    i tried to use the w3c exists() function to check out whether a node exists in a doc or not.

    declare namespace fn = "http://www.w3.org/2005/02/xpath-functions/"
    fn:exists(for $q in input()/user
    where $q/key/account='root' and $q/key/password='root'
    return $q)

    I became this error message: INOXQE6358: Function unknown

    Do I have the wrong namespace or
    Is this function not supported in Tamino?

    Thank u in advance,

    mz


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: how to use w3c function exists()

    Posted Tue October 02, 2007 04:42 PM

    Hi,

    please see
    http://techcommunity.softwareag.com/ecosystem/documentation/crossvision/ins441/xqueryref/xqr-functions-toc-alpha.htm#xqr-functions-toc-alpha
    for a list of supported functions.

    You can usew fn:boolean instead (make sure you use teh correct namespace. fn is predefined, so best is to leave out teh namespace declaration at all)

    Regards

    Harald


    #Tamino
    #webMethods
    #API-Management