<?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:output method="xml" indent="yes" encoding="UTF-8"/>

<xsl:variable name="localPath" select="resolve-uri('',document-uri(/))" />
<xsl:template match="/">
<map version="0.8.0">
 <node TEXT="OpenLearn Unit links" LINK="http://ouseful.info" >
 <xsl:for-each select="//a">
		<node>
			<xsl:attribute name="TEXT">
				<!-- link name -->
				<xsl:value-of select="." />
			</xsl:attribute>

			<xsl:attribute name="LINK">
				<!-- link URL -->
				<xsl:value-of select="@href"/>
			</xsl:attribute>
		</node>
 </xsl:for-each>
 </node>
</map>
</xsl:template>

</xsl:stylesheet>
