<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="uri:xsl">
<xsl:template match="/">
<HTML>
<head>
<title>Prova elenco link</title>
</head>
<BODY style="background:#efefef">
<h2>I link del FutaBlog [in tabella]</h2>
<div style="background:#99ccdd;padding:3px;">LEGENDA: <b style="color:red;">B</b>= Blog | <b style="color:green;">R</b>= Risorsa utile | ecc.ecc.</div><br />
<table style="border:1px solid black; background:#99ccdd;" cellpadding="5" cellspacing="5" border="1">
<xsl:for-each select="link/categoria">
<xsl:apply-templates/>
</xsl:for-each>
</table>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="item">
<tr>
<td>
<xsl:if match=".[tipo='blog']">
<b style="color:red;">B</b>
</xsl:if>
<xsl:if match=".[tipo='risorsa']">
<b style="color:green;">R</b>
</xsl:if>
<xsl:if match=".[tipo='altro']">
<b style="color:orange;">V</b>
</xsl:if>
</td>
<td>
<b><xsl:value-of select="title"/></b>
</td>
<td>
<a>
<xsl:attribute name="HREF">
<xsl:value-of select="link" />
</xsl:attribute>
<xsl:value-of select="link"/>
</a>
</td>
<td>
<xsl:choose>
<xsl:when match=".[rss='yes']">
<a>
<xsl:attribute name="HREF">
<xsl:value-of select="link_rss" />
</xsl:attribute>
<img src="xml.gif" alt="" style="border:0"/>
</a>
</xsl:when>
<xsl:otherwise> no
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:value-of select="description"/>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>