1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
3
|
|
4
|
<!--
|
5
|
Description: Output a form for display of the context doc AOI
|
6
|
Author: Mike Adair
|
7
|
Licence: LGPL as per: http://www.gnu.org/copyleft/lesser.html
|
8
|
|
9
|
$Id$
|
10
|
-->
|
11
|
|
12
|
<xsl:output method="xml" encoding="utf-8"/>
|
13
|
|
14
|
<!-- The common params set for all widgets -->
|
15
|
<xsl:param name="lang">en</xsl:param>
|
16
|
<xsl:param name="modelId"/>
|
17
|
<xsl:param name="widgetId"/>
|
18
|
|
19
|
<!-- Text params for this widget -->
|
20
|
<xsl:param name="searchFormTitle"/>
|
21
|
<xsl:param name="north"/>
|
22
|
<xsl:param name="south"/>
|
23
|
<xsl:param name="east"/>
|
24
|
<xsl:param name="west"/>
|
25
|
|
26
|
<!-- The name of the form for coordinate output -->
|
27
|
<xsl:param name="formName">AOIForm</xsl:param>
|
28
|
|
29
|
<!-- Main html -->
|
30
|
<xsl:template match="/">
|
31
|
<form name="{$formName}" id="{$formName}" method="get" action="defaultUrl">
|
32
|
<table>
|
33
|
<tr>
|
34
|
<th align="left" colspan="3">
|
35
|
<xsl:value-of select="$searchFormTitle"/>
|
36
|
</th>
|
37
|
</tr>
|
38
|
<tr>
|
39
|
<td>
|
40
|
keyword:
|
41
|
</td>
|
42
|
<td>
|
43
|
<input name="keyword" type="text" size="10"/>
|
44
|
</td>
|
45
|
<td>
|
46
|
<input type="submit"/>
|
47
|
</td>
|
48
|
</tr>
|
49
|
<tr>
|
50
|
<td>
|
51
|
</td>
|
52
|
<td>
|
53
|
<xsl:value-of select="$north"/>
|
54
|
<input NAME="northCoord" TYPE="text" SIZE="10" STYLE="font: 8pt Verdana, geneva, arial, sans-serif;"/>
|
55
|
</td>
|
56
|
<td>
|
57
|
</td>
|
58
|
</tr>
|
59
|
<tr>
|
60
|
<td>
|
61
|
<xsl:value-of select="$west"/>
|
62
|
<input NAME="westCoord" TYPE="text" SIZE="10" STYLE="font: 8pt Verdana, geneva, arial, sans-serif;"/>
|
63
|
</td>
|
64
|
<td>
|
65
|
</td>
|
66
|
<td>
|
67
|
<xsl:value-of select="$east"/>
|
68
|
<input NAME="eastCoord" TYPE="text" SIZE="10" STYLE="font: 8pt Verdana, geneva, arial, sans-serif;"/>
|
69
|
</td>
|
70
|
</tr>
|
71
|
<tr>
|
72
|
<td>
|
73
|
</td>
|
74
|
<td>
|
75
|
<xsl:value-of select="$south"/>
|
76
|
<input NAME="southCoord" TYPE="text" SIZE="10" STYLE="font: 8pt Verdana, geneva, arial, sans-serif;"/>
|
77
|
</td>
|
78
|
<td>
|
79
|
</td>
|
80
|
</tr>
|
81
|
</table>
|
82
|
</form>
|
83
|
</xsl:template>
|
84
|
|
85
|
</xsl:stylesheet>
|