This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Not So Newbie XPath Question
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Not So Newbie XPath Question
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 19 Feb 2001 20:35:00 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Is the following the most reasonable way to do it?
>
> z/*[preceding-sibling::a and not(self::a)][position() = 1]
>
> I have tested it and it seems to be ok.
It looks OK to me. An alternative is
z/a/following-sibling::*[not(self::a)][1]
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list