This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Get parent's node position - Urgent
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Get parent's node position - Urgent
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 26 Sep 2001 21:28:05 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Ok Mike, thanks a lot. Excellent!!!
> And what I would make to get a position of grand-parent??
>
select="count(parent::*/parent::*/preceding-sibling::*)"
of course.
Or you can abbreviate parent::* to ".."
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list