test.xsl:
<?xml version=\'1.0\' encoding=\"ISO-8859-1\"?>
<xsl:stylesheet xmlns:xsl=\"
http://www.w3.org/TR/WD-xsl\"><xsl:template match=\"/\">
<html>
<head>
<title>Tips</title>
</head>
<body bgcolor=\"#ffffff\" topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">
<table cellpadding=\"0\" cellspacing=\"0\" border=\"1\">
<xsl:for-each select=\"/liste/kamp\">
<tr>
<td width=\"250\"><xsl:value-of select=\".\"/></td>
<xsl:choose>
<xsl:when test=\".[@res=\'1\']\">
<td width=\"13\">1</td>
<td width=\"13\"> </td>
<td width=\"13\"> </td>
</xsl:when>
<xsl:when test=\".[@res=\'X\']\">
<td width=\"13\"> </td>
<td width=\"13\">X</td>
<td width=\"13\"> </td>
</xsl:when>
<xsl:when test=\".[@res=\'2\']\">
<td width=\"13\"> </td>
<td width=\"13\"> </td>
<td width=\"13\">2</td>
</xsl:when>
<xsl:otherwise>
<td width=\"13\"> </td>
<td width=\"13\"> </td>
<td width=\"13\"> </td>
</xsl:otherwise>
</xsl:choose>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
test.xml:
<?xml version=\"1.0\" encoding=\"ISO8859-1\" ?>
<?xml-stylesheet type=\"text/xsl\" href=\"test.xsl\"?>
<liste>
<kamp res=\"1\">AGF - FC Barcelona</kamp>
<kamp res=\"X\">Virum - FC Peru</kamp>
<kamp res=\"2\">Brøndby - Skodsborg IF</kamp>
</liste>