Source de foot2svg.xsl
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0">
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD SVG 20010904//EN" doctype-system="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" />
<xsl:template match="/CHAMPIONNAT">
</xsl:stylesheet><xsl:variable name="nb_victoires" select="count(//RENCONTRE[@SCORED > @SCOREE])" />
<xsl:variable name="y_victoires" select="380 - $nb_victoires" />
<xsl:variable name="nb_defaites" select="count(//RENCONTRE[@SCORED < @SCOREE])" />
<xsl:variable name="y_defaites" select="380 - $nb_defaites" />
<xsl:variable name="nb_nuls" select="count(//RENCONTRE[@SCORED = @SCOREE])" />
<xsl:variable name="y_nuls" select="380 - $nb_nuls" />
<svg version="1.1" width="400" height="400">
</xsl:template><title>Statistiques sur les conclusions des rencontres</title>
<desc>Statistiques sur les conclusions des rencontres.</desc>
<rect x="0" y="0" width="400" height="400" fill="#CCFFFF" stroke="black" stroke-width="2" />
<text x="200" y="60" style="text-anchor:middle; fill:#CC33FF; font-size:25; font-weight:bold;">
Statistiques sur les conclusions
</text>
<text x="200" y="100" style="text-anchor:middle; fill:#CC33FF; font-size:25; font-weight:bold;">
des rencontres
</text>
<rect x="60" y="{$y_victoires}" width="30" height="{$nb_victoires}" fill="#FFFF00" stroke="black" stroke-width="1" />
<rect x="185" y="{$y_defaites}" width="30" height="{$nb_defaites}" fill="#00FFFF" stroke="black" stroke-width="1" />
<rect x="315" y="{$y_nuls}" width="30" height="{$nb_nuls}" fill="#FF00FF" stroke="black" stroke-width="1" />
<text x="75" y="{$y_victoires - 10}" style="text-anchor:middle;">à domicile</text>
<text x="75" y="{$y_victoires - 25}" style="text-anchor:middle;">de l'équipe</text>
<text x="75" y="{$y_victoires - 40}" style="text-anchor:middle;">Victoires</text>
<text x="200" y="{$y_defaites - 10}" style="text-anchor:middle;">à domicile</text>
<text x="200" y="{$y_defaites - 25}" style="text-anchor:middle;">de l'équipe</text>
<text x="200" y="{$y_defaites - 40}" style="text-anchor:middle;">Défaites</text>
<text x="330" y="{$y_nuls - 10}" style="text-anchor:middle;">Matches nuls</text>
</svg>