Mercurial > dive4elements > gnv-client
comparison gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 18:87002cbd194c
Static UI -integration an some refactoringwork done
gnv/trunk@103 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Thu, 17 Sep 2009 14:30:16 +0000 |
parents | |
children | 17c92f1f014b |
comparison
equal
deleted
inserted
replaced
17:d7e5a929fc34 | 18:87002cbd194c |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <xsl:stylesheet version="1.0" | |
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
4 xmlns="http://www.w3.org/2002/xforms" | |
5 xmlns:xform="http://www.w3.org/2002/xforms" | |
6 xmlns:art="http://www.intevation.de/2009/artifacts"> | |
7 <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no"/> | |
8 | |
9 <xsl:template match="*[local-name() = 'select']"> | |
10 <xsl:variable name="selectName" select="@ref"/> | |
11 <div id="timeseriesfilter"> | |
12 <form id="{$selectName}Form" method="post"> | |
13 <fieldset> | |
14 <legend><xsl:value-of select="@ref"/></legend> | |
15 <select name="{$selectName}" multiple="multiple" size="6" disabled="disabled"> <xsl:apply-templates/></select> | |
16 </fieldset> | |
17 </form> | |
18 </div> | |
19 </xsl:template> | |
20 <xsl:template match="*[local-name() = 'select1']"> | |
21 <xsl:variable name="selectName" select="@ref"/> | |
22 <div id="timeseriesfilter"> | |
23 <form id="{$selectName}Form" method="post"> | |
24 <fieldset> | |
25 <legend><xsl:value-of select="@ref"/></legend> | |
26 <select name="{$selectName}" disabled="disabled"> <xsl:apply-templates/></select> | |
27 </fieldset> | |
28 </form> | |
29 </div> | |
30 </xsl:template> | |
31 <xsl:template match="*[local-name() = 'item']"> | |
32 <xsl:variable name="optionValue" select="*[local-name() = 'value']"/> | |
33 <xsl:choose> | |
34 <xsl:when test="@selected = 'true'"> | |
35 <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option> | |
36 </xsl:when> | |
37 <xsl:otherwise> | |
38 <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option> | |
39 </xsl:otherwise> | |
40 </xsl:choose> | |
41 </xsl:template> | |
42 | |
43 | |
44 <xsl:template match="*[local-name() = 'input']"> | |
45 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/> | |
46 <xsl:variable name="inputName" select="*[local-name() = 'label']"/> | |
47 <xsl:value-of select="*[local-name() = 'label']"/>: <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/> | |
48 </xsl:template> | |
49 | |
50 <xsl:template match="*[local-name() = 'label']"> | |
51 </xsl:template> | |
52 </xsl:stylesheet> |