[xsl] Finding deepest node

Subject: [xsl] Finding deepest node
From: marcus <m-lists@xxxxxxxxxx>
Date: Fri, 02 Dec 2005 20:24:08 +0100
I have a structure where I for example need to do the following:

.//node[@a = 'avalue']/@id

If I get multiple hits I only want to select the node that is farthest away from the context node. How would I do this with a single xpath? Is it possible at all?

/Marcus

Current Thread