<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html" indent="yes" />


  <xsl:template match="rss">
      <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;</xsl:text>
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head><title>RSS->HTML</title>
      
	<style type="text/css">
		  .body {
			  margin: 1em;
			  border: solid black 1px;
		  }		  
		  a {
		          display: inline;
		  }
	
	
          .item { 
          	border:	  solid black 1px;
          	padding:	  0.5em 1em;
          }
          
          .title {
          	color:              	black;
          	background-color:   	orange;
          	padding: 		1em;
          	margin: 	    	0em;
          	border:	  		dashed black 3px;
          }
          
          .product_title, .product_subtitle {
          	padding-left: 		0em;
          	font-size:	    	2.5em; 
          }
          
          .product_subtitle {
          	padding-left: 		0.2em;
          	font-size:	    	1.2em; 
          }
          
          .product_credit {
          	display: 		block;
          	font-size:	    	1em; 
          	clear: 			left;
          }
          
          .channelHeader {
            color:              black;
          	background-color:   orange;
          	padding:	    0.5em;
          	font-size:	    12pt; 
          	border:		    solid black 1px;
          	padding:	    0.5em 1em;
          }
	</style>
    </head>
    <body>
	
        <div class="body">
	     <xsl:apply-templates select="channel"/>
	</div>
      </body>
    </html>       
  </xsl:template>

  <xsl:template match="rss/channel">       
       <div class="site">
	     <xsl:apply-templates select="channel"/>
	    	
       </div>
  </xsl:template>

  <xsl:template match="rss/channel">       
       <div class="channelHeader">
           <a href="{link}"><xsl:value-of select = "title" /></a>
           <xsl:text> </xsl:text><xsl:value-of disable-output-escaping="yes" select="description" />
           <div class="items">
		       <xsl:apply-templates select="item"/>
		</div>
       </div>
  </xsl:template>

  <xsl:template match="item">       
       <div class="item" >
              <a href="{link}"><xsl:value-of select = "title" /></a>
	      <xsl:text> </xsl:text><xsl:value-of disable-output-escaping="yes" select="description" />
       </div>
  </xsl:template>
</xsl:stylesheet>













