i have a xml-document like:
<elem name="1">
<elem name="1.1">
<elem name="1.1.1">
...
etc.
Problem: the depth is NOT known.
I want a list with all ancestors of the 'deepest' elem-element.
Something like
ancestor::elem[descendant::elem[position()=last()]]
does not work????
thanks
Ronald
<elem name="1">
<elem name="1.1">
<elem name="1.1.1">
...
etc.
Problem: the depth is NOT known.
I want a list with all ancestors of the 'deepest' elem-element.
Something like
ancestor::elem[descendant::elem[position()=last()]]
does not work????
thanks
Ronald