Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/devmanual:master commit in: /
Date: Tue, 21 Jan 2020 21:53:09
Message-Id: 1579642527.264672ddb6857313b7ba9426853d58e3b61b6590.ulm@gentoo
1 commit: 264672ddb6857313b7ba9426853d58e3b61b6590
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 21 21:35:27 2020 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 21 21:35:27 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=264672dd
7
8 devbook.xsl: Remove tcolumn element.
9
10 Not clear what the original intention of this was, but:
11 - <tcolumn> was never used in the devmanual.
12 - The generated HTML would have been invalid, because it contained
13 <col> without an enclosing <colgroup>.
14 - The width attribute is deprecated in HTML 4 and obsolete in HTML 5.
15
16 Remove for now from devbook.xsl; update devbook.dtd accordingly.
17
18 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
19
20 devbook.dtd | 7 ++-----
21 devbook.xsl | 4 ----
22 2 files changed, 2 insertions(+), 9 deletions(-)
23
24 diff --git a/devbook.dtd b/devbook.dtd
25 index 455397b..d213d0c 100644
26 --- a/devbook.dtd
27 +++ b/devbook.dtd
28 @@ -1,4 +1,4 @@
29 -<!-- Copyright 2019 Gentoo Authors -->
30 +<!-- Copyright 2019-2020 Gentoo Authors -->
31 <!-- Distributed under the terms of the MIT/X11 license -->
32
33 <!-- Document Type Definition for the Gentoo Devmanual -->
34 @@ -55,10 +55,7 @@
35 short CDATA #IMPLIED
36 caption CDATA #IMPLIED>
37
38 -<!ELEMENT table (tcolumn*, tr+)>
39 -
40 -<!ELEMENT tcolumn EMPTY>
41 -<!ATTLIST tcolumn width CDATA #REQUIRED>
42 +<!ELEMENT table (tr)+>
43
44 <!ELEMENT tr (th|ti)+>
45
46
47 diff --git a/devbook.xsl b/devbook.xsl
48 index 8c367d4..8d8d082 100644
49 --- a/devbook.xsl
50 +++ b/devbook.xsl
51 @@ -89,10 +89,6 @@
52 <tr><xsl:apply-templates/></tr>
53 </xsl:template>
54
55 - <xsl:template match="tcolumn">
56 - <col width="{@width}"/>
57 - </xsl:template>
58 -
59 <!-- Table Item -->
60 <xsl:template match="ti">
61 <td>