You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/10/23 16:24:07 UTC

DO NOT REPLY [Bug 13881] New: - textarea in XMLForm not converted to true HTML textareas.

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: cocoon-dev@xml.apache.org
        ReportedBy: parrott@fas.harvard.edu


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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org