<?xml version='1.0' encoding='utf-8' ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"
version="1.0">

  <xsl:output method="xml" 
    indent="yes"/>
	
<xsl:template match="node()|@*">
	<xsl:copy>
		<xsl:apply-templates select="node()|@*" />
	</xsl:copy>
</xsl:template>

<xsl:template match="Group">
<xsl:copy>
	<xsl:apply-templates select="@*"/>
	<xsl:apply-templates select="document('map.xml')/root/area[@id=current()/@id]"/>
	<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>

<xsl:template match="@id|text()"/>

</xsl:stylesheet>

