aboutsummaryrefslogtreecommitdiffstats
path: root/etc/schema
diff options
context:
space:
mode:
authorChong Yidong2008-11-06 22:28:12 +0000
committerChong Yidong2008-11-06 22:28:12 +0000
commitaae62bd5da4e430fe291daef96200a7a0cc83ba3 (patch)
tree9f625642022cd72f59759ff93501ce02e66d26f0 /etc/schema
parent2e7628d8b8332198ffc56e9db30ca4550686f337 (diff)
downloademacs-aae62bd5da4e430fe291daef96200a7a0cc83ba3.tar.gz
emacs-aae62bd5da4e430fe291daef96200a7a0cc83ba3.zip
File removed due to dependence on (apparently) non-free soextbl spec.
Diffstat (limited to 'etc/schema')
-rw-r--r--etc/schema/dbdyntbl.rnc116
-rw-r--r--etc/schema/dbsoextbl.rnc30
-rw-r--r--etc/schema/docbk-dyntbl.rnc18
-rw-r--r--etc/schema/docbk-soextbl.rnc17
-rw-r--r--etc/schema/soextbl.rnc260
5 files changed, 0 insertions, 441 deletions
diff --git a/etc/schema/dbdyntbl.rnc b/etc/schema/dbdyntbl.rnc
deleted file mode 100644
index 4ade70bbe2e..00000000000
--- a/etc/schema/dbdyntbl.rnc
+++ /dev/null
@@ -1,116 +0,0 @@
1# This is an alternative to dbsoextbl.rnc and dbcalstbl.rnc that
2# allows the table model to be selected dynamically based on the
3# definitions of cals.table.module and exchange.table.module.
4#
5# To use this, copy docbook.rnc to docbook-dyntbl.rnc replacing
6# "dbcalstbl.rnc" by "dbdyntbl.rnc". Then, you can override the
7# choice of table model by doing
8#
9# include "docbook-dyntbl.rnc" {
10# cals.table.model = IGNORE
11# exchange.table.model = INCLUDE
12# }
13
14INCLUDE = empty
15IGNORE = notAllowed
16cals.table.module = INCLUDE
17exchange.table.module = IGNORE
18
19# Add common attributes and the Label attribute to Table and
20# InformalTable.
21bodyatt = common.attrib, label.attrib, tables.role.attrib
22
23# Content model for Table.
24tbl.table.mdl =
25 blockinfo?,
26 formalobject.title.content,
27 ndxterm.class*,
28 textobject*,
29 (graphic+ | mediaobject+ | tgroup+)
30
31table = cals.table | exchange.table
32
33cals.table =
34 cals.table.module,
35 grammar {
36 # Reference CALS Table Model
37 include "calstbl.rnc" {
38 # Add label and role attributes to table and informaltable
39 bodyatt = parent label.attrib
40 # Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
41 # EntryTbl, and Entry (and InformalTable element).
42 secur = parent common.attrib, parent tables.role.attrib
43 tbl.table.mdl = parent tbl.table.mdl
44 }
45 }
46
47exchange.table =
48 exchange.table.module,
49 grammar {
50 # Reference OASIS Exchange Table Model
51 include "soextbl.rnc" {
52 # Add common attributes and the Label attribute to Table and
53 # InformalTable.
54 bodyatt = parent bodyatt
55 tbl.table.mdl = parent tbl.table.mdl
56 }
57 }
58
59tgroup = cals.tgroup | exchange.tgroup
60
61cals.tgroup =
62 cals.table.module,
63 grammar {
64 # Reference CALS Table Model
65 include "calstbl.rnc" {
66 start = tgroup
67 # Add label and role attributes to table and informaltable
68 bodyatt = parent label.attrib
69 # Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
70 # EntryTbl, and Entry (and InformalTable element).
71 secur = parent common.attrib, parent tables.role.attrib
72 # Allow either objects or inlines; beware of REs between elements.
73 tbl.entry.mdl = parent para.char.mix | parent tabentry.mix
74 }
75 }
76
77exchange.tgroup =
78 exchange.table.module,
79 grammar {
80 # Reference OASIS Exchange Table Model
81 include "soextbl.rnc" {
82 start = tgroup
83 bodyatt = parent bodyatt
84 # Add common attributes to TGroup, ColSpec, TBody, THead, Row, Entry
85 tbl.tgroup.att = parent common.attrib
86 tbl.colspec.att = parent common.attrib
87 tbl.tbody.att = parent common.attrib
88 tbl.thead.att = parent common.attrib
89 tbl.row.att = parent common.attrib
90 tbl.entry.att = parent common.attrib
91 # Allow either objects or inlines; beware of REs between elements.
92 tbl.entry.mdl = (parent para.char.mix | parent tabentry.mix)*
93 }
94 }
95
96tbl.table.att = cals.tbl.table.att | exchange.tbl.table.att
97
98cals.tbl.table.att =
99 cals.table.module,
100 grammar {
101 include "calstbl.rnc" {
102 start = tbl.table.att
103 }
104 }
105
106exchange.tbl.table.att =
107 exchange.table.module,
108 grammar {
109 include "soextbl.rnc" {
110 start = tbl.table.att
111 }
112 }
113
114common.table.attribs = bodyatt
115
116# end of table.module
diff --git a/etc/schema/dbsoextbl.rnc b/etc/schema/dbsoextbl.rnc
deleted file mode 100644
index a547586ca17..00000000000
--- a/etc/schema/dbsoextbl.rnc
+++ /dev/null
@@ -1,30 +0,0 @@
1# Definitions specific to the OASIS XML Exchange Table Model.
2
3# Reference OASIS Exchange Table Model
4include "soextbl.rnc" {
5 # Override definition of start
6 start |= notAllowed
7 # Add common attributes and the Label attribute to Table and
8 # InformalTable.
9 bodyatt = common.attrib, label.attrib, tables.role.attrib
10 # Add common attributes to TGroup, ColSpec, TBody, THead, Row, Entry
11 tbl.tgroup.att = common.attrib
12 tbl.colspec.att = common.attrib
13 tbl.tbody.att = common.attrib
14 tbl.thead.att = common.attrib
15 tbl.row.att = common.attrib
16 tbl.entry.att = common.attrib
17 # Content model for Table.
18 tbl.table.mdl =
19 blockinfo?,
20 formalobject.title.content,
21 ndxterm.class*,
22 textobject*,
23 (graphic+ | mediaobject+ | tgroup+)
24 # Allow either objects or inlines; beware of REs between elements.
25 tbl.entry.mdl = (para.char.mix | tabentry.mix)*
26}
27
28common.table.attribs = bodyatt
29
30# end of table.module
diff --git a/etc/schema/docbk-dyntbl.rnc b/etc/schema/docbk-dyntbl.rnc
deleted file mode 100644
index 9bb997ff734..00000000000
--- a/etc/schema/docbk-dyntbl.rnc
+++ /dev/null
@@ -1,18 +0,0 @@
1# Variant of docbook.rnc that allows the table model to be selected
2# dynamically based on the definitions of cals.table.module and
3# exchange.table.module. See dbdyntbl.rnc.
4
5# Document (root) elements
6include "dbstart.rnc"
7
8# Notation declarations
9include "dbnotn.rnc"
10
11# Information pool
12include "dbpool.rnc"
13
14# Dynamic Table Model
15include "dbdyntbl.rnc"
16
17# Document hierarchy
18include "dbhier.rnc"
diff --git a/etc/schema/docbk-soextbl.rnc b/etc/schema/docbk-soextbl.rnc
deleted file mode 100644
index 945a6219dba..00000000000
--- a/etc/schema/docbk-soextbl.rnc
+++ /dev/null
@@ -1,17 +0,0 @@
1# Variant of docbook.rnc that uses the OASIS XML Exchange Table Model
2# rather than the CALS Table Model.
3
4# Document (root) elements
5include "dbstart.rnc"
6
7# Notation declarations
8include "dbnotn.rnc"
9
10# Information pool
11include "dbpool.rnc"
12
13# OASIS XML Exchange Table Model
14include "dbsoextbl.rnc"
15
16# Document hierarchy
17include "dbhier.rnc"
diff --git a/etc/schema/soextbl.rnc b/etc/schema/soextbl.rnc
deleted file mode 100644
index 2e69127b4a2..00000000000
--- a/etc/schema/soextbl.rnc
+++ /dev/null
@@ -1,260 +0,0 @@
1# XML EXCHANGE TABLE MODEL DECLARATION MODULE
2
3# This set of declarations defines the XML version of the Exchange
4# Table Model as of the date shown in the Formal Public Identifier
5# (FPI) for this entity.
6#
7# This set of declarations may be referred to using a public external
8# entity declaration and reference as shown in the following three
9# lines:
10#
11# <!ENTITY % calstblx
12# PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN">
13# %calstblx;
14#
15# If various parameter entities used within this set of declarations
16# are to be given non-default values, the appropriate declarations
17# should be given before calling in this package (i.e., before the
18# "%calstblx;" reference).
19
20# The motivation for this XML version of the Exchange Table Model
21# is simply to create an XML version of the SGML Exchange Table
22# Model. By design, no effort has been made to "improve" the model.
23#
24# This XML version incorporates the logical bare minimum changes
25# necessary to make the Exchange Table Model a valid XML DTD.
26
27# The XML version of the Exchange Table Model differs from
28# the SGML version in the following ways:
29#
30# The following parameter entities have been removed:
31#
32# - tbl.table.excep, tbl.hdft.excep, tbl.row.excep, tbl.entry.excep
33# There are no exceptions in XML. The following normative statement
34# is made in lieu of exceptions: the exchange table model explicitly
35# forbids a table from occurring within another table. If the
36# content model of an entry includes a table element, then this
37# cannot be enforced by the DTD, but it is a deviation from the
38# exchange table model to include a table within a table.
39#
40# - tbl.hdft.name, tbl.hdft.mdl, tbl.hdft.excep, tbl.hdft.att
41# The motivation for these elements was to change the table
42# header/footer elements. Since XML does not allow element declarations
43# to contain name groups, and the exchange table model does not
44# allow a table to contain footers, the continued presence of these
45# attributes seems unnecessary.
46#
47# The following parameter entity has been added:
48#
49# - tbl.thead.att
50# This entity parameterizes the attributes on thead. It replaces
51# the tbl.hdft.att parameter entity.
52#
53# Other miscellaneous changes:
54#
55# - Tag ommission indicators have been removed
56# - Comments have been removed from declarations
57# - NUMBER attributes have been changed to NMTOKEN
58# - NUTOKEN attributes have been to changed to NMTOKEN
59# - Removed the grouping characters around the content model
60# parameter entry for the 'entry' element. This is necessary
61# so that an entry can contain #PCDATA and be defined as an
62# optional, repeatable OR group beginning with #PCDATA.
63
64# This entity includes a set of element and attribute declarations
65# that partially defines the Exchange table model. However, the model
66# is not well-defined without the accompanying natural language
67# description of the semantics (meanings) of these various elements,
68# attributes, and attribute values. The semantic writeup, also available
69# from SGML Open, should be used in conjunction with this entity.
70
71# In order to use the Exchange table model, various parameter entity
72# declarations are required. A brief description is as follows:
73#
74# ENTITY NAME WHERE USED WHAT IT IS
75#
76# %yesorno In ATTLIST of: An attribute declared value
77# almost all elements for a "boolean" attribute
78#
79# %paracon In content model of: The "text" (logical content)
80# <entry> of the model group for <entry>
81#
82# %titles In content model of: The "title" part of the model
83# table element group for the table element
84#
85# %tbl.table.name In declaration of: The name of the "table"
86# table element element
87#
88# %tbl.table-titles.mdl In content model of: The model group for the title
89# table elements part of the content model for
90# table element
91#
92# %tbl.table.mdl In content model of: The model group for the content
93# table elements model for table element,
94# often (and by default) defined
95# in terms of %tbl.table-titles.mdl
96# and tgroup
97#
98# %tbl.table.att In ATTLIST of: Additional attributes on the
99# table element table element
100#
101# %bodyatt In ATTLIST of: Additional attributes on the
102# table element table element (for backward
103# compatibility with the SGML
104# model)
105#
106# %tbl.tgroup.mdl In content model of: The model group for the content
107# <tgroup> model for <tgroup>
108#
109# %tbl.tgroup.att In ATTLIST of: Additional attributes on the
110# <tgroup> <tgroup> element
111#
112# %tbl.thead.att In ATTLIST of: Additional attributes on the
113# <thead> <thead> element
114#
115# %tbl.tbody.att In ATTLIST of: Additional attributes on the
116# <tbody> <tbody> element
117#
118# %tbl.colspec.att In ATTLIST of: Additional attributes on the
119# <colspec> <colspec> element
120#
121# %tbl.row.mdl In content model of: The model group for the content
122# <row> model for <row>
123#
124# %tbl.row.att In ATTLIST of: Additional attributes on the
125# <row> <row> element
126#
127# %tbl.entry.mdl In content model of: The model group for the content
128# <entry> model for <entry>
129#
130# %tbl.entry.att In ATTLIST of: Additional attributes on the
131# <entry> <entry> element
132#
133# This set of declarations will use the default definitions shown below
134# for any of these parameter entities that are not declared before this
135# set of declarations is referenced.
136
137# These definitions are not directly related to the table model, but are
138# used in the default CALS table model and may be defined elsewhere (and
139# prior to the inclusion of this table module) in the referencing DTD.
140
141yesorno = xsd:NMTOKEN
142# no if zero(s), yes if any other value
143pcd = text
144paracon = pcd
145# default for use in entry content
146
147# The parameter entities as defined below change and simplify the CALS table
148# model as published (as part of the Example DTD) in MIL-HDBK-28001. The
149# resulting simplified DTD has support from the SGML Open vendors and is
150# therefore more interoperable among different systems.
151#
152# These following declarations provide the Exchange default definitions
153# for these entities. However, these entities can be redefined (by giving
154# the appropriate parameter entity declaration(s) prior to the reference
155# to this Table Model declaration set entity) to fit the needs of the
156# current application.
157#
158# Note, however, that changes may have significant effect on the ability to
159# interchange table information. These changes may manifest themselves
160# in useability, presentation, and possible structure information degradation.
161tbl.table-titles.mdl = title
162tbl.table-main.mdl = tgroup+
163tbl.table.mdl = tbl.table-titles.mdl | tbl.table-main.mdl
164tbl.table.att = attribute pgwide { yesorno }?
165bodyatt = empty
166tbl.tgroup.mdl = colspec*, thead?, tbody
167tbl.tgroup.att = empty
168tbl.thead.att = empty
169tbl.tbody.att = empty
170tbl.colspec.att = empty
171tbl.row.mdl = entry+
172tbl.row.att = empty
173tbl.entry.mdl = paracon*
174tbl.entry.att = empty
175# ===== Element and attribute declarations follow. =====
176
177# Default declarations previously defined in this entity and
178# referenced below include:
179# ENTITY % tbl.table.name "table"
180# ENTITY % tbl.table-titles.mdl "%titles;,"
181# ENTITY % tbl.table.mdl "%tbl.table-titles; tgroup+"
182# ENTITY % tbl.table.att "
183# pgwide %yesorno; #IMPLIED "
184table = element table { table.attlist, tbl.table.mdl }
185table.attlist &=
186 attribute frame {
187 "top" | "bottom" | "topbot" | "all" | "sides" | "none"
188 }?,
189 attribute colsep { yesorno }?,
190 attribute rowsep { yesorno }?,
191 tbl.table.att,
192 bodyatt
193# Default declarations previously defined in this entity and
194# referenced below include:
195# ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody"
196# ENTITY % tbl.tgroup.att ""
197tgroup = element tgroup { tgroup.attlist, tbl.tgroup.mdl }
198tgroup.attlist &=
199 attribute cols { xsd:NMTOKEN },
200 attribute colsep { yesorno }?,
201 attribute rowsep { yesorno }?,
202 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
203 tbl.tgroup.att
204# Default declarations previously defined in this entity and
205# referenced below include:
206# ENTITY % tbl.colspec.att ""
207colspec = element colspec { colspec.attlist, empty }
208colspec.attlist &=
209 attribute colnum { xsd:NMTOKEN }?,
210 attribute colname { xsd:NMTOKEN }?,
211 attribute colwidth { text }?,
212 attribute colsep { yesorno }?,
213 attribute rowsep { yesorno }?,
214 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
215 attribute char { text }?,
216 attribute charoff { xsd:NMTOKEN }?,
217 tbl.colspec.att
218# Default declarations previously defined in this entity and
219# referenced below include:
220# ENTITY % tbl.thead.att ""
221thead = element thead { thead.attlist, row+ }
222thead.attlist &=
223 attribute valign { "top" | "middle" | "bottom" }?,
224 tbl.thead.att
225# Default declarations previously defined in this entity and
226# referenced below include:
227# ENTITY % tbl.tbody.att ""
228tbody = element tbody { tbody.attlist, row+ }
229tbody.attlist &=
230 attribute valign { "top" | "middle" | "bottom" }?,
231 tbl.tbody.att
232# Default declarations previously defined in this entity and
233# referenced below include:
234# ENTITY % tbl.row.mdl "entry+"
235# ENTITY % tbl.row.att ""
236row = element row { row.attlist, tbl.row.mdl }
237row.attlist &=
238 attribute rowsep { yesorno }?,
239 attribute valign { "top" | "middle" | "bottom" }?,
240 tbl.row.att
241# Default declarations previously defined in this entity and
242# referenced below include:
243# ENTITY % paracon "#PCDATA"
244# ENTITY % tbl.entry.mdl "(%paracon;)*"
245# ENTITY % tbl.entry.att ""
246entry = element entry { entry.attlist, tbl.entry.mdl }
247entry.attlist &=
248 attribute colname { xsd:NMTOKEN }?,
249 attribute namest { xsd:NMTOKEN }?,
250 attribute nameend { xsd:NMTOKEN }?,
251 attribute morerows { xsd:NMTOKEN }?,
252 attribute colsep { yesorno }?,
253 attribute rowsep { yesorno }?,
254 attribute align { "left" | "right" | "center" | "justify" | "char" }?,
255 attribute char { text }?,
256 attribute charoff { xsd:NMTOKEN }?,
257 attribute valign { "top" | "middle" | "bottom" }?,
258 tbl.entry.att
259title |= notAllowed
260start = table