comparison gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 966:13de46229f63

I18N of links to insert example linestrings/polygons (issue272). gnv/trunk@1123 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 25 May 2010 14:30:25 +0000
parents 5c36da3d9e17
children 9b126bceb0b2
comparison
equal deleted inserted replaced
965:b7c6bf3cd7c9 966:13de46229f63
6 xmlns:art="http://www.intevation.de/2009/artifacts" 6 xmlns:art="http://www.intevation.de/2009/artifacts"
7 exclude-result-prefixes="xform art"> 7 exclude-result-prefixes="xform art">
8 8
9 <xsl:output 9 <xsl:output
10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> 10 method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="no" />
11
12 <xsl:param name="example-linestring"/>
13 <xsl:param name="example-polygon"/>
11 14
12 <!-- single select --> 15 <!-- single select -->
13 <xsl:template match="xform:select1"> 16 <xsl:template match="xform:select1">
14 <xsl:variable name="selectName" select="@ref"/> 17 <xsl:variable name="selectName" select="@ref"/>
15 <legend><xsl:value-of select="xform:label"/></legend> 18 <legend><xsl:value-of select="xform:label"/></legend>
155 <xsl:variable name="label" select="xform:label"/> 158 <xsl:variable name="label" select="xform:label"/>
156 159
157 <!-- TODO: Remove this when we have the GIS interface. (slt) --> 160 <!-- TODO: Remove this when we have the GIS interface. (slt) -->
158 <xsl:choose> 161 <xsl:choose>
159 <xsl:when test="$inputName = 'mesh_linestring'"> 162 <xsl:when test="$inputName = 'mesh_linestring'">
160 <a href="javascript:copy_demo_wkt_line();"><xsl:text>Beispiel WKT-Linestring einf&#252;gen:</xsl:text></a><br/> 163 <a href="javascript:copy_demo_wkt_line();"><xsl:value-of select="$example-linestring"/>:</a><br/>
161 </xsl:when> 164 </xsl:when>
162 <xsl:when test="$inputName = 'mesh_polygon'"> 165 <xsl:when test="$inputName = 'mesh_polygon'">
163 <a href="javascript:copy_demo_wkt_polygon();"><xsl:text>Beispiel WKT-Polygon einf&#252;gen:</xsl:text></a><br/> 166 <a href="javascript:copy_demo_wkt_polygon();"><xsl:value-of select="$example-polygon"/>:</a><br/>
164 </xsl:when> 167 </xsl:when>
165 </xsl:choose> 168 </xsl:choose>
166 169
167 <tr> 170 <tr>
168 <xsl:choose> 171 <xsl:choose>

http://dive4elements.wald.intevation.org