Mercurial > dive4elements > gnv-client
view gnv/src/main/webapp/WEB-INF/config/templates/describe-ui-static.xsl @ 387:6de60d996475
First step of changing the operation concept. Static nodes will be rendered as text instead of disabled xforms.
gnv/trunk@502 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 04 Jan 2010 15:15:38 +0000 |
parents | 3be414dc974a |
children | 6e16dc005704 |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/2002/xforms" 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() = 'select']"> <xsl:variable name="selectName" select="@ref"/> <div id="timeseriesfilter"> <table> <tr> <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> <td> <table> <xsl:for-each select="./choices/item"> <xsl:if test="@selected = 'true'"> <tr><td class="value"><xsl:value-of select="./label"/></td></tr> </xsl:if> </xsl:for-each> </table> </td> </tr> </table> </div> </xsl:template> <xsl:template match="*[local-name() = 'select1']"> <xsl:variable name="selectName" select="@ref"/> <div id="timeseriesfilter"> <table> <tr> <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> <td><xsl:value-of select="./choices/item/label" /></td> </tr> </table> </div> </xsl:template> <xsl:template match="*[local-name() = 'group']"> <xsl:variable name="inputName" select="*[local-name() = 'label']"/> <div id="timeseriesfilter"> <table> <tr> <th class="parameter"><xsl:value-of select="*[local-name() = 'label']"/>:</th> <td> <table> <xsl:for-each select="./input"> <tr><td class="value"> <xsl:value-of select="./label"/> <xsl:value-of select="./value"/> </td></tr> </xsl:for-each> </table> </td> </tr> </table> </div> </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:choose> <xsl:when test="*[local-name() = 'label']!= ''"> <xsl:value-of select="*[local-name() = 'label']"/>: </xsl:when> </xsl:choose> <xsl:value-of select="*[local-name() = 'value']"/> </xsl:template> <xsl:template match="*[local-name() = 'label']"> </xsl:template> </xsl:stylesheet>