xsl-list
[Top] [All Lists]

Re: Deep

2003-05-08 14:47:38
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



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