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 2003/05/07 11:11:59 UTC
cvs commit: cocoon-2.1/src/scratchpad/webapp/samples/jxforms/stylesheets jxforms2html.xsl
giacomo 2003/05/07 02:11:59
Modified: src/scratchpad/webapp/samples/jxforms/stylesheets
jxforms2html.xsl
Log:
removed CR
Revision Changes Path
1.4 +17 -4 cocoon-2.1/src/scratchpad/webapp/samples/jxforms/stylesheets/jxforms2html.xsl
Index: jxforms2html.xsl
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/scratchpad/webapp/samples/jxforms/stylesheets/jxforms2html.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -b -u -r1.3 -r1.4
--- jxforms2html.xsl 6 May 2003 14:13:02 -0000 1.3
+++ jxforms2html.xsl 7 May 2003 09:11:59 -0000 1.4
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
+
<!--
Basic XMLForm processing stylesheet.
@@ -185,10 +186,20 @@
<xsl:template match="xf:submit">
<!-- the id attribute of the submit control is sent to the server -->
<!-- as a conventional Cocoon Action parameter of the form cocoon-action-* -->
+ <xsl:choose>
+ <xsl:when test="@src">
+ <input name="cocoon-action-{@id}" type="image" value="{xf:label/text()}">
+ <xsl:copy-of select="@*[not(name()='id')]"/>
+ <xsl:apply-templates select="xf:hint"/>
+ </input>
+ </xsl:when>
+ <xsl:otherwise>
<input name="cocoon-action-{@id}" type="submit" value="{xf:label/text()}">
<xsl:copy-of select="@*[not(name()='id')]"/>
<xsl:apply-templates select="xf:hint"/>
</input>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="xf:hint">
@@ -205,4 +216,6 @@
<xsl:value-of select="." />
</xsl:template>
+
</xsl:stylesheet>
+