Hi,
In order to join the documents via the attributes ?idref? and ?id? you have to rewrite your join predicate:
for $a in input()/entity
where tf:getInoId($a) = 2
return
for $b in input()/ENTITY
where $b/@id = $a/SUBCLASS-OF/@idref
return
$b
Be sure that you have defined a standard index on the ?idref? attribute. Otherwise you will run into performance problems.
Best Regards,
Thorsten Fiebig
#webMethods#Tamino#API-Management