diff 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
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Tue Sep 22 13:09:09 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Wed Sep 23 15:04:39 2009 +0000
@@ -18,7 +18,14 @@
     </xsl:template>
     <xsl:template match="*[local-name() = 'item']">
         <xsl:variable name="optionValue" select="*[local-name() = 'value']"/>
-        <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
+        <xsl:choose>
+           <xsl:when test="@selected = 'true'">
+               <option value="{$optionValue}" selected="selected"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
+           </xsl:when>
+           <xsl:otherwise>
+               <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
+           </xsl:otherwise>
+        </xsl:choose>
     </xsl:template>
     
     

http://dive4elements.wald.intevation.org