cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject svn commit: rev 57374 - cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/resources
Date Wed, 10 Nov 2004 21:19:51 GMT
Author: tim
Date: Wed Nov 10 13:19:51 2004
New Revision: 57374

Modified:
   cocoon/branches/BRANCH_2_1_X/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/branches/BRANCH_2_1_X/src/blocks/forms/samples/resources/forms-field-styling.xsl
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/resources/forms-field-styling.xsl
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/resources/forms-field-styling.xsl
Wed Nov 10 13:19:51 2004
@@ -222,7 +222,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"/>

Mime
View raw message