<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
                xmlns:html="http://www.w3.org/TR/REC-html40"
				xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
                xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
				xmlns:kml="http://www.opengis.net/kml/2.2"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
				xmlns:atom="http://www.w3.org/2005/Atom">
	<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
	<xsl:template match="/">
		<html xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<title>XML Sitemap</title>
				<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
				<style type="text/css">
				html {
					font-family: sans-serif;
					line-height: 1.15;
					-ms-text-size-adjust: 100%;
					-webkit-text-size-adjust: 100%
				}

				body {
					margin: 0
				}

				article,
				aside,
				footer,
				header,
				nav,
				section {
					display: block
				}

				h1 {
					font-size: 2em;
					margin: .67em 0
				}

				figcaption,
				figure,
				main {
					display: block
				}

				figure {
					margin: 1em 40px
				}

				hr {
					box-sizing: content-box;
					height: 0;
					overflow: visible
				}

				pre {
					font-family: monospace, monospace;
					font-size: 1em
				}

				a {
					background-color: transparent;
					-webkit-text-decoration-skip: objects
				}

				a:active,
				a:hover {
					outline-width: 0
				}

				abbr[title] {
					border-bottom: none;
					text-decoration: underline;
					text-decoration: underline dotted
				}

				b,
				strong {
					font-weight: inherit;
					font-weight: bolder
				}

				code,
				kbd,
				samp {
					font-family: monospace, monospace;
					font-size: 1em
				}

				dfn {
					font-style: italic
				}

				mark {
					background-color: #ff0;
					color: #000
				}

				small {
					font-size: 80%
				}

				sub,
				sup {
					font-size: 75%;
					line-height: 0;
					position: relative;
					vertical-align: baseline
				}

				sub {
					bottom: -.25em
				}

				sup {
					top: -.5em
				}

				audio,
				video {
					display: inline-block
				}

				audio:not([controls]) {
					display: none;
					height: 0
				}

				img {
					border-style: none
				}

				svg:not(:root) {
					overflow: hidden
				}

				button,
				input,
				optgroup,
				select,
				textarea {
					font-family: sans-serif;
					font-size: 100%;
					line-height: 1.15;
					margin: 0
				}

				button,
				input {
					overflow: visible
				}

				button,
				select {
					text-transform: none
				}

				[type=reset],
				[type=submit],
				button,
				html [type=button] {
					-webkit-appearance: button
				}

				[type=button]::-moz-focus-inner,
				[type=reset]::-moz-focus-inner,
				[type=submit]::-moz-focus-inner,
				button::-moz-focus-inner {
					border-style: none;
					padding: 0
				}

				[type=button]:-moz-focusring,
				[type=reset]:-moz-focusring,
				[type=submit]:-moz-focusring,
				button:-moz-focusring {
					outline: 1px dotted ButtonText
				}

				fieldset {
					border: 1px solid silver;
					margin: 0 2px;
					padding: .35em .625em .75em
				}

				legend {
					box-sizing: border-box;
					color: inherit;
					display: table;
					max-width: 100%;
					padding: 0;
					white-space: normal
				}

				progress {
					display: inline-block;
					vertical-align: baseline
				}

				textarea {
					overflow: auto
				}

				[type=checkbox],
				[type=radio] {
					box-sizing: border-box;
					padding: 0
				}

				[type=number]::-webkit-inner-spin-button,
				[type=number]::-webkit-outer-spin-button {
					height: auto
				}

				[type=search] {
					-webkit-appearance: textfield;
					outline-offset: -2px
				}

				[type=search]::-webkit-search-cancel-button,
				[type=search]::-webkit-search-decoration {
					-webkit-appearance: none
				}

				::-webkit-file-upload-button {
					-webkit-appearance: button;
					font: inherit
				}

				details,
				menu {
					display: block
				}

				summary {
					display: list-item
				}

				canvas {
					display: inline-block
				}

				[hidden],
				template {
					display: none
				}

				.border-box,
				a,
				article,
				body,
				code,
				dd,
				div,
				dl,
				dt,
				fieldset,
				footer,
				form,
				h1,
				h2,
				h3,
				h4,
				h5,
				h6,
				header,
				html,
				input[type=email],
				input[type=number],
				input[type=password],
				input[type=tel],
				input[type=text],
				input[type=url],
				legend,
				li,
				main,
				ol,
				p,
				pre,
				section,
				table,
				td,
				textarea,
				th,
				tr,
				ul {
					box-sizing: border-box
				}

				.link,
				.link:active,
				.link:focus,
				.link:hover,
				.link:link,
				.link:visited {
					-webkit-transition: color .15s ease-in;
					transition: color .15s ease-in
				}

				b,
				strong {
					font-weight: inherit;
					font-weight: bolder
				}

				.ph3 {
					padding-left: 1rem;
					padding-right: 1rem
				}

				.pb3 {
					padding-bottom: 1rem
				}

				.black {
					color: #000
				}

				.bg-near-white {
					background-color: #f4f4f4
				}

				.mw8 {
					max-width: 64rem
				}

				.pv4 {
					padding-top: 2rem;
					padding-bottom: 2rem
				}

				.center {
					margin-right: auto;
					margin-left: auto
				}

				.overflow-auto {
					overflow: auto
				}

				.w-100 {
					width: 100%
				}

				.f6 {
					font-size: .875rem
				}

				.b--light-gray {
					border-color: #eee
				}

				.ba {
					border-style: solid;
					border-width: 1px
				}

				.bw1 {
					border-width: .125rem
				}

				.bg-white {
					background-color: #fff
				}

				.pa3 {
					padding: 1rem
				}

				.fw6 {
					font-weight: 600
				}

				.tl {
					text-align: left
				}

				.tr {
					text-align: right
				}
								
				.tc {
					text-align: center
				}

				.lh-copy {
					line-height: 1.5
				}

				.link {
					text-decoration: none
				}

				.link,
				.link:active,
				.link:focus,
				.link:hover,
				.link:link,
				.link:visited {
					-webkit-transition: color .15s ease-in;
					transition: color .15s ease-in
				}

				.blue {
					color: #357edd
				}

				.bb {
					border-bottom-style: solid;
					border-bottom-width: 1px
				}

				.b {
					font-weight: 700
				}

				.mr2 {
					margin-right: .5rem
				}

				.ma0 {
					margin: 0
				}

				.dib {
					display: inline-block
				}

				.f3 {
					font-size: 1.5rem
				}

				.ph1 {
					padding-left: .25rem;
					padding-right: .25rem
				}

				.pv1 {
					padding-top: .25rem;
					padding-bottom: .25rem
				}

				.tracked {
					letter-spacing: .1em
				}

				.lh-solid {
					line-height: 1
				}

				.white {
					color: #fff
				}

				.ph2 {
					padding-left: .5rem;
					padding-right: .5rem
				}

				.bg-silver {
					background-color: #999
				}

				.br-pill {
					border-radius: 9999px
				}

				.i {
					font-style: italic
				}

				.gray {
					color: #777
				}

				.hover-bg-blue:focus,
				.hover-bg-blue:hover {
					background-color: #357edd
				}

				.hover-bg-near-white:focus,
				.hover-bg-near-white:hover {
					background-color: #f4f4f4
				}
				</style>
			</head>
			<body class="ph3 pb3 black bg-near-white">
				<div id="sitemap">
					<header class="mw8 pv4 center">
						<h1>KML file</h1>
						<p class="expl">
							Generated by DefiniteSEO, this is an KML file, which contains all your location data and is meant for consumption by search engines.
						</p>
					</header>
					<xsl:if test="count(sitemap:kml) &lt; 1">
						<header class="mw8 center">
							<p class="expl">
								This KML file contains <xsl:value-of select="count(kml:kml/kml:Document/kml:Folder/kml:Placemark)"/> Locations.
							</p>
						</header>
						<div class="mw8 center">
            				<div class="overflow-auto">
								<table class="w-100 f6 b--light-gray ba bw1" cellspacing="0">
									<thead class="b bb b--light-gray bg-white">
										<tr>
											<th class="pa3 fw6 tl bb b--light-gray" width="25%">Name</th>
											<th class="pa3 fw6 tl bb b--light-gray" width="40%">Address</th>
											<th class="pa3 fw6 tl bb b--light-gray" width="15%">Phone number</th>
											<th class="pa3 fw6 tl bb b--light-gray" width="10%">Latitude</th>
											<th class="pa3 fw6 tl bb b--light-gray" width="10%">Longitude</th>
										</tr>
									</thead>
									<tbody class="lh-copy bg-white">
										<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
										<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
										<xsl:for-each select="kml:kml/kml:Document/kml:Folder/kml:Placemark">
											<tr class="hover-bg-near-white">
												<td class="pa3 b">
													<xsl:variable name="itemURL">
														<xsl:value-of select="atom:link/@href"/>
													</xsl:variable>
													<a href="{$itemURL}" class="link blue" target="_blank">
														<xsl:value-of select="kml:name"/>
													</a>
												</td>
												<td class="pa3 b">
													<xsl:value-of select="kml:address"/>
												</td>
												<td class="pa3 b">
													<xsl:value-of select="kml:phoneNumber"/>
												</td>
												<td class="pa3 b">
													<xsl:value-of select="kml:LookAt/kml:latitude"/>
												</td>
												<td class="pa3 b">
													<xsl:value-of select="kml:LookAt/kml:longitude"/>
												</td>
											</tr>
										</xsl:for-each>
									</tbody>
								</table>
							</div>
						</div>
					</xsl:if>
				</div>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
