Mercurial > dive4elements > gnv-client
diff gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl @ 998:27029f0ec7e1
Reverted the changes of rev1194.
gnv/trunk@1199 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 11 Jun 2010 10:28:50 +0000 |
parents | 9b126bceb0b2 |
children | b1eea43ba133 |
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Fri Jun 11 09:25:44 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Fri Jun 11 10:28:50 2010 +0000 @@ -11,45 +11,19 @@ <xsl:param name="example-linestring"/> <xsl:param name="example-polygon"/> - <xsl:param name="next-url">/gnv/next.do</xsl:param> - <xsl:param name="further">false</xsl:param> - <xsl:param name="exception"/> - <xsl:param name="gnviewer-select-button-src">./images/auswaehlen.png</xsl:param> - - <xsl:template match="node()"> - <div id="timeseriesfilter"> - <form id="fisSelectionForm" - onsubmit="displayOverlay()" - action="{$next-url}" - method="post"> - <fieldset> - <xsl:if test="$exception != ''"> - <div class="inputException"><xsl:value-of select="$exception"/></div> - </xsl:if> - <xsl:apply-templates mode="basic"/> - <h2>Here i am</h2> - <h2>"<xsl:value-of select="$further"/>"</h2> - <xsl:if test="$further = 'true'"> - <br/> - <input style="margin-top: 5px;" type="image" src="{$gnviewer-select-button-src}"/> - </xsl:if> - </fieldset> - </form> - </div> - </xsl:template> <!-- single select --> - <xsl:template match="xform:select1" mode="basic"> + <xsl:template match="xform:select1"> <xsl:variable name="selectName" select="@ref"/> <legend><xsl:value-of select="xform:label"/></legend> <select name="{$selectName}"> - <xsl:apply-templates mode="basic"/> + <xsl:apply-templates /> </select> </xsl:template> <!-- multi select --> - <xsl:template match="xform:select" mode="basic"> + <xsl:template match="xform:select"> <xsl:variable name="selectName" select="@ref"/> <xsl:variable name="items" select="count(//xform:item)"/> <legend> @@ -64,12 +38,12 @@ </xsl:when> <xsl:when test="$items < 5"> <select name="{$selectName}" multiple="multiple" size="{$items}"> - <xsl:apply-templates mode="basic"/> + <xsl:apply-templates/> </select> </xsl:when> <xsl:otherwise> <select name="{$selectName}" multiple="multiple" size="5"> - <xsl:apply-templates mode="basic"/> + <xsl:apply-templates /> </select> </xsl:otherwise> </xsl:choose> @@ -77,7 +51,7 @@ <!-- options for select --> - <xsl:template match="xform:item" mode="basic"> + <xsl:template match="xform:item"> <xsl:variable name="optionValue" select="xform:value"/> <xsl:choose> <xsl:when test="@selected = 'true'"> @@ -103,7 +77,7 @@ - <xsl:template match="xform:group" mode="basic"> + <xsl:template match="xform:group"> <xsl:variable name="selectcount" select="count(xform:select)"/> <legend> @@ -113,7 +87,7 @@ <xsl:choose> <xsl:when test="$selectcount < '1'"> <table class="dynamic"> - <xsl:apply-templates mode="basic"/> + <xsl:apply-templates/> </table> </xsl:when> <xsl:otherwise> @@ -178,7 +152,7 @@ </xsl:template> - <xsl:template match="xform:input" mode="basic"> + <xsl:template match="xform:input"> <xsl:variable name="inputValue" select="xform:value"/> <xsl:variable name="inputName" select="@ref"/> <xsl:variable name="label" select="xform:label"/> @@ -207,7 +181,7 @@ </xsl:template> - <xsl:template match="xform:label" mode="basic"> + <xsl:template match="xform:label"> <!-- do nothing here --> </xsl:template>