[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member