<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
  <xsl:template match='/'>
    <HTML>
      <BODY style="white-space: nowrap">
		Name, Latitude, Longitude,, LookAt-longitude, LookAt-latitude, LookAt-altitude, LookAt-range, LookAt-tilt, LookAt-heading, <BR />
		<xsl:for-each select="//Placemark">
			"<xsl:value-of select='name' />" ,
			<xsl:value-of select='substring-before(substring-after(Point/coordinates,","),",")' /> ,
			<xsl:value-of select='substring-before(Point/coordinates,",")' /> ,,
			<xsl:value-of select='LookAt/longitude' /> ,
			<xsl:value-of select='LookAt/latitude' /> ,
			<xsl:value-of select='LookAt/altitude' /> ,
			<xsl:value-of select='LookAt/range' /> ,
			<xsl:value-of select='LookAt/tilt' /> ,
			<xsl:value-of select='LookAt/heading' /> ,
			<BR />
		</xsl:for-each>
    </BODY>
    </HTML>
  </xsl:template>
</xsl:stylesheet>

<!-- replace this line <kml xmlns="http://earth.google.com/kml/2.2"> in the kml file header -->
<!-- with this line  <?xml-stylesheet type='text/xsl' href='getpos_csv.xsl'?><kml>  -->
<!-- and view the file in a browser -->
