ivelin 2002/10/23 06:43:02
Modified: src/webapp/samples/stylesheets/xmlform xmlform2html.xsl
Log:
applied patch by [EMAIL PROTECTED]
Revision Changes Path
1.5 +5 -4
xml-cocoon2/src/webapp/samples/stylesheets/xmlform/xmlform2html.xsl
Index: xmlform2html.xsl
===================================================================
RCS file:
/home/cvs/xml-cocoon2/src/webapp/samples/stylesheets/xmlform/xmlform2html.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- xmlform2html.xsl 28 Sep 2002 19:43:06 -0000 1.4
+++ xmlform2html.xsl 23 Oct 2002 13:43:02 -0000 1.5
@@ -23,14 +23,14 @@
author: Torsten Curdt, [EMAIL PROTECTED], March 2002
author: Simon Price <[EMAIL PROTECTED]>, September 2002
author: Konstantin Piroumian <[EMAIL PROTECTED]>, September 2002
-
+ author: Robert Ellis Parrott <[EMAIL PROTECTED]>, October 2002
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
- <xsl:output method = "html" omit-xml-declaration = "yes" />
+ <xsl:output method = "xml" omit-xml-declaration = "no" />
<xsl:template match="/">
@@ -68,10 +68,11 @@
<xsl:template match="xf:textarea">
- <input name="{@ref}" type="textarea" value="{xf:value/text()}">
+ <textarea name="{@ref}" >
<xsl:copy-of select="@*[not(name()='ref')]"/>
+ <xsl:value-of select="xf:value/text()"/>
<xsl:apply-templates select="xf:hint"/>
- </input>
+ </textarea>
</xsl:template>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]