diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.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 9b7f74e58f8d
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Fri Oct 02 09:10:36 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Fri Oct 02 14:29:08 2009 +0000
@@ -8,12 +8,12 @@
     
     <xsl:template match="*[local-name() = 'select']">
         <xsl:variable name="selectName" select="@ref"/>
-	                <legend><xsl:value-of select="@ref"/></legend>
+	                <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
 	                <select name="{$selectName}" multiple="multiple" size="6"> <xsl:apply-templates/></select>
     </xsl:template>
     <xsl:template match="*[local-name() = 'select1']">
         <xsl:variable name="selectName" select="@ref"/>
-                    <legend><xsl:value-of select="@ref"/></legend>
+                    <legend><xsl:value-of select="*[local-name() = 'label']"/></legend>
                     <select name="{$selectName}"> <xsl:apply-templates/></select>
     </xsl:template>
     <xsl:template match="*[local-name() = 'item']">
@@ -31,7 +31,7 @@
     
     <xsl:template match="*[local-name() = 'input']">
         <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
-        <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
+        <xsl:variable name="inputName" select="@ref"/>
         <xsl:value-of select="*[local-name() = 'label']"/>: <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/> 
     </xsl:template>
     

http://dive4elements.wald.intevation.org