<!-- ======================================================================= -->
<!-- created by Tangarena Engineering AG, Luzern, www.tangarena.ch, 2004     -->
<!-- feel free to copy it and change it                                      -->
<!-- ======================================================================= -->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   
	<xsl:template match="rss">
		<html>
		   <xsl:apply-templates select="channel"/>
		</html>
	</xsl:template>

	<xsl:template match="channel">
	   <head>
	   <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
			<style>
			   body        {font-family: "Verdana", sans-serif;}
			   div.channel {font-size:12pt; margin:10px 10px 10px 10px;}
				div.item    {font-size:10pt; margin-top:20px; margin-left:20px;}
				a           {color:gray;}
				div.comment {font-size:10pt; color:gray; 
				             margin: 10px 10px 10px 10px;
				             padding:0px 0px 10px 10px;
								 border: 1pt solid red
								 }
			</style>
	   	<title><xsl:value-of select="title"/></title>
	   </head>
	   
	 	<body>
		   <xsl:apply-templates select="/rss/comment()"/>
	 		<div class="channel">
		 		<b><xsl:value-of select="title"/></b>
		 		<p>
		   	<xsl:apply-templates select="image" /><br/>
			   <xsl:apply-templates select="link"/><br/>
		 		<xsl:value-of select="description" />
		 		</p>
		   	<xsl:apply-templates select="item" />
			</div>
	 	</body>
	</xsl:template>
	
	<xsl:template match="item">
	 	<div class="item">
	   	<b><xsl:value-of select="title"/></b><br/>
		   <xsl:apply-templates select="link"/><br/>
	 		<xsl:value-of select="description"/>
	 	</div>
	</xsl:template>

	<xsl:template match="link">
   	<a>
			<xsl:attribute name="href">
				<xsl:value-of select="."/>
			</xsl:attribute>
	   	<xsl:value-of select="."/>
   	</a>
	</xsl:template>

	<xsl:template match="image">
   	<a>
			<xsl:attribute name="href">
				<xsl:value-of select="link"/>
			</xsl:attribute>
	   	<img border="0" >
				<xsl:attribute name="src">
					<xsl:value-of select="url"/>
				</xsl:attribute>
				<xsl:attribute name="alt">
					<xsl:value-of select="title"/>
				</xsl:attribute>
				<xsl:attribute name="title">
					<xsl:value-of select="description"/>
				</xsl:attribute>
				<xsl:attribute name="width">
					<xsl:value-of select="width"/>
				</xsl:attribute>
				<xsl:attribute name="height">
					<xsl:value-of select="height"/>
				</xsl:attribute>
	   	</img>
   	</a>
	</xsl:template>

	<xsl:template match="rss/comment()">
		<div class="comment">
<pre>			
<xsl:value-of select="."/>
</pre>
		</div>
	</xsl:template>
<!--	
  <xsl:template match="*|@*|comment()|text()|processing-instruction()">
    <xsl:copy>
      <xsl:apply-templates select="*|@*|comment()|text()|processing-instruction()"/>
    </xsl:copy>
  </xsl:template>
-->
</xsl:stylesheet>




