[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Deep


Subject: Re: [xsl] Deep
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: 08 May 2003 22:47:38 +0100

On Thu, 2003-05-08 at 12:27, Oleg Tkachenko wrote:
> Molnar Agnes wrote:
> 
> > How can I know the deep of a node?
> Isn't it just number of ancestors?
> count(ancestor::*)

In the OP's case, count(ancestor::*)+1

///Peter



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread