xquery: how to parse a recursive structure without user defi

how to parse a recursive structure without user define function (xquery)?
i use tamino 4.1.4 and my structure is like that :



toto

titi

Hi,

I do not fully understand. XQuery is not about parsing but it
involves parsing of the XML it works upon. In the example you
provide elements ‘a’ may contain other ‘a’ elements. You can,
for example, search for any a’s via ‘input()//a’. What however
is impossible without a user-defined recursive function is
to lateron find out on which level the current ‘a’ element
actually is located.

Regards,
Juliane.