Re: [xsl] special char in html textarea using xsl?

Subject: Re: [xsl] special char in html textarea using xsl?
From: Mike Brown <mike@xxxxxxxx>
Date: Thu, 22 Mar 2001 11:40:14 -0700 (MST)
Sylvia Lowden wrote:
> Thanks, but I've already tried those too.  They all show up in the text area
> as text rather than a linefeed.

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
<xsl:output method="html"/>

<xsl:template match="/">
    <html>
        <head>
        <title>foo</title>
        </head>
        <body>
            <form action="" method="GET">
                <textarea rows="6" cols="40" name="foo">
                    <xsl:text>some&#10;default&#10;value</xsl:text>
                </textarea>
            </form>
        </body>
    </html>
</xsl:template>

</xsl:stylesheet>

works just fine for me.

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


Current Thread