xsl-list
[Top] [All Lists]

Re: How to find the deepest node?

2005-04-07 14:00:41

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>