This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xpath expression needed
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xpath expression needed
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 21 Sep 2001 08:23:06 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I want to get all the occurrences of "field1" whose first
> following-sibling
> "field2" has a value = "some". In this case it should return me 2nodes
> (except the last one, where the value would be "someother")
>
> Hope I am clear.
>
Very clear indeed!
//field1[following-sibling::field2[1]='some']
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list