RE: [xsl] Testing using XPath

Subject: RE: [xsl] Testing using XPath
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 6 Sep 2001 15:48:13 +0100
> 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?
> 
xsl:if test="../following-sibling::*[1][self::element3]"

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread