<xsl:transform version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:lm="http://www.nokia.com/schemas/location/landmarks/1/0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <xsl:output method="xml" encoding='utf-8' indent='yes'/>

  <xsl:template match="loc">
    <lm:lmx xsi:schemaLocation="http://www.nokia.com/schemas/location/landmarks/1/0 lmx.xsd">
      <lm:landmarkCollection>
	<xsl:apply-templates select="waypoint"/>
      </lm:landmarkCollection>
    </lm:lmx>
  </xsl:template>

  <xsl:template match="waypoint">
    <lm:landmark>
      <lm:name>
	<xsl:value-of select="name"/>
      </lm:name>
      <lm:coordinates>
	<lm:latitude><xsl:value-of select="coord/@lat"/></lm:latitude>
	<lm:longitude><xsl:value-of select="coord/@lon"/></lm:longitude>
      </lm:coordinates>
    </lm:landmark>
  </xsl:template>

</xsl:transform>
