Hallo,
Habe mir selbst geholfen!
<xsl:for-each select="//all_games/game/all_players/player[@name = $name]">
<xsl:for-each select="ancestor::game">
<br/><xsl:value-of select="@match"/> <xsl:value-of select="result"/><br/>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="/all_games/game[all_players/player[@name = $name]]">
<br/><xsl:value-of select="@match"/> <xsl:value-of select="result"/><br/>
</xsl:for-each>
oder
<xsl:key name="spieler" match="game" use="all_players/player/@name" />
<xsl:for-each select="/all_games/game[key('spieler', $name)]">
<br/><xsl:value-of select="@match"/> <xsl:value-of select="result"/><br/>
</xsl:for-each>
Grüße
Thomas