You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@apache.org on 2005/10/25 10:35:21 UTC
svn commit: r328313 -
/cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
Author: giacomo
Date: Tue Oct 25 01:35:17 2005
New Revision: 328313
URL: http://svn.apache.org/viewcvs?rev=328313&view=rev
Log:
@state="output" in selections-list should display the label
Modified:
cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
Modified: cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl
URL: http://svn.apache.org/viewcvs/cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl?rev=328313&r1=328312&r2=328313&view=diff
==============================================================================
--- cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl (original)
+++ cocoon/blocks/forms/trunk/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl Tue Oct 25 01:35:17 2005
@@ -285,12 +285,20 @@
</xsl:template>
<!--+
+ | @state="output" in selections-list should display the label
+ +-->
+ <xsl:template match="fi:field[@state='output' and fi:selection-list]">
+ <xsl:variable name="value" select="fi:value/node()"/>
+ <span id="{@id}"><xsl:copy-of select="fi:selection-list/fi:item[@value=$value]/fi:label/node()"/></span>
+ </xsl:template>
+
+ <!--+
| fi:output is rendered as text
+-->
<xsl:template match="fi:output">
<span id="{@id}"><xsl:copy-of select="fi:value/node()"/></span>
</xsl:template>
-
+
<!--+
| fi:field with @type 'output' used to be allowed but causes too much problems
+-->