| XML schema |
http://dd.eionet.europa.eu/GetSchema?id=TBL4949
|
|---|---|
| Output type | KML |
| Description | Show stations in Google Earth |
| XSL file | dd4949-to-kml.xsl (Last modified: 27 Jun 2008 08:45 ) |
<?xml version="1.0" encoding="UTF-8"?>
<!--
Generate KML 2.0
-->
<xsl:stylesheet xmlns="http://earth.google.com/kml/2.0"
xmlns:dd485="http://dd.eionet.europa.eu/namespace.jsp?ns_id=485"
xmlns:dd488="http://dd.eionet.europa.eu/namespace.jsp?ns_id=488"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="dd485 dd488" version="1.0">
<xsl:output method="xml" omit-xml-declaration="no"/>
<xsl:template match="dd485:NiD_SW_Stat">
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<name>NiD: Surface Water - Stations</name>
<description>Information on the surface water monitoring stations used to report water quality data under the Nitrates Directive. </description>
<Style id="station">
<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/>
</Document>
</kml>
</xsl:template>
<xsl:template match="dd485:Row">
<Placemark>
<name><xsl:value-of select="dd488:ND_NatStatCode"/> - <xsl:value-of select="dd488:ND_NatStatName"/></name>
<description>
<xsl:apply-templates/>
</description>
<open>0</open>
<styleUrl>#station</styleUrl>
<Point>
<coordinates><xsl:value-of select="dd488:Longitude"/>,<xsl:value-of select="dd488:Latitude"/></coordinates>
</Point>
</Placemark>
</xsl:template>
<xsl:template match="*"><xsl:value-of select="local-name()"/>: <xsl:value-of select="."/><xsl:text><br/></xsl:text></xsl:template>
</xsl:stylesheet>
European Environment Agency
Kgs. Nytorv 6, DK-1050 Copenhagen K, Denmark