XML schema |
http://dd.eionet.eu.int/GetSchema?id=TBL3243
|
---|---|
Output type | KML |
Description | Google Earth .kml file |
XSL file | dd3243-to-kml.xslt (Last modified: 30 Jun 2006 13:08 ) |
<?xml version="1.0" encoding="UTF-8"?> <!-- Generate KML 2.0 --> <xsl:stylesheet exclude-result-prefixes="dd10 dd131" xmlns="http://earth.google.com/kml/2.0" xmlns:dd10="http://dd.eionet.eu.int/namespace.jsp?ns_id=10" xmlns:dd131="http://dd.eionet.eu.int/namespace.jsp?ns_id=131" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" omit-xml-declaration="no"/> <xsl:template match="dd10:Stations"> <kml xmlns="http://earth.google.com/kml/2.0"> <Document> <name>Eionet-Water: Rivers - Stations(</name> <description>River quality (EWN-1) stations in Europe</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="dd10:Row"> <Placemark> <name> <xsl:value-of select="dd131:NationalStationID"/> - <xsl:value-of select="dd131:WaterbaseName"/> </name> <description> <xsl:apply-templates /> </description> <open>0</open> <styleUrl>#station</styleUrl> <Point> <coordinates><xsl:value-of select="dd131:AllLongitude"/>,<xsl:value-of select="dd131:AllLatitude"/></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