diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 291:b48172dc24ed

Added demo wkt linestrings via xslt and javascript. gnv/trunk@453 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 17 Dec 2009 15:41:26 +0000
parents 3be414dc974a
children 1b8fd2635ce4
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Wed Dec 16 23:10:03 2009 +0000
+++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl	Thu Dec 17 15:41:26 2009 +0000
@@ -40,14 +40,19 @@
         <xsl:variable name="inputValue" select="*[local-name() = 'value']"/>
         <xsl:variable name="inputName" select="@ref"/>
         
+        <xsl:if test="$inputName = 'mesh_linestring'">
+            <a href="javascript:copy_demo_wkt_line();"><xsl:text>Beispiel WKT-Linestring einf&#252;gen:</xsl:text></a><br/>
+        </xsl:if>
+
         <xsl:choose>
            <xsl:when test="*[local-name() = 'label']!= ''">
                <xsl:value-of select="*[local-name() = 'label']"/>: 
            </xsl:when>
         </xsl:choose>
+
         <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
+</xsl:stylesheet>

http://dive4elements.wald.intevation.org