You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2003/06/26 11:19:29 UTC
cvs commit: cocoon-2.1/src/blocks/woody/samples/xsl/html woody-default.xsl
bruno 2003/06/26 02:19:29
Modified: src/blocks/woody/samples/xsl/html woody-default.xsl
Log:
Added template to format aggregatefield widget
Revision Changes Path
1.4 +13 -0 cocoon-2.1/src/blocks/woody/samples/xsl/html/woody-default.xsl
Index: woody-default.xsl
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/xsl/html/woody-default.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- woody-default.xsl 14 May 2003 11:36:46 -0000 1.3
+++ woody-default.xsl 26 Jun 2003 09:19:29 -0000 1.4
@@ -176,6 +176,19 @@
</table>
</xsl:template>
+ <xsl:template match="wi:aggregatefield">
+ <input name="{@id}" value="{wi:value}"/>
+
+ <xsl:if test="wi:validation-message">
+ <xsl:call-template name="validation-message">
+ <xsl:with-param name="message" select="wi:validation-message"/>
+ </xsl:call-template>
+ </xsl:if>
+ <xsl:if test="@required='true'">
+ <b>*</b>
+ </xsl:if>
+ </xsl:template>
+
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>