Project

General

Profile

1
<?xml version="1.0"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:gml="http://www.opengis.net/gml" xmlns:mb="http://mapbuilder.sourceforge.net/mapbuilder" version="1.0"><xsl:output method="xml" omit-xml-declaration="yes"/><xsl:preserve-space elements="gml:name option"/><xsl:param name="modelId"/><xsl:param name="widgetId"/><xsl:param name="targetModel"/><xsl:param name="selectSize" select="1"/><xsl:param name="selectedOption"/><xsl:template match="/mb:QuickviewPresetResultSet"><xsl:variable name="srsName" select="gml:featureMember/mb:locationDef/mb:spatialKeyword/gml:location/gml:Envelope/@srsName"/><DIV><form><select name="locations" onchange="javascript:config.objects.{$widgetId}.setAoi(this.options[this.selectedIndex].value,'{$targetModel}','{$srsName}');" size="{$selectSize}"><xsl:apply-templates select="gml:featureMember/mb:locationDef"/></select></form></DIV></xsl:template><xsl:template match="mb:locationDef"><xsl:variable name="bbox" select="translate(mb:spatialKeyword/gml:location/gml:Envelope/gml:coordinates,' ',',')"/><option value="{$bbox}"><xsl:value-of select="gml:name"/></option></xsl:template></xsl:stylesheet>
(72-72/145)