Re: [xsl] How to find the deepest node?

Subject: Re: [xsl] How to find the deepest node?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 8 Apr 2005 07:00:41 +1000
> Using FXSL, one will write something as the following:


Or, as a single XPath 2.0 expression:

     //*[not(*)][count(ancestor::node()) 
                  = 
                    max(//*[not(*)]/count(ancestor::node()))
                    ]


Cheers,
Dimitre Novatchev

Current Thread