- From: Anne van Kesteren <annevk@opera.com>
- Date: Wed, 25 Jul 2007 09:51:28 +0200
- To: "Jon Barnett" <jonbarnett@gmail.com>, "Robert Burns" <rob@robburns.com>, public-html <public-html@w3.org>
On Tue, 24 Jul 2007 21:03:02 +0200, Jon Barnett <jonbarnett@gmail.com> wrote: > On 7/24/07, Robert Burns <rob@robburns.com> wrote: >> You can simply transform nothing >> except reduced the DocType down to "<!DOCTYPE HTML >". XSLT output to >> HTML with the same DocType would also be sufficient. > > It was pointed out to me that you can use <xsl:text > disable-output-escaping="yes"> to spit out <!DOCTYPE HTML> before the > root element. This works on most XSLT implementations, but not, for > example, Firefox, which doesn't support dispable-output-escaping. If you do the transformation client-side the DOCTYPE is not relevant at all. It's only there to trigger standards mode rendering. (You also don't need it in XHTML for that reason as XML doesn't have DOCTYPE switching.) -- Anne van Kesteren <http://annevankesteren.nl/> <http://www.opera.com/>
Received on Wednesday, 25 July 2007 07:51:40 UTC