summaryrefslogtreecommitdiff
path: root/docs/page.xsl
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2017-07-26 18:01:25 +0100
committerDaniel P. Berrange <berrange@redhat.com>2017-08-02 17:00:11 +0100
commitb1c81567c7172bc9dcd701cf46ea3f87725d62c7 (patch)
tree7e326dfdf7bc45bca065d0a133ce5c2755b1602e /docs/page.xsl
parent8dace0f02f217e2b35f8184c7f65d07e063ba73b (diff)
downloadlibvirt-b1c81567c7172bc9dcd701cf46ea3f87725d62c7.tar.gz
docs: switch to using HTML5 doctype declaration
The HTML5 doctype is simply <!DOCTYPE html> no DTD is present because HTML5 is no longer defined as an extension of SGML. XSL has no way to natively output a doctype without a public or system identifier, so we have to use an <xsl:text> hack instead. See also https://dev.w3.org/html5/html-author/#doctype-declaration Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'docs/page.xsl')
-rw-r--r--docs/page.xsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/page.xsl b/docs/page.xsl
index 9e7f9a53f5..671d9400cc 100644
--- a/docs/page.xsl
+++ b/docs/page.xsl
@@ -76,6 +76,8 @@
<xsl:template match="/" mode="page">
<xsl:param name="pagename"/>
<xsl:param name="timestamp"/>
+ <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;
+</xsl:text>
<html>
<xsl:comment>
This file is autogenerated from <xsl:value-of select="$pagename"/>.in