<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes"/> <xsl:param name="TITLE"/> <xsl:template match="rss"> <a href="/portal/content/DotNetNews.aspx?tabIndex=-1">Put news on your site!</a> <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="darkblue"> <tr><td> <table width="100%" border="0" cellspacing="0" cellpadding="1"> <!-- Do not show channel image --> <xsl:for-each select="channel/item"> <tr><td> <xsl:if test="position() mod 2 = 0"> <xsl:attribute name="bgcolor">#b0c4de</xsl:attribute> </xsl:if> <a href="{link}" target="_blank"> <font size="1"> <xsl:value-of select="title"/> </font></a> <!-- only display markup for description if it's present --> <font size="1"> <xsl:value-of select="description"/> </font> </td></tr> </xsl:for-each> </table> </td></tr> </table> </xsl:template> <xsl:template match="image"> <div> <a href="{link}" title="{description}"> <img src="{url}" border="0" alt="{title}" align="right"/> </a> </div> </xsl:template> <xsl:template match="description"> <p class="note"> <small> <xsl:value-of select="."/> </small> </p> </xsl:template> </xsl:stylesheet>