[xsl] preceding-sibling including previous node

Subject: [xsl] preceding-sibling including previous node
From: ADAM PATRICK <adampatrick@xxxxxxxxxxxxxx>
Date: Mon, 28 Nov 2005 14:47:27 +0000 (GMT)
xslt 1.0 xpath 1.0

<xsl:template
mact="animals[preceding-sibling::animals[contains(.'pig')]]">

With the above how would you:

Select all preceding-siblings where node text contains
pig including the line that contains pig.

Is there something you can do with position?

Current Thread