Fixed it my self, for those that want to know...

add something like:
<xsl:key name='a-search' match='a' use='b' />
before the <xsl:stylesheet> element.

then the XPath is:

key('a-search', b)/c


hope that helps someone

-Martin