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

gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 02 Oct 2009 14:29:08 +0000
parents 17c92f1f014b
children 330871ca1fd3
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"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
11 <div id="timeseriesfilter">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
12 <form id="{$selectName}Form" method="post">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
13 <fieldset>
39
6c46f9b16166 gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents: 21
diff changeset
14 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
15 <select name="{$selectName}" multiple="multiple" size="6" disabled="disabled"> <xsl:apply-templates/></select>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
16 </fieldset>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
17 </form>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
18 </div> 
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
19 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
20 <xsl:template match="*[local-name() = 'select1']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
21 <xsl:variable name="selectName" select="@ref"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
22 <div id="timeseriesfilter">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
23 <form id="{$selectName}Form" method="post">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
24 <fieldset>
39
6c46f9b16166 gnv/trunk@179 c6561f87-3c4e-4783-a992-168aeb5c3f6f
Tim Englich <tim.englich@intevation.de>
parents: 21
diff changeset
25 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
26 <select name="{$selectName}" disabled="disabled"> <xsl:apply-templates/></select>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
27 </fieldset>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
28 </form>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
29 </div>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
30 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
31 <xsl:template match="*[local-name() = 'item']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
32 <xsl:variable name="optionValue" select="*[local-name() = 'value']"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
33 <xsl:choose>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
34 <xsl:when test="@selected = 'true'">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
35 <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
36 </xsl:when>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
37 <xsl:otherwise>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
38 <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
39 </xsl:otherwise>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
40 </xsl:choose>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
41 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
42
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
43
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
44 <xsl:template match="*[local-name() = 'input']">
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
45 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
46 <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
21
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
47 <div id="timeseriesfilter">
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
48 <form id="{$inputName}Form" method="post">
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
49 <fieldset>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
50 <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
51 <xsl:value-of select="*[local-name() = 'label']"/>: <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
52 </fieldset>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
53 </form>
17c92f1f014b Some GUI improvements done
Tim Englich <tim.englich@intevation.de>
parents: 18
diff changeset
54 </div>
18
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
55 </xsl:template>
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
56
87002cbd194c Static UI -integration an some refactoringwork done
Tim Englich <tim.englich@intevation.de>
parents:
diff changeset
57 <xsl:template match="*[local-name() = 'label']">
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 </xsl:stylesheet>

http://dive4elements.wald.intevation.org