<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output omit-xml-declaration="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>

  <xsl:template match="/rss/channel">
	<html>
		<head>
		<title><xsl:value-of select="./title" disable-output-escaping="yes" /> - <xsl:value-of select="./item[1]/pubDate" /></title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="robots" content="index,follow" />
		<link rel="stylesheet" href="http://www.3klicks.de/Stylesheets/qlik-business-card.css" type="text/css" />
		</head>
		<body>
			<div class="mc">
				<h1><xsl:value-of select="./title" disable-output-escaping="yes" /> - <xsl:value-of select="./item[1]/pubDate" /></h1>
				<xsl:apply-templates select="./item" mode="newslist" />
			</div>
		</body>
	</html>
  </xsl:template>
  
  <xsl:template match="item" mode="newslist">
	        
		<div class="sn">
			<xsl:if test="(position() mod 2)=0"><xsl:attribute name="style">background-color:#d3e4f5;</xsl:attribute></xsl:if>
			<h1><a href="{./link}"><xsl:value-of select="./title" disable-output-escaping="yes" /></a></h1><br />
			<xsl:value-of select="./description" disable-output-escaping="yes" />
			<br /><i><xsl:value-of select="./pubDate" disable-output-escaping="yes" /></i>
		</div><br /><br /><hr /><br /><br />

  </xsl:template>

</xsl:stylesheet>
