Thomas J.S.: Danke

Beitrag lesen

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

--
Surftip: kennen Sie schon Pipolino's Clowntheater?
http://www.clowntheater-pipolino.net/