1 |
commit: e918c7dc8268c4a4723ab4b3a35479f4d191a765 |
2 |
Author: Markus Meier <maekke <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 31 09:29:41 2015 +0000 |
4 |
Commit: Markus Meier <maekke <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 31 09:29:41 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=e918c7dc |
7 |
|
8 |
use HTML5 doctype instead of xhtml one |
9 |
|
10 |
devbook.xsl | 9 ++++----- |
11 |
1 file changed, 4 insertions(+), 5 deletions(-) |
12 |
|
13 |
diff --git a/devbook.xsl b/devbook.xsl |
14 |
index c23a6fc..407e910 100644 |
15 |
--- a/devbook.xsl |
16 |
+++ b/devbook.xsl |
17 |
@@ -2,8 +2,7 @@ |
18 |
xmlns:str="http://exslt.org/strings" |
19 |
xmlns:exslt="http://exslt.org/common" |
20 |
extension-element-prefixes="str exslt xsl" |
21 |
- exclude-result-prefixes="str exslt xsl" |
22 |
- xmlns="http://www.w3.org/1999/xhtml"> |
23 |
+ exclude-result-prefixes="str exslt xsl"> |
24 |
|
25 |
<xsl:import href="xsl/str.tokenize.function.xsl"/> |
26 |
<xsl:import href="xsl/lang.highlight.c.xsl"/> |
27 |
@@ -12,8 +11,7 @@ |
28 |
<xsl:import href="xsl/lang.highlight.m4.xsl"/> |
29 |
<xsl:import href="xsl/lang.highlight.sgml.xsl"/> |
30 |
|
31 |
-<xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" |
32 |
- doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="yes"/> |
33 |
+<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/> |
34 |
|
35 |
<xsl:variable name="newline"> |
36 |
<xsl:text> |
37 |
@@ -416,7 +414,8 @@ |
38 |
</xsl:template> |
39 |
|
40 |
<xsl:template match="/"> |
41 |
- <html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> |
42 |
+ <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text> |
43 |
+ <html> |
44 |
<head> |
45 |
<title>Gentoo Development Guide: <xsl:value-of select="/guide/chapter[1]/title"/></title> |
46 |
<xsl:variable name="relative_path_depth" select="string-length(/guide/@self)-string-length(translate(/guide/@self, '/' , ''))"/> |