Subject: RE: Complex Path Checking
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 4 Aug 2000 00:04:27 +0100
|
> Now, I'm not exactly experienced when it comes to XPath. I tried the
> following, but as I already expected ;) , it didn't work.
>
> <xsl:if
> test="contains(ancestor::following-sibling::child::node(),'X')">
>
You're guessing, and guessing syntax leans to some strange expressions!
Try something like
<xsl:if test="ancestor::*/following-sibling::*/child::*[.='X']">
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|