1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<xsl:stylesheet version="1.0"
|
3
|
xmlns:mb="http://mapbuilder.sourceforge.net/mapbuilder"
|
4
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
5
|
|
6
|
<!--
|
7
|
Description: Output a form for setting any model's url and method values
|
8
|
Author: Mike Adair
|
9
|
Licence: LGPL as per: http://www.gnu.org/copyleft/lesser.html
|
10
|
|
11
|
$Id$
|
12
|
-->
|
13
|
|
14
|
<xsl:output method="xml" encoding="utf-8"/>
|
15
|
|
16
|
<!-- The common params set for all widgets -->
|
17
|
<xsl:param name="lang">en</xsl:param>
|
18
|
<xsl:param name="modelId"/>
|
19
|
<xsl:param name="modelTitle"/>
|
20
|
<xsl:param name="targetModel"/>
|
21
|
<xsl:param name="widgetId"/>
|
22
|
|
23
|
<!-- Text params for this widget -->
|
24
|
<xsl:param name="title"/>
|
25
|
<xsl:param name="load"/>
|
26
|
|
27
|
<!-- The name of the form for coordinate output -->
|
28
|
<xsl:param name="modelUrl"/>
|
29
|
<xsl:param name="formName">ModelUrlInputForm</xsl:param>
|
30
|
|
31
|
<!-- Main html -->
|
32
|
<xsl:template match="/">
|
33
|
<div class="tabbedContent">
|
34
|
<form name="{$formName}" id="{$formName}" onsubmit="return config.objects.{$widgetId}.submitForm()">
|
35
|
Select a Web Processing service from the menu on the left,
|
36
|
or enter the WPS GetCapabilities URL here:
|
37
|
<input name="modelUrl" type="text" size="30" value="{$modelUrl}"/>
|
38
|
<a href="javascript:config.objects.{$widgetId}.submitForm();"><xsl:value-of select="$load"/></a>
|
39
|
</form>
|
40
|
</div>
|
41
|
</xsl:template>
|
42
|
|
43
|
</xsl:stylesheet>
|