As the matter of fact, I have checked out some similar process I have
working, and noticed I was missing a number() function.The indices must
be cast to number before being able to iterate,
so:/process_data/@fooCount =
count(/process_data/xmlVar/routes/route[number(/process_data/@routesCounter)]/elements/foo)works
fine.Anyway, the intermediate XML var tip was useful too.Thank you.