|
From: <mi...@us...> - 2024-05-02 15:55:18
|
Revision: 9667
http://sourceforge.net/p/docutils/code/9667
Author: milde
Date: 2024-05-02 15:55:16 +0000 (Thu, 02 May 2024)
Log Message:
-----------
Sanitize Docutils DTD
Fixup for r8008 (2016-12-31).
Use the "%bodyatts" parameter entity provided by the
"exchange table model" to customize the `<table>` element's
attribute list instead of defining a new "ATTLIST".
Announce the switch from the legacy "%bodyatts" to the
self-explaining "%tbl.table.atts" parameter entity
(also provided by the "exchange table model").
Modified Paths:
--------------
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docs/ref/docutils.dtd
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2024-04-28 12:00:49 UTC (rev 9666)
+++ trunk/docutils/RELEASE-NOTES.txt 2024-05-02 15:55:16 UTC (rev 9667)
@@ -59,6 +59,9 @@
and drop the ``name`` attribute from <reference> nodes
in Docutils 1.0.
+* Use the ``%tbl.table.att`` parameter entity instead of ``%bodyatt``
+ to customize the <table> element's attribute list in Docutils 1.0.
+
.. _refname attribute: docs/ref/doctree.html#refname
`Input encoding`_
Modified: trunk/docutils/docs/ref/docutils.dtd
===================================================================
--- trunk/docutils/docs/ref/docutils.dtd 2024-04-28 12:00:49 UTC (rev 9666)
+++ trunk/docutils/docs/ref/docutils.dtd 2024-05-02 15:55:16 UTC (rev 9667)
@@ -223,7 +223,11 @@
"soextblx.dtd">
<!-- These parameter entities customize the table model DTD. -->
-<!ENTITY % bodyatt " %basic.atts; "> <!-- table elt -->
+<!-- table element TODO: use %tbl.table.att. Keep or drop pgwide? -->
+<!ENTITY % bodyatt
+ " %basic.atts;
+ %align-h.att;
+ width %measure; #IMPLIED ">
<!-- 1 colspec element is expected per table column: -->
<!ENTITY % tbl.tgroup.mdl "colspec+,thead?,tbody">
<!ENTITY % tbl.tgroup.att " %basic.atts; ">
@@ -233,14 +237,11 @@
" %basic.atts;
stub %yesorno; #IMPLIED ">
<!ENTITY % tbl.row.att " %basic.atts; ">
-<!-- ``(...)*``: nested tables are supported -->
+<!-- all body elements (including nested tables) are supported -->
<!ENTITY % tbl.entry.mdl " (%body.elements;)* ">
<!ENTITY % tbl.entry.att
" %basic.atts;
morecols %number; #IMPLIED ">
-<!ATTLIST table
- %align-h.att;
- width %measure; #IMPLIED>
<!--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|