W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: "Canonical" HTML5 and XHTML5 output

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>
Message-ID: <op.tv0f32rg64w2qv@annevk-t60.oslo.opera.com>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:02 GMT