On 05/12/2012 09:26, Leonid Schleicher wrote:
On 12/05/2012 09:10 AM, Michael Kay wrote:
I think the closest you are likely to get is by using <xsl:output method="xhtml">. Certainly this should produce output that (a) is valid XML, and (b) displays correctly in the browser. Whether it is "valid" HTML 5 is an open question, since no-one quite knows what the word means.
Yes, this works in first approach
I have one little question - how to produce correct html5 doctype in saxon?
<!Doctype html>

You can do this with <xsl:output method="html" version="5"> - I think that works from version 9.4. You can't do this with the XHTML output method, of course, because it's not valid XML.

Michael Kay