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]
Other format: [Raw text]

Re: Empty textarea tag in stylesheet


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


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