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: Complex Path Checking


> 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

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