This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: ancestor counting
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: ancestor counting
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 22 Sep 2000 13:55:57 +0100
- Reply-To: xsl-list at mulberrytech dot com
> So actually I want to know how many ancestors the branch has got.
count(ancestor::*) to give all the ancestor elements
count(ancestor::branch) to give all the ancestor branch elements
count(ancestor::node()) to give all the ancestor nodes, including the root
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list