annotate gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 393:d812c5b62eb4

Fixes fake wkt polygon input. gnv/trunk@536 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 13 Jan 2010 11:29:40 +0000
parents 1b8fd2635ce4
children 0ce07c6e132c
rev   line source
11
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
2 <xsl:stylesheet version="1.0"
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
4 xmlns="http://www.w3.org/2002/xforms"
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
5 xmlns:xform="http://www.w3.org/2002/xforms"
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
6 xmlns:art="http://www.intevation.de/2009/artifacts">
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
7 <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no"/>
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
8
11
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
9 <xsl:template match="*[local-name() = 'select']">
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
10 <xsl:variable name="selectName" select="@ref"/>
39
6c46f9b16166 gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents: 21
diff changeset
11 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
17
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 13
diff changeset
12 <select name="{$selectName}" multiple="multiple" size="6"> <xsl:apply-templates/></select>
162
3be414dc974a The Submitbutton now is placed properly after single
Tim Englich <tim.englich@intevation.de>
parents: 152
diff changeset
13 <br/>
13
2535158e2687 Chartoutput Added to the View
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
14    </xsl:template>
2535158e2687 Chartoutput Added to the View
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
15 <xsl:template match="*[local-name() = 'select1']">
2535158e2687 Chartoutput Added to the View
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
16 <xsl:variable name="selectName" select="@ref"/>
39
6c46f9b16166 gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents: 21
diff changeset
17 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
17
d7e5a929fc34 Some Stylingimprovements done
Tim Englich <tim.englich@intevation.de>
parents: 13
diff changeset
18 <select name="{$selectName}"> <xsl:apply-templates/></select>
162
3be414dc974a The Submitbutton now is placed properly after single
Tim Englich <tim.englich@intevation.de>
parents: 152
diff changeset
19 <br/>
11
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
20    </xsl:template>
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
21 <xsl:template match="*[local-name() = 'item']">
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
22 <xsl:variable name="optionValue" select="*[local-name() = 'value']"/>
21
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
23 <xsl:choose>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
24 <xsl:when test="@selected = 'true'">
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
25 <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
26 </xsl:when>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
27 <xsl:otherwise>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
28 <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
29 </xsl:otherwise>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
30 </xsl:choose>
11
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
31 </xsl:template>
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
32
149
9b7f74e58f8d Changed Lablevalues according to issue47
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
33 <xsl:template match="*[local-name() = 'group']">
9b7f74e58f8d Changed Lablevalues according to issue47
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
34 <xsl:variable name="selectName" select="@ref"/>
9b7f74e58f8d Changed Lablevalues according to issue47
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
35 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
9b7f74e58f8d Changed Lablevalues according to issue47
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
36 <xsl:apply-templates/>
9b7f74e58f8d Changed Lablevalues according to issue47
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
37    </xsl:template>
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
38
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
39 <xsl:template match="*[local-name() = 'input']">
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
40 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
39
6c46f9b16166 gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents: 21
diff changeset
41 <xsl:variable name="inputName" select="@ref"/>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 149
diff changeset
42
392
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
43 <!-- TODO: Remove this when we have the GIS interface. (slt) -->
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
44 <xsl:choose>
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
45 <xsl:when test="$inputName = 'mesh_linestring'">
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
46 <a href="javascript:copy_demo_wkt_line();"><xsl:text>Beispiel WKT-Linestring einf&#252;gen:</xsl:text></a><br/>
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
47 </xsl:when>
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
48 <xsl:when test="$inputName = 'mesh_polygon'">
393
d812c5b62eb4 Fixes fake wkt polygon input.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 392
diff changeset
49 <a href="javascript:copy_demo_wkt_polygon();"><xsl:text>Beispiel WKT-Polygon einf&#252;gen:</xsl:text></a><br/>
392
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
50 </xsl:when>
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
51 </xsl:choose>
291
b48172dc24ed Added demo wkt linestrings via xslt and javascript.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 162
diff changeset
52
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 149
diff changeset
53 <xsl:choose>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 149
diff changeset
54 <xsl:when test="*[local-name() = 'label']!= ''">
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 149
diff changeset
55 <xsl:value-of select="*[local-name() = 'label']"/>:
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 149
diff changeset
56 </xsl:when>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 149
diff changeset
57 </xsl:choose>
291
b48172dc24ed Added demo wkt linestrings via xslt and javascript.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 162
diff changeset
58
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 149
diff changeset
59 <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/>
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
60 </xsl:template>
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
61
11
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
62 <xsl:template match="*[local-name() = 'label']">
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
63 </xsl:template>
291
b48172dc24ed Added demo wkt linestrings via xslt and javascript.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 162
diff changeset
64 </xsl:stylesheet>

http://dive4elements.wald.intevation.org