Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: I want to have an empty textarea [Thread Next] Re: I want to have an empty textareaTo: NULL Date: 2/9/2007 6:16:00 PM roy axenov wrote: >> When I remove the '#' to get an empty textare, the endtag >> is collapsed into the begintag and all the HTML code >> after the textarea is displayed into the textare. How can >> I get an empty textarea? > > You do get an empty textarea element, it is just being > serialized as XML. There are a few possible causes for > this: > > - you might've forgotten to set <xsl:output method="html" > ... /> in your transformation. If this is the case, the > fix should be obvious. > - your XSLT processor doesn't grok <xsl:output method= > "html" ... /> and blissfully serializes the resulting > tree as XML anyway. If this is the case, change your > XSLT processor. I did not use xsl:output, but using it only complicated things. It made all the tags uppercase and even added some tags. But the textarea kept being generated the xml way. This was when using the firefox browser as xslt-processor. When the processing is done on the server there is no problem. But I like the processing to be done in the browser. I decided to just use a '#' as a placeholder when I need an empty textarea and delete the '#' with javascript. The only problem with this is that I can not have a textarea filled with only a '#', but I think I can live with that. :-} | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
