-
Notifications
You must be signed in to change notification settings - Fork 9
/
TBXcoreStructV02.dtd
246 lines (243 loc) · 5.53 KB
/
TBXcoreStructV02.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
<!-- start schema here tbx_core.dtd -->
<!-- TBXcoreStructV02.dtd -->
<!-- note: see XCS for values of type on meta data-categories and for values of
xml:lang -->
<!-- =================================================================================
SOME USEFUL ENTITIES THAT ARE REFERENCED BELOW
================================================================================== -->
<!ENTITY % basicText '(#PCDATA | hi)*'>
<!ENTITY % noteText '(#PCDATA | hi | foreign | bpt | ept | ph)*'>
<!ENTITY % auxInfo '(descrip | descripGrp | admin | adminGrp | transacGrp | note | ref
| xref)*' >
<!ENTITY % noteLinkInfo '(admin | adminGrp | transacGrp | note | ref | xref)*' >
<!-- Entities that define common sets of attributes -->
<!ENTITY % impIDLang '
id ID #IMPLIED
xml:lang CDATA #IMPLIED
'>
<!ENTITY % impIDType '
id ID #IMPLIED
type CDATA #IMPLIED
'>
<!ENTITY % impIDLangTypTgtDtyp '
id ID #IMPLIED
xml:lang CDATA #IMPLIED
type CDATA #REQUIRED
target IDREF #IMPLIED
datatype CDATA #IMPLIED
'>
<!-- ================================================================================
ELEMENTS USED FOR TEXT MARKUP
================================================================================ -->
<!ELEMENT hi (#PCDATA) >
<!ATTLIST hi
type CDATA #IMPLIED
target IDREF #IMPLIED
xml:lang CDATA #IMPLIED
>
<!ELEMENT foreign %noteText; >
<!ATTLIST foreign
id ID #IMPLIED
xml:lang CDATA #IMPLIED
>
<!ELEMENT bpt (#PCDATA) >
<!ATTLIST bpt
i CDATA #IMPLIED
type CDATA #IMPLIED
>
<!ELEMENT ept (#PCDATA) >
<!ATTLIST ept
i CDATA #IMPLIED
>
<!ELEMENT ph (#PCDATA) >
<!ATTLIST ph
type CDATA #IMPLIED
>
<!-- ================================================================================
ELEMENTS NEEDED FOR TERMINOLOGICAL ENTRIES (IN ALPHABETICAL ORDER)
================================================================================ -->
<!ELEMENT admin %noteText; >
<!ATTLIST admin
%impIDLangTypTgtDtyp;
>
<!ELEMENT adminGrp (admin, (adminNote|note|ref|xref)*) >
<!ATTLIST adminGrp
id ID #IMPLIED
>
<!ELEMENT adminNote (#PCDATA) >
<!ATTLIST adminNote
%impIDLangTypTgtDtyp;
>
<!ELEMENT date (#PCDATA) >
<!ATTLIST date
id ID #IMPLIED
>
<!ELEMENT descrip %noteText; >
<!ATTLIST descrip
%impIDLangTypTgtDtyp;
>
<!ELEMENT descripGrp (descrip, (descripNote|admin|adminGrp|transacGrp|note|ref|xref)*)
>
<!ATTLIST descripGrp
id ID #IMPLIED
>
<!ELEMENT descripNote (#PCDATA) >
<!ATTLIST descripNote
%impIDLangTypTgtDtyp;
>
<!ELEMENT langSet ((%auxInfo;), (tig | ntig)+) >
<!ATTLIST langSet
id ID #IMPLIED
xml:lang CDATA #REQUIRED
>
<!ELEMENT note %noteText; >
<!ATTLIST note %impIDLang;
>
<!ELEMENT ntig (termGrp, %auxInfo;) >
<!ATTLIST ntig
id ID #IMPLIED
>
<!ELEMENT ref (#PCDATA) >
<!ATTLIST ref
%impIDLangTypTgtDtyp;
>
<!ELEMENT term %basicText; >
<!ATTLIST term
id ID #IMPLIED
>
<!ELEMENT termComp (#PCDATA) >
<!ATTLIST termComp
%impIDLang;
>
<!ELEMENT termCompGrp (termComp, (termNote|termNoteGrp)*, %noteLinkInfo;) >
<!ATTLIST termCompGrp
id ID #IMPLIED
>
<!ELEMENT termCompList ((%auxInfo;), (termComp | termCompGrp)+) >
<!ATTLIST termCompList
id ID #IMPLIED
type CDATA #REQUIRED
>
<!ELEMENT termEntry ((%auxInfo;),(langSet+)) >
<!ATTLIST termEntry
id ID #IMPLIED
>
<!ELEMENT termGrp (term, (termNote|termNoteGrp)*, (termCompList)* ) >
<!ATTLIST termGrp
id ID #IMPLIED
>
<!ELEMENT termNote %noteText; >
<!ATTLIST termNote
%impIDLangTypTgtDtyp;
>
<!ELEMENT termNoteGrp (termNote, %noteLinkInfo;) >
<!ATTLIST termNoteGrp
id ID #IMPLIED
>
<!ELEMENT tig (term, (termNote)*, %auxInfo;) >
<!ATTLIST tig
id ID #IMPLIED
>
<!ELEMENT transac (#PCDATA) >
<!ATTLIST transac
%impIDLangTypTgtDtyp;
>
<!ELEMENT transacGrp (transac, (transacNote|date|note|ref|xref)* ) >
<!ATTLIST transacGrp
id ID #IMPLIED
>
<!ELEMENT transacNote (#PCDATA) >
<!ATTLIST transacNote
%impIDLangTypTgtDtyp;
>
<!ELEMENT xref (#PCDATA) >
<!ATTLIST xref
%impIDType;
target CDATA #REQUIRED
>
<!--
===================================================================================
OTHER ELEMENTS (in hierarchical order)
===================================================================================
-->
<!ELEMENT martif (martifHeader, text) > <!-- *** starting element *** -->
<!ATTLIST martif
type CDATA #REQUIRED
xml:lang CDATA #REQUIRED
>
<!ELEMENT martifHeader (fileDesc, encodingDesc?, revisionDesc?) >
<!ATTLIST martifHeader
id ID #IMPLIED
>
<!ELEMENT p %noteText; > <!-- p is used in several header elements -->
<!ATTLIST p
id ID #IMPLIED
type (DCSName|XCSURI|XCSContent) #IMPLIED
xml:lang CDATA #IMPLIED
>
<!ELEMENT fileDesc (titleStmt?, publicationStmt?, sourceDesc+) >
<!ATTLIST fileDesc
id ID #IMPLIED
>
<!ELEMENT titleStmt (title, note*) >
<!ATTLIST titleStmt
%impIDLang;
>
<!ELEMENT title (#PCDATA) >
<!ATTLIST title
%impIDLang;
>
<!ELEMENT publicationStmt (p+) >
<!ATTLIST publicationStmt
id ID #IMPLIED
>
<!ELEMENT sourceDesc (p+) >
<!ATTLIST sourceDesc
%impIDLang;
>
<!ELEMENT encodingDesc (p+) >
<!ATTLIST encodingDesc
id ID #IMPLIED
>
<!ELEMENT revisionDesc (change+) >
<!ATTLIST revisionDesc
%impIDLang;
>
<!ELEMENT change (p+) >
<!ATTLIST change
%impIDLang; >
<!ELEMENT text (body, back?) >
<!ATTLIST text
id ID #IMPLIED
>
<!ELEMENT body (termEntry+) >
<!ATTLIST body
id ID #IMPLIED
>
<!ELEMENT back ((refObjectList)*) >
<!ATTLIST back
id ID #IMPLIED
>
<!ELEMENT refObjectList (refObject+) >
<!ATTLIST refObjectList
id ID #IMPLIED
type CDATA #REQUIRED
>
<!ELEMENT refObject ((itemSet | itemGrp | item)+) >
<!ATTLIST refObject
id ID #IMPLIED
>
<!ELEMENT item %noteText; >
<!ATTLIST item
%impIDType;
>
<!ELEMENT itemGrp (item, %noteLinkInfo;)>
<!ATTLIST itemGrp
id ID #IMPLIED
>
<!ELEMENT itemSet ((item | itemGrp)+)>
<!ATTLIST itemSet
%impIDType;
>
<!-- end -->
<!-- end schema here -->