<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:rdf="http://realPrefixRemovedForThisDemo.org#"
    xmlns:rss="http://purl.org/rss/1.0/"
    xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="rdf rss">
    <xsl:template match="/">
        <html>
            <head>
                <title>
                    <xsl:value-of select="rdf:RDF/rss:channel/rss:title"/>
                </title>
            </head>
            <body>
                <xsl:apply-templates select="rdf:RDF/rss:channel"/>
            </body>
        </html>
    </xsl:template>
    <xsl:template match="rss:channel">
        <div class="channel" id="planet">
	    <h1>
              <xsl:apply-templates select="rss:title"/>
	      .... Get it! 
              <xsl:apply-templates select="rss:link"/>
	    </h1>
              <xsl:apply-templates select="rss:description"/>

	                <table border='1'>
                <xsl:apply-templates select="/rdf:RDF/rss:item"/>
            </table>
        </div>
    </xsl:template>

    <!-- deal with attributes of <channel> -->
    <xsl:template match="rss:channel/rss:title">
            <xsl:value-of select="."/>
    </xsl:template>
    <xsl:template match="rss:link">
        <a href="{.}">
            <img alt="RSS channel" src="feed-icon-24x24.png"/>
        </a>
    </xsl:template>
    <xsl:template match="rss:channel/rss:description">
        <p class="description">
            <xsl:value-of select="."/>
        </p>
    </xsl:template>

    <!-- deal with each <item> -->
    <xsl:template match="rss:item">
        <tr>
                <xsl:apply-templates select="rss:title"/>
                <xsl:apply-templates select="rss:description"/>
        </tr>
    </xsl:template>
    <xsl:template match="rss:item/rss:title">
        <td>
            <a href="{../rss:link}">
                <xsl:value-of select="."/>
            </a>
        </td>
    </xsl:template>
    <xsl:template match="rss:item/rss:description">
        <td>
            <xsl:value-of select="."/>
        </td>
    </xsl:template>




</xsl:stylesheet>

