<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0" >
    <xsl:template match="/">
        <html>
            <head>
                <title>
                    <xsl:value-of select="RDF/channel/title"/>
                </title>
            </head>
            <body>
	        <p>This page made with XSLT - and more templates! </p> <!-- test message -->
                <xsl:apply-templates select="RDF/channel"/>
            </body>
        </html>
    </xsl:template>
    <xsl:template match="channel">
        <div class="channel" id="planet">
            <xsl:apply-templates select="title" />
            <xsl:apply-templates select="description" />
	    <a href="{link}">
               <img alt="RSS channel" src="feed-icon-24x24.png"/>
            </a>
        </div>
    </xsl:template>

    <xsl:template match="title">
        <h1>
            <xsl:value-of select="."/>
        </h1>
    </xsl:template>

    <!-- match with absolute path. match="description" also works -->
    <xsl:template match="/RDF/channel/description">
        <p class="description">
            <xsl:value-of select="."/>
        </p>
    </xsl:template>
</xsl:stylesheet>

