Tamino XQuery Axis Support

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

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

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

Hi Ryan,

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

Regards

Harald