annotate gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 387:6de60d996475

First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms. gnv/trunk@502 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 04 Jan 2010 15:15:38 +0000
parents 3be414dc974a
children 6e16dc005704
rev   line source
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
2 <xsl:stylesheet version="1.0"
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
4 xmlns="http://www.w3.org/2002/xforms"
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
5 xmlns:xform="http://www.w3.org/2002/xforms"
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
6 xmlns:art="http://www.intevation.de/2009/artifacts">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
7 <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
8
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
9 <xsl:template match="*[local-name() = 'select']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
10 <xsl:variable name="selectName" select="@ref"/>
387
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
11 <div id="timeseriesfilter">
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
12 <table>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
13 <tr>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
14 <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
15 <td>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
16 <table>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
17 <xsl:for-each select="./choices/item">
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
18 <xsl:if test="@selected = 'true'">
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
19 <tr><td class="value"><xsl:value-of select="./label"/></td></tr>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
20 </xsl:if>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
21 </xsl:for-each>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
22 </table>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
23 </td>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
24 </tr>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
25 </table>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
26 </div> 
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
27 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
28 <xsl:template match="*[local-name() = 'select1']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
29 <xsl:variable name="selectName" select="@ref"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30 <div id="timeseriesfilter">
387
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
31 <table>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
32 <tr>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
33 <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
34 <td><xsl:value-of select="./choices/item/label" /></td>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
35 </tr>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
36 </table>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
37 </div>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38 </xsl:template>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
39
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
40 <xsl:template match="*[local-name() = 'group']">
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
41 <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
387
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
42 <div id="timeseriesfilter">
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
43 <table>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
44 <tr>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
45 <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
46 <td>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
47 <table>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
48 <xsl:for-each select="./input">
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
49 <tr><td class="value">
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
50 <xsl:value-of select="./label"/>&#160;<xsl:value-of select="./value"/>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
51 </td></tr>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
52 </xsl:for-each>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
53 </table>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
54 </td>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
55 </tr>
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
56 </table>
21
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
57 </div>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
58 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
59
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
60 <xsl:template match="*[local-name() = 'input']">
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
61 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
62 <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
63 <xsl:choose>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
64 <xsl:when test="*[local-name() = 'label']!= ''">
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
65 <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: 39
diff changeset
66 </xsl:when>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
67 </xsl:choose>
387
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
68 <xsl:value-of select="*[local-name() = 'value']"/>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
69 </xsl:template>
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
70
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
71 <xsl:template match="*[local-name() = 'label']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
72 </xsl:template>
387
6de60d996475 First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 162
diff changeset
73 </xsl:stylesheet>

http://dive4elements.wald.intevation.org