xsl-list
[Top] [All Lists]

RE: wierd textarea behaviour with xsl

2002-11-12 05:44:50
Hi,

This is wierd. My xsl code is simple :

<TR>
  <TD class="h4">Reason</TD>
  <TD>
    <textarea rows="5" cols="40"  name="comment" class="textbox"
        value="{./currentStatus/comment}" />
  </TD>
</TR>
[snip]
But what is displayed is a textbox that contains
</TD></TR></table><br/><TABLE and all the rest of the html for
the page till the </html> tag.

What the heck is going wrong? I can't see it. Please help.

Outputing something that is not HTML; the textarea element of HTML does not 
have a value attribute, instead use

  <textarea rows="5" cols="40"  name="comment" class="textbox">
    <xsl:value-of select="./currentStatus/comment" />
  </textarea>

Jarno - Leaether Strip: Worlds End

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list