commit: 755232aed004ad81c54a2893788d0833e1fe6177
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 10 18:32:02 2021 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 10 18:32:02 2021 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=755232ae
devbook.xsl: Properly declare HTML 5 output
Instead of hand-crafting a DOCTYPE line. libxslt-1.1.30 and later
support version="5" for the html output method.
Drop indent="yes" and omit-xml-declaration="yes" because they are the
defaults anyway.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
devbook.xsl | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/devbook.xsl b/devbook.xsl
index 7e34e94..1dcb55e 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -12,7 +12,7 @@
<xsl:import href="xsl/lang.highlight.m4.xsl"/>
<xsl:import href="xsl/lang.highlight.sgml.xsl"/>
-<xsl:output method="html" encoding="UTF-8" indent="yes"
omit-xml-declaration="yes"/>
+<xsl:output method="html" version="5" encoding="UTF-8"
doctype-system="about:legacy-compat"/>
<!-- When true, disable external assets for offline browsing.
The parameter can be passed with "xsltproc -\-param offline 1". -->
@@ -465,8 +465,6 @@
<xsl:with-param name="append">../</xsl:with-param>
</xsl:call-template>
</xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
- <xsl:value-of select='$newline'/>
<html lang="en">
<head>
<title><xsl:value-of select="/guide/chapter[1]/title"/> – Gentoo
Development Guide</title>