xsl-list
[Top] [All Lists]

Re: <textarea>, HTML and CDATA

2003-02-03 19:15:20
On 2/3/03 8:57 PM, "Mike Brown" <mike(_at_)skew(_dot_)org> wrote:

Anode wrote:
I'm having trouble figuring out how to transform to a textarea tag
containing unescaped XHTML.

The content of a textarea element is not allowed to be "unescaped". It is
character data. What is the input XML you have and what is the output XHTML
you really need?

For example
XML:
<codebox>
<strong>Hello, World!</strong>
</codebox>
Output XHTML
<form>
<textarea rows = "5" columns = "50">
<strong>Hello, World!</strong>
</textarea>
</form>

The purpose would be to provide a textarea with code my visitors can cut and
paste.  Hope that clears it up a bit.

Thanks, 
Anode


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