W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > June 2008

[Bug 5803] HTML5 serialization is not compatible with XSLT

From: <bugzilla@wiggum.w3.org>
Date: Wed, 25 Jun 2008 21:16:18 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1KBcLi-0008RD-PY@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 June 2008 21:17:02 GMT