[Bug 5803] HTML5 serialization is not compatible with XSLT

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5803


Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #5 from Ian 'Hixie' Hickson <ian@hixie.ch>  2008-06-25 21:16:18 ---
You can already use XSLT with HTML5 if you really want to, using either:

   <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE ...&gt;</xsl:text>

...or (suffering excess output and a parse error):

   <xsl:output method="html" doctype-public=""/>

...or by just outputting XHTML instead of HTML, or by outputting to a DOM
instead of text/html.

This is a limitation of XSLT. There's no reason why we should be bending over
backwards here when XSLT could much more easily be changed to support
outputting short DOCTYPEs. (Even more so since those are valid XML too.)

Also, note that there are much harder problems to deal with in the HTML syntax
than just the DOCTYPE. For instance, the complications around comments in CDATA
blocks. If XSLT can deal with those, it can certainly deal with outputting
shorter DOCTYPEs.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 25 June 2008 21:17:01 UTC