Link i tabel
Nu har jeg kigget forskellige forslag igennem, men kan simpelthen ikke få noget til at passe ind i mit eget.Jeg skal have lavet de nævnte websites fra xml til links når de bliver udskrives til hvad brugeren kan se.
XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="spil.xsl"?>
<list>
<spil>
<title>Bloodrayne 2</title>
<website>www.bloodrayne2.com</website>
</spil>
<spil>
<title>Warhammer: Mark of chaos</title>
<website>-</website>
</spil>
</list>
XSL:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<html>
<body bgcolor="#212831">
<table align="center" border="0">
<tr align="left" bgcolor="#21385a" style="color: rgb(255, 255, 255);">
<th>TITEL</th>
<th>WEBSIDE</th>
</tr>
<xsl:for-each select="list/spil">
<tr>
<td bgcolor="#E7E7EF"><xsl:value-of select="title"/></td>
<td bgcolor="#E7E7EF"><xsl:value-of select="website"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
