Re: Doctypes and the dialects of HTML 5

Henri Sivonen wrote:

>> In XSLT you are not able to output just:
>>
>> <!DOCTYPE html>
>>
>> This is serious limitation of HTML5 as amount of content produced by
>> XSLT is enormous.
> 
> It is a limitation of XSLT!

Interesting. I'm quite surprised that many people coming from WHATWG
camp are somewhat flexible with arguments.

Once support for legacy stuff is treated as something to which HTML5
must fits completely (e.g. <!DOCTYPE html>, <meta charset="...">). Other
time, 8 years old technology which is widely deployed (XSLT 1.0) is
accused of not supporting HTML5.

> the browser (not a great idea), you can output XHTML5 right away. If you
> are running XSLT on the server side, just take SAX output from the XSLT
> engine and chain a SAX to HTML5 serializer to it. And there's no good
> reason why an HTML5 serialization mode could not be added to the
> built-in serializers of XSLT engines.

In ideal world -- of course. In real world -- hardly. Who will pay for
doing necessary changes?

With this approach I could say that there is no good reason why XHTML
parsing mode could not be added to the Web browsers. Sounds silly, isn't?

I think that HTML5 should be as backwards compatible as possible. I
think that all will agree with this.

The question is what do will less harm (I'm talking only about HTML
serialization):

1. Requiring <!DOCTYPE html>

2. Allowing <!DOCTYPE html>

3. Requiring either <!DOCTYPE html> or <!DOCTYPE html PUBLIC "...">

And please bear in mind that there are other tools then notepad and
browsers which deal with markup.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
------------------------------------------------------------------
 Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html

Received on Sunday, 25 March 2007 09:38:23 UTC