- From: James Clark <jjc@jclark.com>
- Date: Wed, 22 Dec 2010 09:07:41 +0700
- To: public-html-xml@w3.org
- Message-ID: <AANLkTimMJB_8dz-qJ8rk7d4RDQqdFH4WOOCS5oDZdnf-@mail.gmail.com>
On the telcon, we talked about an HTML5 output method for XSLT/XQuery. I was looking at HTML output method for XSLT 1.0 to see how well it would work with HTML5. Although it's far from ideal, in practice I think it would work reasonably well. HTML5 has added a few void elements that XSLT won't know about (command, embed, keygen, source, track, wbr), but I believe HTML5's error handling will ignore the end-tag that XSLT will generate in these cases. Elements with a non-null namespace URI will be handled like XML, so embedded MathML and SVG will work fine provided you do use a namespace for these (and don't for HTML). The user would also have to be careful to use the default namespace rather than a prefix for SVG and MathML. XSLT can't output <!DOCTYPE html>, but HTML5 allows <!DOCTYPE html SYSTEM "about:legacy-compat"> as an alternative. Have I missed any critical problems? James
Received on Wednesday, 22 December 2010 02:08:14 UTC