DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13881>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13881

textarea in XMLForm not converted to true HTML textareas.

           Summary: textarea in XMLForm not converted to true HTML
                    textareas.
           Product: Cocoon 2
           Version: Current CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: general components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The xmlform2html.xsl stylesheet converts <xf:textarea> tag to <input
type="textarea"> tags instead of true <textarea> tags. This makes multiline
editing impossible (or at least a pain), since browsers seem to regard this as
just a textbox instead of textarea.

patch below; patches
xml-cocoon2/src/webapp/samples/stylesheets/xmlform/xmlform2html.xsl
---------------------------------

--- xmlform2html.xsl.orig       Wed Oct 23 10:12:02 2002
+++ xmlform2html.xsl    Wed Oct 23 10:13:59 2002
@@ -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>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to