diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 12:4ebe57b170d3

Integration of moving through the Artifact-States and rendering the UI. gnv/trunk@91 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Wed, 16 Sep 2009 07:44:26 +0000
parents 3cb753564552
children 2535158e2687
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Tue Sep 15 14:19:55 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Wed Sep 16 07:44:26 2009 +0000
@@ -5,14 +5,27 @@
                 xmlns:xform="http://www.w3.org/2002/xforms" 
                 xmlns:art="http://www.intevation.de/2009/artifacts">
     <xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no"/>
+    
+    <xsl:template match="*[local-name() = 'ui']">
+        <xsl:apply-templates/>
+    </xsl:template>
     <xsl:template match="*[local-name() = 'select']">
-    <xsl:variable name="selectName" select="@ref"/>
+        <xsl:variable name="selectName" select="@ref"/>
         <select name="{$selectName}"> <xsl:apply-templates/></select>
     </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>
+        <option value="{$optionValue}"><xsl:value-of select="*[local-name() = 'label']"></xsl:value-of></option>
     </xsl:template>
+    
+    
+    <xsl:template match="*[local-name() = 'input']">
+        <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
+        <xsl:variable name="inputName" select="*[local-name() = 'label']"/>
+        <xsl:value-of select="*[local-name() = 'label']"/>: <input type="text" id="{$inputName}" name="{$inputName}" value="{$inputValue}" /><br/> 
+    </xsl:template>
+    
     <xsl:template match="*[local-name() = 'label']">
     </xsl:template>
+    
 </xsl:stylesheet>
\ No newline at end of file

http://dive4elements.wald.intevation.org