Mia: komplzierte (!?) Abfrage

Beitrag lesen

Hallo dey,

<all_games>
<game gid="4" match="Hallenturnier in Floersheim" yy="05" mm="01" dd="15">
  <result>7. Platz</result>
  <report_h>- 7. Platz -</report_h>
  <all_players>
   <player name="Spieler1">
   <goals>3</goals><goalkee></goalkee>
   </player>

<player name="Spieler">
   <goals>0</goals><goalkee></goalkee>
   </player>

<xsl:for-each select="//all_games/game/all_players/player[@name = $name]">

Wenn du zum Beispiel an result kommen möchtest, müsste
<xsl:value-of select="ancestor::result"/>
zum gewünschten Ergebnis führen.
Für die Attribute aus game so etwas wie
<xsl:value-of select="ancestor::game[@...]"/>

Gruß Mia