comparison gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 21:17c92f1f014b

Some GUI improvements done gnv/trunk@116 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 23 Sep 2009 15:04:39 +0000
parents 87002cbd194c
children 6c46f9b16166
comparison
equal deleted inserted replaced
20:2f4ae7d9e058 21:17c92f1f014b
16 <legend><xsl:value-of select="@ref"/></legend> 16 <legend><xsl:value-of select="@ref"/></legend>
17 <select name="{$selectName}"> <xsl:apply-templates/></select> 17 <select name="{$selectName}"> <xsl:apply-templates/></select>
18    </xsl:template> 18    </xsl:template>
19 <xsl:template match="*[local-name() = 'item']"> 19 <xsl:template match="*[local-name() = 'item']">
20 <xsl:variable name="optionValue" select="*[local-name() = 'value']"/> 20 <xsl:variable name="optionValue" select="*[local-name() = 'value']"/>
21 <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option> 21 <xsl:choose>
22 <xsl:when test="@selected = 'true'">
23 <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
24 </xsl:when>
25 <xsl:otherwise>
26 <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
27 </xsl:otherwise>
28 </xsl:choose>
22 </xsl:template> 29 </xsl:template>
23 30
24 31
25 <xsl:template match="*[local-name() = 'input']"> 32 <xsl:template match="*[local-name() = 'input']">
26 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/> 33 <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>

http://dive4elements.wald.intevation.org