<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="uri:xsl">
 <xsl:template match="/">
  <HTML>
	<head>
	<title>Prova elenco link</title>
	</head>
   <BODY style="background:#99ccee">
    <h2>I link del FutaBlog [con lista di definizione <DL>]</h2>
 
      <xsl:for-each select="link/categoria">
				<xsl:apply-templates/>
      </xsl:for-each>
			
   </BODY>
  </HTML>
	
	
 </xsl:template>

 <xsl:template match="item">
 <dl>
 	<dt> 
		
	<xsl:if match=".[tipo='blog']">
	<b style="color:red">B</b> »
	  <b><xsl:value-of select="title"/></b>
	</xsl:if>
	
	<xsl:if match=".[tipo='risorsa']">
	 <b style="color:green">R</b> »
	  <b><xsl:value-of select="title"/></b>
	</xsl:if>
	
	<xsl:if match=".[tipo='altro']">
	 <b style="color:orange">?</b> »
	  <b><xsl:value-of select="title"/></b>
	</xsl:if>
	
	
	 | <a style="color:white">
	
	 <xsl:attribute name="HREF">
  <xsl:value-of select="link" />
  </xsl:attribute>
  <xsl:value-of select="link"/>
  </a>
	
	  
	 <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>
  </xsl:otherwise>
  </xsl:choose> 
	
		 
	   </dt>
	   <dd>
     <xsl:value-of select="description"/>
	   </dd>
	</dl>	 
 </xsl:template>
 
 
 
</xsl:stylesheet>