This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Empty textarea tag in stylesheet
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: "Charles Knell" <cknell at onebox dot com>
- Cc: XSL-List at lists dot mulberrytech dot com
- Date: Thu, 16 May 2002 18:03:33 +0100
- Subject: Re: [xsl] Empty textarea tag in stylesheet
- Organization: Jeni Tennison Consulting Ltd
- References: <20020516164456.QKVM4694.mta07.onebox.com@onebox.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Charles,
> If the issue isn't immediately clear, let me explain. When the
> parser collapses an empty textarea tag set (<textarea></textarea>
> becomes <textarea />), the browser simply puts all of the document
> beyond that point into the textarea and displays it as literal,
> rather than parsing it as HTML markup.
Have you tried:
- setting the *output method* to 'html' (which is different from
setting the media-type to text/html) -- set the method attribute
of xsl:output to 'html'
- creating a comment between the two textarea tags:
<textarea>
<xsl:comment>prevents the textarea collapsing</xsl:comment>
</textarea>
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list