annotate gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 582:b8ea9383d285

Implemented a One-Step-Back-History. gnv/trunk@723 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 02 Mar 2010 10:53:30 +0000
parents f21ad239c748
children 21ad44ccdb84
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"
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
6 xmlns:art="http://www.intevation.de/2009/artifacts"
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
7 exclude-result-prefixes="xform art">
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
8
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
9 <xsl:output
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" />
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
11
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 <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
13 <xsl:param name="selectfis"/>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
14 <xsl:param name="edit">bearbeiten</xsl:param>
582
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
15 <xsl:param name="total"><xsl:value-of select="count(*)"/></xsl:param>
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
16
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 <!-- 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
18 <xsl:template match="*">
411
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
19 <table class="static">
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
20 <xsl:apply-templates />
8e39c74f9fb6 Put former parameter into a fieldset with label and removed background image from all fieldsets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 408
diff changeset
21 </table>
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
22 </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
23
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
24
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
25 <!-- 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
26 <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
27 <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
28 <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
29 <td><xsl:apply-templates select="xform:choices" /></td>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
30 <td class="historyback">
582
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
31 <xsl:call-template name="InsertEdit">
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
32 <xsl:with-param name="state" select="@art:state" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
33 <xsl:with-param name="index" select="position()" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
34 <xsl:with-param name="fis" select="@art:fis" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
35 </xsl:call-template>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
36 </td>
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
37 </tr>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38 </xsl:template>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
39
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
40
582
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
41 <xsl:template name="InsertEdit">
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
42 <xsl:param name="state" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
43 <xsl:param name="index" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
44 <xsl:param name="fis" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
45 <xsl:if test="$state != ''">
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
46 <xsl:if test="$index = $total">
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
47 <a href="{$back-url}?target={$state}">
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
48 <img title="{$edit}" alt="{$edit}" src="images/back_button.png"/>
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
49 </a>
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
50 </xsl:if>
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
51 </xsl:if>
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
52 <xsl:if test="$fis">
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
53 <a href="{$selectfis}"><img title="{$edit}" alt="{$edit}" src="images/back_button.png"/></a>
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
54 </xsl:if>
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
55 </xsl:template>
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
56
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
57
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
58 <!-- 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
59 <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
60 <tr>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
61 <th class="parameter"><xsl:value-of select="xform:label" /></th>
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
62 <td><xsl:apply-templates select="xform:choices" /></td>
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
63 <td class="historyback">
582
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
64 <xsl:call-template name="InsertEdit">
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
65 <xsl:with-param name="state" select="@art:state" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
66 <xsl:with-param name="index" select="position()" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
67 <xsl:with-param name="fis" select="@art:fis" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
68 </xsl:call-template>
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
69 </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
70 </tr>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
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
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
73
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
74 <!-- 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
75 <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
76 <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
77 </xsl:template>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
78
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
79
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
80 <!-- 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
81 <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
82 <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
83 <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
84 </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
85 </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
86
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
87
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 <!-- 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
89 <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
90 <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
91 <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
92 <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
93 <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
94 </td>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
95 <td class="historyback">
582
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
96 <xsl:call-template name="InsertEdit">
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
97 <xsl:with-param name="state" select="@art:state" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
98 <xsl:with-param name="index" select="position()" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
99 <xsl:with-param name="fis" select="@art:fis" />
b8ea9383d285 Implemented a One-Step-Back-History.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 568
diff changeset
100 </xsl:call-template>
408
b5733f9f386b Design improvements: Moved chart option panel and export actions beneath the parameterization panel on the left side. Do not render a useless 'draw' button after reaching the final state.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 405
diff changeset
101 </td>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
102 </tr>
152
330871ca1fd3 Added uniform Visualization of Single Input-Elements in GUI. issue55
Tim Englich <tim.englich@intevation.de>
parents: 39
diff changeset
103 </xsl:template>
388
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
104
6e16dc005704 Removed for-each statements and replaced them with templates.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 387
diff changeset
105
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
106 <!-- 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
107 <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
108 <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
109 <td class="value"><xsl:value-of select="xform:label" />&#160;<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
110 </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
111 </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
112
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
113 </xsl:stylesheet>

http://dive4elements.wald.intevation.org