This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Testing using XPath


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]