<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>

<xsl:template match="/">
	<html>
	<xsl:apply-templates select="rss/channel"/>
	</html>
</xsl:template>

<xsl:template match="channel">
	<head>
	<script type="text/javascript">
	function renderHTML() {
		var renderthese=document.getElementsByName("render");
		var i;
		for(i=0;i!=renderthese.length;++i)
			renderthese[i].innerHTML=renderthese[i].textContent;
	}
	</script>
	<title><xsl:value-of select="title"/></title>
	</head><body onLoad="renderHTML();">
	<h2><a href="{link}"><xsl:value-of select="title"/></a></h2>
	<h3><xsl:value-of select="description"/></h3>
	<i>Last built <xsl:value-of select="lastBuildDate"/></i><br/><br/>
	Don't be a browser tool!  Put this feed's URL into an <b>RSS Reader</b> and enjoy the convenience of syndication.<br/><br/>

	<xsl:apply-templates select="item"/>

	</body>
</xsl:template>

<xsl:template match="item">
	<h3><a href="{link}"><xsl:value-of select="title"/></a></h3>
	<i>Published <xsl:value-of select="pubDate"/></i><br/>
	<div name="render"><xsl:value-of select="description"/></div><br/>
</xsl:template>

</xsl:stylesheet>
