| XML schema |
http://water.eionet.europa.eu/schemas/dir200060ec/GWB_3p0.xsd
|
|---|---|
| Output type | KML |
| Description | Show stations in Google Earth |
| XSL file | gwbody-to-kml_1p0.xsl (Last modified: 09 Sep 2009 20:42 ) |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Generate KML 2.0
-->
<xsl:stylesheet xmlns="http://earth.google.com/kml/2.0" xmlns:wise="http://water.eionet.europa.eu/schemas/dir200060ec" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" omit-xml-declaration="no"/>
<xsl:template match="wise:GroundWaterBodies">
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<name>Groundwater bodies</name>
<description>Groundwater bodies in Europe</description>
<Style id="facility">
<IconStyle>
<scale>1.0</scale>
<Icon>
<href>root://icons/palette-4.png</href>
<x>32</x>
<y>128</y>
<w>32</w>
<h>32</h>
</Icon>
</IconStyle>
<LabelStyle>
<scale>1.0</scale>
</LabelStyle>
</Style>
<xsl:apply-templates select="wise:GroundWaterBody">
<xsl:sort select="wise:GWB_NAME"/>
</xsl:apply-templates>
</Document>
</kml>
</xsl:template>
<xsl:template match="wise:GroundWaterBody">
<Placemark>
<name>
<xsl:value-of select="wise:GWB_NAME"/>
</name>
<description>
<xsl:apply-templates/>
</description>
<open>0</open>
<styleUrl>#facility</styleUrl>
<Point>
<coordinates><xsl:value-of select="wise:LON"/>,<xsl:value-of select="wise:LAT"/></coordinates>
</Point>
</Placemark>
</xsl:template>
<xsl:template match="wise:EUGroundWaterBodyCode|wise:GWB_MS_CD|wise:WELL_OR_SPRING|wise:URL">
<xsl:value-of select="local-name()"/>: <xsl:value-of select="."/><xsl:text><br/></xsl:text>
</xsl:template>
<xsl:template match="*"/>
</xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark