RE: 2 questions about textarea

Subject: RE: 2 questions about textarea
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Fri, 24 Sep 1999 10:43:25 +0100
> > 1. If you have an empty value within textarea as: <textarea
> > name="a"><xsl:value-of select="nothing"/></textarea> where 
> > "nothing" is empty. It will output <textarea name="a"/>. I 
> want <textarea
> > name="a"></textarea>. Is there any way to work around this problem?
> 
> Why is this a problem? The two are totally equivalent. You 
> will be saying
> next that
> you want the attribute in single quotes rather than double quotes.

I suspect it is because he wants to output in HTML format; browsers
(particularly of the NS variety) tend to get confused if you don't close
your <textarea> tags (ie. with a </textarea> tag) - the rest of the document
appears in text form within the textbox.


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


Current Thread