"Remi COCULA" <> wrote in message
news:brq8ek$201$...
> Please help me find a XPATH expression.
>
> I'm searching to locate all preceding "cousin" nodes of a context element
> node of type foo.
> (cousin = nodes with same grandfather).
>
> The expression '../../descendant::foo' gives me all foo nodes with the
same
> grandfather of the courant node.
> But I don't know how to get only the ones preceding the courant node.
Use:
preceding-sibling::foo | ../preceding-sibling::*/foo
Dimitre Novatchev.
FXSL developer, XML Insider,
http://fxsl.sourceforge.net/ -- the home of FXSL
Resume:
http://fxsl.sf.net/DNovatchev/Resume/Res.html