<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns="http://earth.google.com/kml/2.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" />
	<xsl:template match="/">
		<kml>
			<Document>
				<name>
					Spreadsheets name
				</name>
				<StyleMap id="default">
					<Pair>
						<key>normal</key>
						<styleUrl>flatfile://kh.google.com:80/styles/#15899:Class 3 - initial (site) (normal)</styleUrl>
					</Pair>
					<Pair>
						<key>highlight</key>
						<styleUrl>flatfile://kh.google.com:80/styles/#15899:Class 3 - initial (site) (highlight)</styleUrl>
					</Pair>
				</StyleMap>
				<Style id="15899:Class 3 - initial (site) (highlight)">
					<IconStyle>
						<Icon>
							<href>http://kh.google.com:80/flatfile?lf-0-icons/airports_new_nh.png</href>
							<y>32</y>
							<w>32</w>
							<h>32</h>
						</Icon>
					</IconStyle>
					<LabelStyle></LabelStyle>
					<LineStyle>
						<antialias>0</antialias>
					</LineStyle>
					<PolyStyle>
						<fill>0</fill>
						<outline>0</outline>
					</PolyStyle>
				</Style>
				<Style id="15899:Class 3 - initial (site) (normal)">
					<IconStyle>
						<scale>0.9</scale>
						<Icon>
							<href>http://kh.google.com:80/flatfile?lf-0-icons/airports_new_nh.png</href>
							<w>32</w>
							<h>32</h>
						</Icon>
					</IconStyle>
					<LabelStyle>
						<scale>0</scale>
					</LabelStyle>
					<LineStyle>
						<antialias>0</antialias>
					</LineStyle>
					<PolyStyle>
						<fill>0</fill>
						<outline>0</outline>
					</PolyStyle>
				</Style>
				<xsl:apply-templates />
			</Document>
		</kml>
	</xsl:template>
	<xsl:template match="sheet">
		<xsl:for-each select="row[@row >= 2]">
			<Placemark>
				<Snippet maxLines="0"></Snippet>
				<name>
					<xsl:value-of select="cell[@col=0]" />
				</name>
				<description>
					<![CDATA[
						<b>Length:</b><br>
						Seg: ]]><xsl:value-of select="format-number(cell[@col=3]/@value,'#.000')" /><![CDATA[ ,km<br>
						Sum: ]]><xsl:value-of select="format-number(cell[@col=4]/@value,'#.000')" /><![CDATA[ ,km<br>
					]]>
				</description>
				<styleUrl>#default</styleUrl>
				<Point>
					<coordinates>
						<xsl:value-of select="cell[@col=2]/@value" />,
						<xsl:value-of select="cell[@col=1]/@value" />
					</coordinates>
				</Point>
			</Placemark>
		</xsl:for-each>
	</xsl:template>
</xsl:stylesheet>

