The spec is still fluid in this area, and I haven’t checked exactly what’s implemented in QuiP or in Tamino 4.1, but the following gives the idea:
for $i in distinct-values(//employee/deparment/name)
return
{ for $e in //employee
where $e/department/name = $i
return $e
}
I hope this helps!
Michael Kay
#Tamino#webMethods#API-Management