<?xml version="1.0" encoding="UTF-8"?>
<?altova_samplexml http://tomcat-dmaweb1.jrc.it/fuzzyg/xml/?fuzzy=0&start=0&end=100&q=kortrijk&cc=BE?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:icbm="http://postneo.com/icbm/">
	<xsl:template match="//METADATA">
				<h2>Results</h2>
				<p>You can interactively explore the area around a place in <b>Google Earth</b> or in the <b>Digital Map Archive Explorer</b>. Click on '<b>show map</b>' for a preview.</p>
				<table>
					<tr>
  	</tr>
					<xsl:for-each select="METADATA_DATASET">
						<tr>
							<td valign="top">
								<input style="width:110" type="button" name="selectPlace" value="Open DMAExplorer" onclick="window.open('http://dma.jrc.it/services/dmaexplorer/?x={(ENVELOPE/@maxx + ENVELOPE/@minx) div 2}&amp;y={(ENVELOPE/@maxy + ENVELOPE/@miny) div 2}&amp;labeltext={@name}%20(Approximate%20location)&amp;addon=label&amp;box={ENVELOPE/@minx}:{ENVELOPE/@miny}:{ENVELOPE/@maxx}:{ENVELOPE/@maxy}','DMAExplorer')" />
								<br />
								<input style="width:110" type="button" name="selectPlace" value="Open Google Earth" onclick="window.location='http://dma.jrc.it/services/common/openGoogle.asp?system=fuzzyg_un&amp;lat={(ENVELOPE/@maxy + ENVELOPE/@miny) div 2}&amp;lon={(ENVELOPE/@maxx + ENVELOPE/@minx) div 2}&amp;alt=100000&amp;label={@name}'" />
							</td>
							<td>
								<b>
									<xsl:value-of select="@service"/>
								</b> (<xsl:value-of select="@name"/>)

	          <br/>
									<xsl:value-of select="@url"/>
<!--								<xsl:if test="@accuracy=1.0"> -->
<!--									<img id="{@id}" name="{@id}" align="left" src="http://dma.jrc.it/services/common/showmap.gif" onclick="movepic('{@id}','http://dma.jrc.it/services/common/loadingmap.gif');movepic('{@id}','http://dma.jrc.it/services/directmap3/getmap.asp?MapServer=139.191.254.26&amp;MapService=dgtren_default&amp;Box={ddlong - 0.2}:{ddlat - 0.2}:{ddlong + 0.2}:{ddlat + 0.2}&amp;Width=300&amp;Height=150&amp;Layers=1111111111111111111&amp;label=X')" />
-->									<img id="ov{@docid}" name="ov{@docid}" align="left" src="http://dma.jrc.it/services/common/showmap.gif" onclick="movepic('ov{@docid}','http://dma.jrc.it/services/common/loadingmap.gif');movepic('ov{@docid}','http://dma.jrc.it/services/directmap3/getmap.asp?MapServer=139.191.254.26&amp;MapService=dma_default&amp;Box={ENVELOPE/@minx}:{ENVELOPE/@miny}:{ENVELOPE/@maxx}:{ENVELOPE/@maxy}&amp;Width=300&amp;Height=150&amp;Layers=1111111111111111111&amp;label={@service}')" />
<!--										<xsl:attribute name="src">
	               http://dma.jrc.it/services/directmap3/getmap.asp?MapServer=139.191.142.33&amp;MapService=dma_default&amp;ExtentLeft=<xsl:value-of select="ddlong - 2"/>&amp;ExtentBottom=<xsl:value-of select="ddlat - 2"/>&amp;ExtentRight=<xsl:value-of select="ddlong + 2"/>&amp;ExtentTop=<xsl:value-of select="ddlat + 2"/>&amp;Width=100&amp;Height=50&amp;Layers=1111111111111111111&amp;label=X
    		   </xsl:attribute> 
									</img> -->
<!--								</xsl:if> -->
								<br/>coordinates (lat/long):<br/>
								<xsl:value-of select="(ENVELOPE/@maxy + ENVELOPE/@miny) div 2"/> / <xsl:value-of select="(ENVELOPE/@maxx + ENVELOPE/@minx) div 2"/>
							</td>
						</tr>
					</xsl:for-each>
				</table>
	</xsl:template>
</xsl:stylesheet>

