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

Removed for-each statements and replaced them with templates. gnv/trunk@507 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 05 Jan 2010 08:52:49 +0000
parents 6de60d996475
children 416ff31f6273
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>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
17 <xsl:apply-templates select="choices/item" mode="table"/>
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
18 </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
19 </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
20 </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
21 </table>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
22 </div> 
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
23 </xsl:template>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
24
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
25
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
26 <xsl:template match="*[local-name() = 'item']" mode="table">
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
27 <xsl:if test="@selected = 'true'">
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
28 <tr>
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
29 <td class="value"><xsl:value-of select="./label"/></td>
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
30 </tr>
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
31 </xsl:if>
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
32 </xsl:template>
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
33
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
34
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
35 <xsl:template match="*[local-name() = 'select1']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
36 <xsl:variable name="selectName" select="@ref"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
37 <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
38 <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
39 <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
40 <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
41 <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
42 </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
43 </table>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
44 </div>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
45 </xsl:template>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
46
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
47
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
48 <xsl:template match="*[local-name() = 'group']">
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
49 <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
50 <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
51 <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
52 <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
53 <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
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 <table>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
56 <xsl:apply-templates select="input" mode="table"/>
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
57 </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
58 </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
59 </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
60 </table>
21
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
61 </div>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
62 </xsl:template>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
63
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
64
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
65 <xsl:template match="*[local-name() = 'input']" mode="table">
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
66 <tr>
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
67 <td class="value">
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
68 <xsl:value-of select="./label"/>&#160;<xsl:value-of select="./value"/>
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
69 </td>
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
70 </tr>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
71 </xsl:template>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
72
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
73
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
74 </xsl:stylesheet>

http://dive4elements.wald.intevation.org