You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ti...@apache.org on 2004/11/01 18:54:00 UTC
svn commit: rev 56260 - cocoon/trunk/src/blocks/forms/samples/resources
Author: tim
Date: Mon Nov 1 09:53:58 2004
New Revision: 56260
Modified:
cocoon/trunk/src/blocks/forms/samples/resources/forms-field-styling.xsl
Log:
For output-styled fields with selection lists, suppress output
of the <fi:label> element around the selected element's label.
Modified: cocoon/trunk/src/blocks/forms/samples/resources/forms-field-styling.xsl
==============================================================================
--- cocoon/trunk/src/blocks/forms/samples/resources/forms-field-styling.xsl (original)
+++ cocoon/trunk/src/blocks/forms/samples/resources/forms-field-styling.xsl Mon Nov 1 09:53:58 2004
@@ -218,7 +218,7 @@
<xsl:variable name="selected" select="fi:selection-list/fi:item[@value = $value]"/>
<xsl:choose>
<xsl:when test="$selected/fi:label">
- <xsl:apply-templates select="$selected/fi:label"/>
+ <xsl:copy-of select="$selected/fi:label/node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$value"/>