Sam Prokop schrieb am 15.02.2010 um 11:41:21 (+0100): > I wasn´t aware that compare in Xpath compares to any preceding nodes > not only the first one.
But of course nothing stops you from going preceding::CCC[1] if that's what you want - the preceding-axis in in reverse document order, so [1] will get the closest node to the context node. -- Michael Ludwig