This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Complex Path Checking
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Complex Path Checking
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 4 Aug 2000 00:04:27 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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