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: Not So Newbie XPath Question


> Is the following the most reasonable way to do it?
> 
> z/*[preceding-sibling::a and not(self::a)][position() = 1]
> 
> I have tested it and it seems to be ok. 

It looks OK to me. An alternative is

z/a/following-sibling::*[not(self::a)][1]

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]