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

Second attempt to apply redirect link patch. gnv/trunk@1206 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 13 Jun 2010 16:28:37 +0000
parents 27029f0ec7e1
children a0d16ccb82ba
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"
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
6 xmlns:art="http://www.intevation.de/2009/artifacts"
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
7 exclude-result-prefixes="xform art">
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
8
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
9 <xsl:output
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" />
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
11
966
13de46229f63 I18N of links to insert example linestrings/polygons (issue272).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 718
diff changeset
12 <xsl:param name="example-linestring"/>
13de46229f63 I18N of links to insert example linestrings/polygons (issue272).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 718
diff changeset
13 <xsl:param name="example-polygon"/>
1002
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
14 <xsl:param name="uuid"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
15 <xsl:param name="next-url">/gnv/next.do</xsl:param>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
16 <xsl:param name="further">false</xsl:param>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
17 <xsl:param name="exception"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
18 <xsl:param name="gnviewer-select-button-src">./images/auswaehlen.png</xsl:param>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
19
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
20 <xsl:template match="art:ui">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
21 <xsl:if test="$further = 'true'">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
22 <div id="timeseriesfilter">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
23 <form id="fisSelectionForm"
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
24 onsubmit="displayOverlay()"
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
25 action="{$next-url}"
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
26 method="post">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
27 <fieldset>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
28 <xsl:if test="$exception != ''">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
29 <div class="inputException"><xsl:value-of select="$exception"/></div>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
30 </xsl:if>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
31 <input type="hidden" name="artifact-uuid" value="{$uuid}"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
32 <xsl:apply-templates select="art:dynamic"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
33 <xsl:variable name="item-count" select="count(art:dynamic//xform:select1//xform:item)"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
34 <xsl:if test="$item-count = 0 or $item-count &gt; 5">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
35 <br/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
36 <input style="margin-top: 5px;" type="image" src="{$gnviewer-select-button-src}"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
37 </xsl:if>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
38 </fieldset>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
39 </form>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
40 </div>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
41 </xsl:if>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
42 </xsl:template>
966
13de46229f63 I18N of links to insert example linestrings/polygons (issue272).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 718
diff changeset
43
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
44 <!-- single select -->
1002
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
45 <xsl:template match="xform:select1" >
13
2535158e2687 Chartoutput Added to the View
Tim Englich <tim.englich@intevation.de>
parents: 12
diff changeset
46 <xsl:variable name="selectName" select="@ref"/>
1002
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
47 <xsl:variable name="items" select="count(.//xform:item)"/>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
48 <legend><xsl:value-of select="xform:label"/></legend>
1002
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
49 <xsl:choose>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
50 <xsl:when test="$items &lt; 6">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
51 <xsl:apply-templates mode="direct-link"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
52 </xsl:when>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
53 <xsl:otherwise>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
54 <select name="{$selectName}">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
55 <xsl:apply-templates />
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
56 </select>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
57 </xsl:otherwise>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
58 </xsl:choose>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
59 </xsl:template>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
60
1002
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
61 <xsl:template match="text()" mode="direct-link"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
62
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
63 <!-- options for select: direct-link -->
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
64 <xsl:template match="xform:item" mode="direct-link">
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
65 <xsl:variable name="optionValue" select="xform:value"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
66 <xsl:variable name="selectName" select="ancestor::xform:select1/@ref"/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
67 <a class="linkButton"
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
68 onclick="displayOverlay()"
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
69 href="{$next-url}?{$selectName}={$optionValue}"><xsl:value-of select="xform:label"/></a>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
70 <br/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
71 <br/>
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
72 </xsl:template>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
73
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
74 <!-- multi select -->
998
27029f0ec7e1 Reverted the changes of rev1194.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 993
diff changeset
75 <xsl:template match="xform:select">
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
76 <xsl:variable name="selectName" select="@ref"/>
1002
b1eea43ba133 Second attempt to apply redirect link patch.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 998
diff changeset
77 <xsl:variable name="items" select="count(.//xform:item)"/>
718
5c36da3d9e17 Fixed missing legends of parameter select boxes. The measurement matrix will be rendered for a single parameter as well, now. (issue225)
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 694
diff changeset
78 <legend>
5c36da3d9e17 Fixed missing legends of parameter select boxes. The measurement matrix will be rendered for a single parameter as well, now. (issue225)
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 694
diff changeset
79 <xsl:value-of select="xform:label"/>
5c36da3d9e17 Fixed missing legends of parameter select boxes. The measurement matrix will be rendered for a single parameter as well, now. (issue225)
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 694
diff changeset
80 </legend>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
81
21
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
82 <xsl:choose>
414
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
83 <xsl:when test="$items = 1">
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
84 <select name="{$selectName}" multiple="multiple" size="{$items}">
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
85 <xsl:apply-templates mode="selected"/>
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
86 </select>
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
87 </xsl:when>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
88 <xsl:when test="$items &lt; 5">
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
89 <select name="{$selectName}" multiple="multiple" size="{$items}">
998
27029f0ec7e1 Reverted the changes of rev1194.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 993
diff changeset
90 <xsl:apply-templates/>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
91 </select>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
92 </xsl:when>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
93 <xsl:otherwise>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
94 <select name="{$selectName}" multiple="multiple" size="5">
998
27029f0ec7e1 Reverted the changes of rev1194.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 993
diff changeset
95 <xsl:apply-templates />
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
96 </select>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
97 </xsl:otherwise>
21
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
98 </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
99 </xsl:template>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
100
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
101
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
102 <!-- options for select -->
998
27029f0ec7e1 Reverted the changes of rev1194.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 993
diff changeset
103 <xsl:template match="xform:item">
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
104 <xsl:variable name="optionValue" select="xform:value"/>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
105 <xsl:choose>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
106 <xsl:when test="@selected = 'true'">
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
107 <option value="{$optionValue}" selected="selected">
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
108 <xsl:value-of select="xform:label"/>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
109 </option>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
110 </xsl:when>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
111 <xsl:otherwise>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
112 <option value="{$optionValue}">
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
113 <xsl:value-of select="xform:label"/>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
114 </option>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
115 </xsl:otherwise>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
116 </xsl:choose>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
117 </xsl:template>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
118
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
119
414
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
120 <xsl:template match="xform:item" mode="selected">
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
121 <xsl:variable name="optionValue" select="xform:value"/>
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
122 <option value="{$optionValue}" selected="selected">
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
123 <xsl:value-of select="xform:label"/>
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
124 </option>
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
125 </xsl:template>
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
126
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
127
59c6c7b62e43 Automatically select entry in multi select boxes if there is only one entry to avoid input failures.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 413
diff changeset
128
998
27029f0ec7e1 Reverted the changes of rev1194.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 993
diff changeset
129 <xsl:template match="xform:group">
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
130 <xsl:variable name="selectcount" select="count(xform:select)"/>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
131
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
132 <legend>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
133 <xsl:value-of select="xform:label"/>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
134 </legend>
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
135
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
136 <xsl:choose>
718
5c36da3d9e17 Fixed missing legends of parameter select boxes. The measurement matrix will be rendered for a single parameter as well, now. (issue225)
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 694
diff changeset
137 <xsl:when test="$selectcount &lt; '1'">
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
138 <table class="dynamic">
998
27029f0ec7e1 Reverted the changes of rev1194.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 993
diff changeset
139 <xsl:apply-templates/>
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
140 </table>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
141 </xsl:when>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
142 <xsl:otherwise>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
143 <table class="static">
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
144 <tr>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
145 <td><!-- nothing here --></td>
669
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
146 <!-- take the first select node to render column labels -->
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
147 <xsl:apply-templates select="xform:select[1]/xform:item" mode="matrixHeader"/>
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
148 </tr>
688
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
149 <tr>
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
150 <td><!-- nothing here --></td>
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
151 <xsl:apply-templates select="xform:select[1]/xform:item" mode="matrixSelectable"/>
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
152 </tr>
669
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
153 <!-- render matrix' body -->
586
97d90e314af5 ISSUE 181: Removed duplicate Drawaing of the Lengendvalue of Groupelements for choosing different heights for several Parameters
Tim Englich <tim.englich@intevation.de>
parents: 577
diff changeset
154 <xsl:apply-templates select="xform:select" mode="matrix" />
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
155 </table>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
156 </xsl:otherwise>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
157 </xsl:choose>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
158 </xsl:template>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
159
669
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
160 <!-- rendering column headers (measurements) -->
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
161 <xsl:template match="xform:item" mode="matrixHeader">
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
162 <td class="matrixHeader">
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
163 <xsl:value-of select="xform:label/text()"/>
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
164 </td>
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
165 </xsl:template>
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
166
688
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
167 <!-- -->
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
168 <xsl:template match="xform:item" mode="matrixSelectable">
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
169 <xsl:variable name="value" select="xform:value/text()"/>
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
170 <xsl:variable name="name" select="@ref"/>
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
171 <td class="matrixSelectableHeader">
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
172 <input type="checkbox" name="{$name}" value="{$value}" />
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
173 </td>
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
174 </xsl:template>
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
175
669
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
176
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
177 <!-- render the first column with parameter names into matrix -->
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
178 <xsl:template match="xform:select" mode="matrix">
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
179 <tr>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
180 <td><xsl:value-of select="@label" /></td>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
181 <xsl:apply-templates mode="matrix" />
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
182 </tr>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
183 </xsl:template>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
184
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
185
669
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
186 <!-- render checkboxes and disable checkboxes for invalid parameter
ef1ff5fdab5b Changed the xsl transformation for a parameter/measurement matrix (issue199).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 586
diff changeset
187 measurements -->
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
188 <xsl:template match="xform:item" mode="matrix">
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
189 <xsl:variable name="value" select="xform:value/text()"/>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
190 <xsl:variable name="name" select="@ref"/>
688
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
191 <td class="matrixContent">
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
192 <xsl:choose>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
193 <xsl:when test="@disabled = 'true'">
688
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
194 <img src="./images/delete.png"/>
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
195 </xsl:when>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
196 <xsl:otherwise>
688
f3f433053bdd Changed the behavior of parameter-measurement-matrix (issue210).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 669
diff changeset
197 <img src="./images/tick.png"/>
577
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
198 </xsl:otherwise>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
199 </xsl:choose>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
200 </td>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
201 </xsl:template>
60caaa265e2b Render a matrix for measurement selection (measurement-parameter).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 414
diff changeset
202
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
203
998
27029f0ec7e1 Reverted the changes of rev1194.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 993
diff changeset
204 <xsl:template match="xform:input">
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
205 <xsl:variable name="inputValue" select="xform:value"/>
39
6c46f9b16166 gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents: 21
diff changeset
206 <xsl:variable name="inputName" select="@ref"/>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
207 <xsl:variable name="label" select="xform:label"/>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 149
diff changeset
208
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
209 <!-- TODO: Remove this when we have the GIS interface. (slt) -->
392
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
210 <xsl:choose>
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
211 <xsl:when test="$inputName = 'mesh_linestring'">
966
13de46229f63 I18N of links to insert example linestrings/polygons (issue272).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 718
diff changeset
212 <a href="javascript:copy_demo_wkt_line();"><xsl:value-of select="$example-linestring"/>:</a><br/>
392
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
213 </xsl:when>
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
214 <xsl:when test="$inputName = 'mesh_polygon'">
966
13de46229f63 I18N of links to insert example linestrings/polygons (issue272).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 718
diff changeset
215 <a href="javascript:copy_demo_wkt_polygon();"><xsl:value-of select="$example-polygon"/>:</a><br/>
392
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
216 </xsl:when>
1b8fd2635ce4 Added wkt polygon to test the "Horizontalschnitt"
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 291
diff changeset
217 </xsl:choose>
291
b48172dc24ed Added demo wkt linestrings via xslt and javascript.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 162
diff changeset
218
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
219 <tr>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
220 <xsl:choose>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
221 <xsl:when test="$label != ''">
694
271ec4d11a9f Changed the whole design of the application regarding the bsh styleguide.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 688
diff changeset
222 <td class="parameter"><xsl:value-of select="$label"/>:</td>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
223 </xsl:when>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
224 </xsl:choose>
291
b48172dc24ed Added demo wkt linestrings via xslt and javascript.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 162
diff changeset
225
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
226 <td>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
227 <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
228 </td>
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
229 </tr>
12
4ebe57b170d3 Integration of moving through the Artifact-States and rendering the UI.
Tim Englich <tim.englich@intevation.de>
parents: 11
diff changeset
230 </xsl:template>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
231
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
232
998
27029f0ec7e1 Reverted the changes of rev1194.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 993
diff changeset
233 <xsl:template match="xform:label">
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
234 <!-- do nothing here -->
11
3cb753564552 Integration of the required XSL-Transformation of the Describe-Response of the Artifactdatabase
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
235 </xsl:template>
413
0ce07c6e132c Refactored xsl sheet for ui's dynamic part: Removed local-name() method, put 'group' items into a table to be well aligned and set the size of multi select boxes to max 5 items or less.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 393
diff changeset
236
291
b48172dc24ed Added demo wkt linestrings via xslt and javascript.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 162
diff changeset
237 </xsl:stylesheet>

http://dive4elements.wald.intevation.org