This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: special char in html textarea using xsl?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]