diff options
author | 2021-03-10 19:32:02 +0100 | |
---|---|---|
committer | 2021-03-10 19:32:02 +0100 | |
commit | 755232aed004ad81c54a2893788d0833e1fe6177 (patch) | |
tree | 5b241f0d0f71982ee1cfd6c528a06cf2fbe0fedf /devbook.xsl | |
parent | devbook.xsl: Drop unnecessary xsl:text elements (diff) | |
download | devmanual-755232aed004ad81c54a2893788d0833e1fe6177.tar.gz devmanual-755232aed004ad81c54a2893788d0833e1fe6177.tar.bz2 devmanual-755232aed004ad81c54a2893788d0833e1fe6177.zip |
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@gentoo.org>
Diffstat (limited to 'devbook.xsl')
-rw-r--r-- | devbook.xsl | 4 |
1 files changed, 1 insertions, 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> |