<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
It is getting a parse error in DOCTYPE. how to resolve this?
The W3C HTML 5 Reference recommends using
doctype-system="about:legacy-compat":You can achieve this with any XSLT processor with the following:
It will generate: