<?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" omit-xml-declaration="no" />
<xsl:variable name="localPath" select="resolve-uri('',document-uri(/))" />
<xsl:template match="/">
<rss version="2.0">
  <channel>
    <title>Course Links</title>
    <link>http://ouseful.info/</link>
    <url>http://ouseful.info/</url>

 <xsl:for-each select="//a">
  <xsl:variable name="URL"><xsl:value-of select="@href"/></xsl:variable>
  <item>
   <title><xsl:value-of select="." /></title>
   <link><xsl:value-of select="@href"/></link>
  </item>
 
 </xsl:for-each>
</channel>

</rss>
</xsl:template>

</xsl:stylesheet>
