<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" omit-xml-declaration="yes" encoding="iso-8859-1"/>
	
	<xsl:template match="/">
		<xsl:apply-templates select="//rss/*"/>
	</xsl:template>
	
	<xsl:template match="channel">
		<table border="0" class="RSS" cellpadding="0" cellspacing="0">
			<tr class="RSS">
				<td class="RSS"><img src="#CONTEXT_NAME#/com/img/feed.png" style="border:0px;" alt="img_rss_feeds" title="feed rss" /></td>
				<td class="RSS titolo"><nobr>&#160;<xsl:value-of select="title"/></nobr></td>
			</tr>
			<xsl:for-each select="//item">	
				<xsl:if test="not(position()>3)">
					<xsl:apply-templates select="."/>
				</xsl:if>				
			</xsl:for-each>				
		</table>
	</xsl:template>
	
	<xsl:template match="item">
		<tr class="RSS">
			<td align="right"><img src="#CONTEXT_NAME#/com/img/arrow_right.png" style="border:0px;" alt="img_rss_feed" /></td>
			<td class="RSS">
				<nobr>
				&#160;
				<xsl:element name="a">
					<xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
					<xsl:attribute name="target">_blank</xsl:attribute>
					<xsl:attribute name="title"><xsl:value-of select="title"/></xsl:attribute>
					<xsl:value-of select="substring(pubDate, 0, string-length(pubDate) - 6)"/>&#160;-&#160;<xsl:value-of select="substring(title, 0, 80)"/> ...
				</xsl:element>
					
				</nobr>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>