commit: 264672ddb6857313b7ba9426853d58e3b61b6590
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 21 21:35:27 2020 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jan 21 21:35:27 2020 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=264672dd
devbook.xsl: Remove tcolumn element.
Not clear what the original intention of this was, but:
- <tcolumn> was never used in the devmanual.
- The generated HTML would have been invalid, because it contained
<col> without an enclosing <colgroup>.
- The width attribute is deprecated in HTML 4 and obsolete in HTML 5.
Remove for now from devbook.xsl; update devbook.dtd accordingly.
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
devbook.dtd | 7 ++-----
devbook.xsl | 4 ----
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/devbook.dtd b/devbook.dtd
index 455397b..d213d0c 100644
--- a/devbook.dtd
+++ b/devbook.dtd
@@ -1,4 +1,4 @@
-<!-- Copyright 2019 Gentoo Authors -->
+<!-- Copyright 2019-2020 Gentoo Authors -->
<!-- Distributed under the terms of the MIT/X11 license -->
<!-- Document Type Definition for the Gentoo Devmanual -->
@@ -55,10 +55,7 @@
short CDATA #IMPLIED
caption CDATA #IMPLIED>
-<!ELEMENT table (tcolumn*, tr+)>
-
-<!ELEMENT tcolumn EMPTY>
-<!ATTLIST tcolumn width CDATA #REQUIRED>
+<!ELEMENT table (tr)+>
<!ELEMENT tr (th|ti)+>
diff --git a/devbook.xsl b/devbook.xsl
index 8c367d4..8d8d082 100644
--- a/devbook.xsl
+++ b/devbook.xsl
@@ -89,10 +89,6 @@
<tr><xsl:apply-templates/></tr>
</xsl:template>
- <xsl:template match="tcolumn">
- <col width="{@width}"/>
- </xsl:template>
-
<!-- Table Item -->
<xsl:template match="ti">
<td>