Bonjour encore besoin de vous!
j'ai besoin de la moyenne par cours mais je n'y arrive pas
après plusieurs heure que je boss là-dessus
je fais appel a vous

Voici mon code xslt!


<xsl:template match="/">

<html><body>

<table width="400" border="1">
<tr>

<th scope="col">Étudiant</th>
<th scope="col">Moyenne</th>
</tr>


<xsl:for-each select="université/étudiant">
<xsl:sort select="substring-after(nom,' ')" order="ascending"/>
<tr>
<td><xsl:value-of select="nom"/></td>
<td><xsl:value-of select="format-number(sum(cours/@note) div count(cours/@note),'###.0')" /> </td>

</tr>
</xsl:for-each>

</table>
voici mon input xml!
<université>

<étudiant>
<nom>Réjean Tremblay</nom>
<cours sigle="INF8430" note="89" />
<cours sigle="INF1030" note="69" />
<cours sigle="INF1230" note="75" />
</étudiant>
<étudiant>
<nom>Martin Lambert</nom>
<cours sigle="INF8430" note="75" />
<cours sigle="INF1030" note="72" />
<cours sigle="INF1230" note="73" />
</étudiant>
<étudiant>
<nom>Luc Alain</nom>
<cours sigle="INF9430" note="39" />
<cours sigle="INF1030" note="89" />
<cours sigle="INF1230" note="79" /></étudiant>
<étudiant><nom>Olive Saint-Amant</nom>
<cours sigle="INF8430" note="91" />
<cours sigle="INF1230" note="99" /></étudiant>

</université>
voici mon résultat du output!
Sigle Nombre d'étudiants Moyenne du cours

INF8430 3 0.0

Sigle Nombre d'étudiants Moyenne du cours

INF1030 3 0.0

Sigle Nombre d'étudiants Moyenne du cours

INF1230 4 0.0

Sigle Nombre d'étudiants Moyenne du cours

INF9430 1 0.0
et voici le output attendu!
Le tableau qui suit présente le résultat.

Sigle Nombre d'étudiants Moyenne du cours
INF8430 3 85.0
INF1030 3 76.7
INF1230 4 81.5
INF9430 1 39.0
merci encore de me donner un coup de pouce ...
en attente de vous response je continue a boss....