<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" doctype-public="-//W3C//DTD XHTML 1.1//EN"/>
  <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">
      <head>
        <title>
          <xsl:value-of select="rss/channel/title"/>
          - RSS 2.0 Feed
        </title>
        <link rel="stylesheet" href="news.css" type="text/css"/>
      </head>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <div class="header">
          <h1>
            <a class="title" href="{rss/channel/link}">
              <xsl:value-of select="rss/channel/title"/></a></h1>
          <h3>
            <xsl:value-of select="rss/channel/description"/></h3>
        </div>
        <div class="content">
          <xsl:for-each select="rss/channel/item">
            <div class="item">
              <p class="small">
                <xsl:value-of select="substring(pubDate,5,18)"/>
                <xsl:choose>
                  <xsl:when test="category">
                    - 
                    <xsl:value-of select="category"/>
                  </xsl:when>
                </xsl:choose>
              </p>
              <a href="{link}">
                <xsl:value-of select="title"/></a>
            </div>
          </xsl:for-each>
        </div>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>
