<?xml version="1.0" ?>
<!--
  Title: Atom 0.3 XSL Template
  Author: Lewis Moten (http://lewismoten.blogspot.com)
  Description: This sample XSLT will convert any valid Atom 0.3 feed to RSS 2.0.
-->
<xsl:stylesheet 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	version="1.0" 
	xmlns:atom="http://purl.org/atom/ns#"
	exclude-result-prefixes="atom"
	>
	<xsl:output indent="yes" method="xml" encoding="UTF-8" />
	<xsl:template match="//atom:feed">
		<rss version="2.0">
			<channel>
				<title><xsl:value-of select="atom:title"/></title>
				<link><xsl:value-of select="atom:link[@rel='alternate']/@href"/></link>
				<description><xsl:value-of select="atom:tagline"/></description>
				<generator><xsl:value-of select="atom:generator"/> <xsl:value-of select="atom:generator/@version" /> + klooze.com/atom2rss (xsl)</generator>
			</channel>
			<xsl:call-template name="items"/>
		</rss>
	</xsl:template>
	<xsl:template name="items">
		<xsl:for-each select="atom:entry">
			<item>
				<title><xsl:value-of select="atom:title"/></title>
				<link><xsl:value-of select="atom:link[@rel='alternate']/@href"/></link>
				<description><xsl:value-of select="atom:summary" /></description>
				<pubDate><xsl:value-of select="atom:issued"/></pubDate>
			</item>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>