<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="rss xsl dc" 
xmlns:rss="http://purl.org/rss/1.0/" 
xmlns:dc="http://purl.org/dc/elements/1.1/" 
version="1.0">

<xsl:output method="xml" omit-xml-declaration="no" encoding="ISO-8859-1" />


  <xsl:template match="/">
   <html>
   <head>
	<link  rel="StyleSheet" href="/appro2003.css" type="text/css" />
    <title><xsl:apply-templates select="/rss:channel/rss:title" /></title>
   </head>
   <body>
   <div class="main">
     <xsl:apply-templates />
   </div>
   </body>
   </html>
  </xsl:template>

<xsl:template match="rss:channel">
    <h1><xsl:apply-templates select="rss:title" /></h1>
<p>
<xsl:apply-templates select="rss:description" />
</p>
<p>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:apply-templates select="rss:link" />
</xsl:attribute>
<xsl:attribute name="class">url</xsl:attribute>
<xsl:apply-templates select="rss:link" />
</xsl:element>
</p>
<p>Päivitetty:<xsl:apply-templates select="dc:date" /></p>
<p><xsl:apply-templates select="dc:rights" /></p>
</xsl:template>

<xsl:template match="rss:item">
<div class="rss">
     
<h2>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:apply-templates select="rss:link" />
</xsl:attribute>
<xsl:apply-templates select="rss:title" />
</xsl:element>
</h2>
<p><xsl:apply-templates select="rss:description" /></p>
     
<p>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:apply-templates select="rss:link" />
</xsl:attribute>
<xsl:attribute name="class">url</xsl:attribute>
<xsl:apply-templates select="rss:link" />
</xsl:element>
</p>
<p><xsl:apply-templates select="dc:date" /></p>
</div>



  </xsl:template>


</xsl:stylesheet>
