Re: [xsl] textarea xml/html ptoblem

Subject: Re: [xsl] textarea xml/html ptoblem
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 15 Jul 2006 08:13:18 +0100
>>>>> "Mohsen" == Mohsen Saboorian <mohsens@xxxxxxxxx> writes:

    Mohsen> I have a <textarea></textarea> somewhere in my xsl
    Mohsen> file. When transforming it to xhtml, the element is
    Mohsen> outputed as <textarea /> which leads to problem in IE (FF
    Mohsen> works fine). IE shows the next elements as textarea
    Mohsen> content value.  This problems solves when using <output
    Mohsen> method="xhtml" />, but this works only with XSLT 2.0. Is
    Mohsen> there any solution with 1.0?

I think there are no good solutions.
method=html seems advisable - you can still specify the xhtml doctype.

Note that IE doesn't actually support xhtml, as you have just seen, so
you have to try to convince it you are serving it with legacy
html. The rules governing the implementation of the XSLT 2.0 xhtml
output method ensure you can do just that.
-- 
Colin Adams
Preston Lancashire

Current Thread