<?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">
	<h2 class="title">
		<xsl:value-of select="$TITLE"/>: 
		<xsl:value-of select="channel/title"/>
	</h2>
	<xsl:apply-templates select="channel/image"/>
	<xsl:for-each select="channel/item">
		<p class="note">
			<small>
				<a href="{link}" target="_main">
					<xsl:value-of select="title"/>
				</a>
			</small>
		</p>

		<!-- only display markup for description if it's present -->
		<xsl:value-of select="description"/>

	</xsl:for-each>
</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><small>
				<xsl:value-of select="."/>
			</small></small>
		</p>
</xsl:template>

</xsl:stylesheet>

