Mercurial > dive4elements > gnv-client
annotate gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 404:3a286c9e186c
Disabled step-back functionality.
gnv/trunk@575 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 19 Jan 2010 16:34:28 +0000 |
parents | 002a4d38c16d |
children | 02dc597b9b9a |
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"> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
7 |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
8 <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
9 |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
10 <xsl:param name="back-url"/> |
401
002a4d38c16d
Added a link to jump back to the fis selection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
394
diff
changeset
|
11 <xsl:param name="selectfis"/> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
12 |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
13 <!-- start parsing document --> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
14 <xsl:template match="*"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
15 <table class="static"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
16 <xsl:apply-templates /> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
17 </table> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
18 </xsl:template> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
19 |
18
87002cbd194c
Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
20 |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
21 <!-- match multi select boxes --> |
389
416ff31f6273
Removed local-name() method from xsl stylesheet and adjusted xpathes while reading xml documents.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
388
diff
changeset
|
22 <xsl:template match="xform:select"> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
23 <xsl:variable name="state" select="@art:state" /> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
24 <tr> |
404
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
25 <!-- TODO Remove this link to render links to jump back in history |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
26 <td class="historyback"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
27 <xsl:if test="$state != ''"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
28 <a href="{$back-url}?target={$state}">[X]</a> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
29 </xsl:if> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
30 </td> |
404
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
31 --> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
32 <th class="parameter"><xsl:value-of select="xform:label" /></th> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
33 <td><xsl:apply-templates select="xform:choices" /></td> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
34 </tr> |
18
87002cbd194c
Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
35 </xsl:template> |
388
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
36 |
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
37 |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
38 <!-- match select boxes --> |
389
416ff31f6273
Removed local-name() method from xsl stylesheet and adjusted xpathes while reading xml documents.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
388
diff
changeset
|
39 <xsl:template match="xform:select1"> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
40 <xsl:variable name="state" select="@art:state" /> |
401
002a4d38c16d
Added a link to jump back to the fis selection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
394
diff
changeset
|
41 <xsl:variable name="fis" select="@art:fis" /> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
42 <tr> |
404
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
43 <!-- TODO Remove this link to render links to jump back in history |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
44 <td class="historyback"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
45 <xsl:if test="$state != ''"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
46 <a href="{$back-url}?target={$state}">[X]</a> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
47 </xsl:if> |
401
002a4d38c16d
Added a link to jump back to the fis selection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
394
diff
changeset
|
48 <xsl:if test="$fis"> |
002a4d38c16d
Added a link to jump back to the fis selection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
394
diff
changeset
|
49 <a href="{$selectfis}">[X]</a> |
002a4d38c16d
Added a link to jump back to the fis selection.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
394
diff
changeset
|
50 </xsl:if> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
51 </td> |
404
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
52 --> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
53 <!-- TODO Remove when-clause which disables the fis select box . |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
54 TODO Just render the 'otherwise' part --> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
55 <xsl:choose> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
56 <xsl:when test="$fis"> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
57 <th></th> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
58 <td></td> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
59 </xsl:when> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
60 <xsl:otherwise> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
61 <th class="parameter"><xsl:value-of select="xform:label" /></th> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
62 <td><xsl:apply-templates select="xform:choices" /></td> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
63 </xsl:otherwise> |
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
64 </xsl:choose> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
65 </tr> |
18
87002cbd194c
Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
66 </xsl:template> |
388
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
67 |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
68 |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
69 <!-- match item list of select boxes or multi select boxes --> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
70 <xsl:template match="xform:choices"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
71 <table class="choices"><xsl:apply-templates select="xform:item" /></table> |
18
87002cbd194c
Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
72 </xsl:template> |
388
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
73 |
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
74 |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
75 <!-- match item of select boxes or multi select boxes --> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
76 <xsl:template match="xform:item"> |
388
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
77 <tr> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
78 <td class="value"><xsl:value-of select="xform:label" /></td> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
79 </tr> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
80 </xsl:template> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
81 |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
82 |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
83 <!-- match group items --> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
84 <xsl:template match="xform:group"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
85 <xsl:variable name="state" select="@art:state" /> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
86 <tr> |
404
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
87 <!-- TODO Remove this link to render links to jump back in history |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
88 <td class="historyback"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
89 <xsl:if test="$state != ''"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
90 <a href="{$back-url}?target={$state}">[X]</a> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
91 </xsl:if> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
92 </td> |
404
3a286c9e186c
Disabled step-back functionality.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
401
diff
changeset
|
93 --> |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
94 <th class="parameter"><xsl:value-of select="xform:label" /></th> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
95 <td> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
96 <table><xsl:apply-templates select="xform:input" /></table> |
388
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
97 </td> |
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
98 </tr> |
152
330871ca1fd3
Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents:
39
diff
changeset
|
99 </xsl:template> |
388
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
100 |
6e16dc005704
Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
387
diff
changeset
|
101 |
394
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
102 <!-- match single group item --> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
103 <xsl:template match="xform:input"> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
104 <tr> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
105 <td class="value"><xsl:value-of select="xform:label" /> <xsl:value-of select="xform:value" /></td> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
106 </tr> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
107 </xsl:template> |
14eecfde4607
Render links to step back to previous states into gui. Added controller to advance back to these states.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
389
diff
changeset
|
108 |
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
|
109 </xsl:stylesheet> |