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.  Tamino XQuery Axis Support

    Posted Fri March 31, 2006 04:44 PM

    Hi,
    I am trying to use an XQuery with the ancestor-or-self axis, which doesn’t work! I have also tried ancestor, but to no avail. My XQuery is as follows

    let $allFinancialPoints := input()/financialHierarchy//*[count(ancestor-or-self::*[@deleted = true()]) = 0]/@id
    for $pea in input()/pea
    [deleteDetails/deletedFlag != true()]
    [currentStatus/status = 'raised']
    [profitCenter/facilityName]
    [not(profitCenter/facilityID = $allFinancialPoints)]
    return
    <pea-details>{ $pea/id, $pea//profitCenter }</pea-details>

    This started me thinking about other axis support. I tried them out, some worked, but the ones listed here didn’t:

    • ancestor
      ancestor-or-self
      following
      following-sibling
      preceding
      preceding-sibling

    I’m using Tamino 4.4, which I believe is the current release. Does Tamino support these?

    • If not is there any timescale for support?
      If so, where am I going wrong

    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: Tamino XQuery Axis Support

    Posted Fri March 31, 2006 04:51 PM

    Hi,

    yes, Tamino 4.4. is the current release. The supported axis are listed in the documentation: …\Program Files\Software AG\Tamino\Tamino 4.4.1.1\Documentation\en\xqueryref\ref-Axis.htm
    Here you see that the ancestor axis is available, and in fact it works.

    The next version of Tamino will support the full XQuery standard (if it is a standard by then, currently it’s not)

    Regards

    Harald


    #Tamino
    #API-Management
    #webMethods


  • 3.  RE: Tamino XQuery Axis Support

    Posted Fri March 31, 2006 05:07 PM

    Harald,
    I just tested it again on my PC and on a collegues, but it shows red in the xplorer and gives an error, yet when we remove the ancestor-or-self axis, it says its a valid xquery.

    I’ve checked the tools and they are 4.4.1.1 along with all the databases

    Any ideas what the problem could be?

    Ryan


    #webMethods
    #Tamino
    #API-Management


  • 4.  RE: Tamino XQuery Axis Support

    Posted Fri March 31, 2006 05:21 PM

    Hi Ryan,

    ancestor is supported, but not ancestor-or-self.

    Regards

    Harald


    #Tamino
    #API-Management
    #webMethods