This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Testing using XPath
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Testing using XPath
- From: Oleg Tkachenko <olegt at multiconn dot com>
- Date: Thu, 06 Sep 2001 16:36:06 +0200
- Organization: Multiconn International
- References: <6B7D48F33E62D511AE0900B0D0E1BB49020867@erato>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Stuart Brown wrote:
> I'm not too familiar with XPath, and cannot work out how to construct the
> following.
>
> With this XML:
>
> <element1>
> <blah/>
> <blah/>
> <element2/>
> </element1>
> <element3/>
>
> How can I test from with the current node as element2, whether its parent's
> following-sibling[1] is element3?
../following-sibling::*[1]/self::element3
--
Oleg Tkachenko
Multiconn International
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list