Re: HTML5 output method

On 22.12.2010 03:07, James Clark wrote:
> 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

No, that sounds like the complete list to me.

Best regards, Julian

Received on Wednesday, 22 December 2010 08:48:17 UTC