From 155710aa9d66da4bb63ae245113b40c236de3bcc Mon Sep 17 00:00:00 2001 From: Norman Walsh Date: Fri, 30 Jul 2004 15:53:13 +0000 Subject: [PATCH] Prevent entrytbl from appearing directly in a row in an entrytbl; exclude tables and informaltables from CALS tables --- docbook/relaxng/src/calstbl.rnc | 77 ++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 2 deletions(-) diff --git a/docbook/relaxng/src/calstbl.rnc b/docbook/relaxng/src/calstbl.rnc index b5fa71b4b..d6eff18cb 100644 --- a/docbook/relaxng/src/calstbl.rnc +++ b/docbook/relaxng/src/calstbl.rnc @@ -281,19 +281,92 @@ div { db.entrytbl.attlist, db.colspec*, db.spanspec*, - db.cals.thead?, - db.cals.tbody + db.cals.entrytbl.thead?, + db.cals.entrytbl.tbody + } +} + +# ====================================================================== + +[ + db:refname [ "thead" ] + db:refpurpose [ "" ] +] +div { + + db.cals.entrytbl.thead.role.attribute = attribute role { text } + + db.cals.entrytbl.thead.attlist = + db.cals.entrytbl.thead.role.attribute? + & db.common.attributes + & db.common.linking.attributes + & db.valign.attribute? + + db.cals.entrytbl.thead = + element thead { + db.cals.entrytbl.thead.attlist, + db.colspec*, + db.entrytbl.row+ } } # ====================================================================== +[ + db:refname [ "tbody" ] + db:refpurpose [ "" ] +] +div { + + db.cals.entrytbl.tbody.role.attribute = attribute role { text } + + db.cals.entrytbl.tbody.attlist = + db.cals.entrytbl.tbody.role.attribute? + & db.common.attributes + & db.common.linking.attributes + & db.valign.attribute? + + db.cals.entrytbl.tbody = + element tbody { + db.cals.entrytbl.tbody.attlist, + db.entrytbl.row+ + } +} + +# ====================================================================== + +[ + db:refname [ "row" ] + db:refpurpose [ "" ] +] +div { + + db.entrytbl.row.role.attribute = attribute role { text } + + db.entrytbl.row.attlist = + db.entrytbl.row.role.attribute? + & db.common.attributes + & db.common.linking.attributes + & db.rowsep.attribute? + & db.valign.attribute? + + db.entrytbl.row = element row { + db.entrytbl.row.attlist, + db.entry+ + } +} + +# ====================================================================== + [ db:refname [ "table" ] db:refpurpose [ "" ] ] div { + ctrl:exclude [ from="db.cals.table" exclude="db.cals.table" ] + ctrl:exclude [ from="db.cals.table" exclude="db.cals.informaltable" ] + db.cals.table.role.attribute = attribute role { text } db.cals.table.attlist = -- 2.40.0