<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" version="1.0">

	<xsl:template name="cubegmap">
		<xsl:param name="node" />
		<xsl:param name="width" />
		<xsl:param name="height" />
		<xsl:param name="noprocessonload" />
		<div class="cubegmapdiv inv" w="{$width}" h="{$height}" maplat="{$node/@lat}" maplng="{$node/@lng}" mapzoom="{$node/@zoom}">
			<xsl:if test="$noprocessonload = '1'">
				<xsl:attribute name="data-noprocessonload">1</xsl:attribute>
			</xsl:if>
			<xsl:apply-templates select="$node/m" mode="cubemapmarker" />
		</div>
	</xsl:template>

	<xsl:template match="m" mode="cubemapmarker">
		<div class="cubemapmarker" maplat="{./@lat}" maplng="{./@lng}" hover="{./@hover}" title="{./@title}"><xsl:apply-templates select="./node()"/></div>
	</xsl:template>

</xsl:stylesheet>