<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="tag">
		<node>
			<xsl:attribute name="name">
				<xsl:value-of select="@v" />
			</xsl:attribute>
			<xsl:attribute name="lon">
				<xsl:value-of select="parent::*/@lon" />
			</xsl:attribute>
			<xsl:attribute name="lat">
				<xsl:value-of select="parent::*/@lat" />
			</xsl:attribute>
			<xsl:attribute name="type">
				<xsl:value-of select="parent::*/tag[@k=&quot;place&quot;]/@v" />
			</xsl:attribute>
		</node>
	</xsl:template>

	<xsl:template match="/">
		<xsl:apply-templates select="osm/node/tag[@k=&quot;place&quot; and (@v=&quot;village&quot; or @v=&quot;town&quot; or @v=&quot;city&quot;)]/parent::*/tag[@k=&quot;name&quot;]" />
	</xsl:template>	
</xsl:stylesheet>


