Mercurial > dive4elements > gnv-client
diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 392:1b8fd2635ce4
Added wkt polygon to test the "Horizontalschnitt"
gnv/trunk@535 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 13 Jan 2010 06:51:52 +0000 |
parents | b48172dc24ed |
children | d812c5b62eb4 |
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Sat Jan 09 17:02:03 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Wed Jan 13 06:51:52 2010 +0000 @@ -40,9 +40,15 @@ <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ügen:</xsl:text></a><br/> - </xsl:if> + <!-- TODO: Remove this when we have the GIS interface. (slt) --> + <xsl:choose> + <xsl:when test="$inputName = 'mesh_linestring'"> + <a href="javascript:copy_demo_wkt_line();"><xsl:text>Beispiel WKT-Linestring einfügen:</xsl:text></a><br/> + </xsl:when> + <xsl:when test="$inputName = 'mesh_polygon'"> + <a href="javascript:copy_demo_wkt_polygon();"><xsl:text>Beispiel WKT-Linestring einfügen:</xsl:text></a><br/> + </xsl:when> + </xsl:choose> <xsl:choose> <xsl:when test="*[local-name() = 'label']!= ''">