-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathclaml.dtd
283 lines (245 loc) · 4.29 KB
/
claml.dtd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<?xml version="1.0" encoding="UTF-8"?>
<!ENTITY % rubric.simple "#PCDATA | Reference | Term">
<!ENTITY % rubric.complex "%rubric.simple; | Para | Include |
IncludeDescendants| Fragment | List | Table">
<!ELEMENT ClaML (
Meta*,
Identifier*,
Title,
Authors?,
Variants?,
ClassKinds,
UsageKinds?,
RubricKinds,
Modifier*,
ModifierClass*,
Class*)
>
<!ATTLIST ClaML
version CDATA #REQUIRED
>
<!ELEMENT Variants (Variant+)>
<!ELEMENT Variant (#PCDATA)>
<!ATTLIST Variant
name ID #REQUIRED
>
<!ELEMENT Meta EMPTY>
<!ATTLIST Meta
name CDATA #REQUIRED
value CDATA #REQUIRED
variants IDREFS #IMPLIED
>
<!ELEMENT Identifier EMPTY>
<!ATTLIST Identifier
authority NMTOKEN #IMPLIED
uid CDATA #REQUIRED
>
<!ELEMENT Title (#PCDATA)>
<!ATTLIST Title
name NMTOKEN #REQUIRED
version CDATA #IMPLIED
date CDATA #IMPLIED
>
<!ELEMENT Authors (Author* )>
<!ELEMENT Author (#PCDATA)>
<!ATTLIST Author
name ID #REQUIRED
>
<!ELEMENT ClassKinds (ClassKind+)>
<!ELEMENT RubricKinds (RubricKind+)>
<!ELEMENT UsageKinds (UsageKind+)>
<!ELEMENT ClassKind (Display*)>
<!ATTLIST ClassKind
name ID #REQUIRED
>
<!ELEMENT RubricKind (Display*)>
<!ATTLIST RubricKind
name ID #REQUIRED
inherited (true|false) "true"
>
<!ELEMENT UsageKind EMPTY>
<!ATTLIST UsageKind
name ID #REQUIRED
mark CDATA #REQUIRED
>
<!ELEMENT Display (#PCDATA)>
<!ATTLIST Display
xml:lang NMTOKEN #REQUIRED
variants IDREF #IMPLIED
>
<!ELEMENT Modifier (
Meta*,
SubClass*,
Rubric*,
History*)
>
<!ATTLIST Modifier
code NMTOKEN #REQUIRED
variants IDREFS #IMPLIED
>
<!ELEMENT ModifierClass (
Meta*,
SuperClass,
SubClass*,
Rubric*,
History*)
>
<!ATTLIST ModifierClass
modifier NMTOKEN #REQUIRED
code NMTOKEN #REQUIRED
usage IDREF #IMPLIED
variants IDREFS #IMPLIED
>
<!ELEMENT Class (
Meta*,
SuperClass*,
SubClass*,
ModifiedBy*,
ExcludeModifier*,
Rubric*,
History*)
>
<!ATTLIST Class
code NMTOKEN #REQUIRED
kind IDREF #REQUIRED
usage IDREF #IMPLIED
variants IDREFS #IMPLIED
>
<!ELEMENT ModifiedBy (
Meta*,
ValidModifierClass*)
>
<!ATTLIST ModifiedBy
code NMTOKEN #REQUIRED
all (true|false) "true"
position CDATA #IMPLIED
variants IDREFS #IMPLIED
>
<!ELEMENT ExcludeModifier EMPTY>
<!ATTLIST ExcludeModifier
code NMTOKEN #REQUIRED
variants IDREFS #IMPLIED
>
<!ELEMENT ValidModifierClass EMPTY>
<!ATTLIST ValidModifierClass
code NMTOKEN #REQUIRED
variants IDREFS #IMPLIED
>
<!ELEMENT Rubric (
Label+,
History*)
>
<!ATTLIST Rubric
id ID #IMPLIED
kind IDREF #REQUIRED
usage IDREF #IMPLIED
>
<!ELEMENT Label (%rubric.complex;)*>
<!ATTLIST Label
xml:lang NMTOKEN #REQUIRED
xml:space (default|preserve) "default"
variants IDREFS #IMPLIED
>
<!ELEMENT History (#PCDATA)>
<!ATTLIST History
author IDREF #REQUIRED
date NMTOKEN #REQUIRED
>
<!ELEMENT SuperClass EMPTY>
<!ATTLIST SuperClass
code NMTOKEN #REQUIRED
variants IDREFS #IMPLIED
>
<!ELEMENT SubClass EMPTY>
<!ATTLIST SubClass
code NMTOKEN #REQUIRED
variants IDREFS #IMPLIED
>
<!ELEMENT Reference (#PCDATA)>
<!ATTLIST Reference
class CDATA #IMPLIED
authority NMTOKEN #IMPLIED
uid NMTOKEN #IMPLIED
code NMTOKEN #IMPLIED
usage IDREF #IMPLIED
variants IDREFS #IMPLIED
>
<!ELEMENT Para (%rubric.simple;)*>
<!ATTLIST Para
class CDATA #IMPLIED
>
<!ELEMENT Fragment (%rubric.simple;)*>
<!ATTLIST Fragment
class CDATA #IMPLIED
usage IDREF #IMPLIED
type (item | list) "item"
>
<!ELEMENT Include EMPTY>
<!ATTLIST Include
class CDATA #IMPLIED
rubric IDREF #REQUIRED
>
<!ELEMENT IncludeDescendants EMPTY>
<!ATTLIST IncludeDescendants
code NMTOKEN #REQUIRED
kind IDREF #REQUIRED
>
<!ELEMENT List (ListItem+)>
<!ATTLIST List
class CDATA #IMPLIED
>
<!ELEMENT ListItem (
%rubric.simple;
| Para
| Include
| List
| Table)*
>
<!ATTLIST ListItem
class CDATA #IMPLIED
>
<!ELEMENT Table (
Caption?,
THead?,
TBody?,
TFoot?)
>
<!ATTLIST Table
class CDATA #IMPLIED
>
<!ELEMENT Caption (%rubric.simple;)*>
<!ATTLIST Caption
class CDATA #IMPLIED
>
<!ELEMENT THead (Row+)>
<!ATTLIST THead
class CDATA #IMPLIED
>
<!ELEMENT TBody (Row+)>
<!ATTLIST TBody
class CDATA #IMPLIED
>
<!ELEMENT TFoot (Row+)>
<!ATTLIST TFoot
class CDATA #IMPLIED
>
<!ELEMENT Row (Cell*)>
<!ATTLIST Row
class CDATA #IMPLIED
>
<!ELEMENT Cell (
%rubric.simple;
| Para
| Include
| List
| Table)*
>
<!ATTLIST Cell
class CDATA #IMPLIED
rowspan CDATA #IMPLIED
colspan CDATA #IMPLIED
>
<!ELEMENT Term (#PCDATA)>
<!ATTLIST Term
class CDATA #IMPLIED
>