@teipublisher/oddity-language-server 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -2
  3. package/dist/edit.js +1211 -0
  4. package/dist/edit.js.map +7 -0
  5. package/dist/index.js +1701 -0
  6. package/dist/index.js.map +7 -0
  7. package/dist/node.cjs +45925 -0
  8. package/dist/node.cjs.map +7 -0
  9. package/package.json +74 -4
  10. package/schema/README.md +45 -0
  11. package/schema/docbook/docbook.rng +18457 -0
  12. package/schema/jats/BITS-embedded-index2.ent.rng +340 -0
  13. package/schema/jats/BITS-question-answer2.ent.rng +795 -0
  14. package/schema/jats/JATS-XHTMLtablesetup1-3.ent.rng +614 -0
  15. package/schema/jats/JATS-ali-namespace1-3.ent.rng +284 -0
  16. package/schema/jats/JATS-archivearticle1-3-mathml3.rng +1277 -0
  17. package/schema/jats/JATS-archivecustom-classes1-3.ent.rng +427 -0
  18. package/schema/jats/JATS-archivecustom-mixes1-3.ent.rng +630 -0
  19. package/schema/jats/JATS-archivecustom-models1-3.ent.rng +2205 -0
  20. package/schema/jats/JATS-articlemeta1-3.ent.rng +3138 -0
  21. package/schema/jats/JATS-backmatter1-3.ent.rng +601 -0
  22. package/schema/jats/JATS-chars1-3.ent.rng +715 -0
  23. package/schema/jats/JATS-common-atts1-3.ent.rng +367 -0
  24. package/schema/jats/JATS-common1-3.ent.rng +6007 -0
  25. package/schema/jats/JATS-default-classes1-3.ent.rng +1953 -0
  26. package/schema/jats/JATS-default-mixes1-3.ent.rng +583 -0
  27. package/schema/jats/JATS-display1-3.ent.rng +1669 -0
  28. package/schema/jats/JATS-format1-3.ent.rng +1256 -0
  29. package/schema/jats/JATS-funding1-3.ent.rng +1389 -0
  30. package/schema/jats/JATS-journalmeta1-3.ent.rng +691 -0
  31. package/schema/jats/JATS-link1-3.ent.rng +664 -0
  32. package/schema/jats/JATS-list1-3.ent.rng +747 -0
  33. package/schema/jats/JATS-math1-3.ent.rng +620 -0
  34. package/schema/jats/JATS-mathml3-mathmlsetup1-3.ent.rng +459 -0
  35. package/schema/jats/JATS-nlmcitation1-3.ent.rng +522 -0
  36. package/schema/jats/JATS-para1-3.ent.rng +780 -0
  37. package/schema/jats/JATS-phrase1-3.ent.rng +725 -0
  38. package/schema/jats/JATS-references1-3.ent.rng +1713 -0
  39. package/schema/jats/JATS-related-object1-3.ent.rng +453 -0
  40. package/schema/jats/JATS-section1-3.ent.rng +482 -0
  41. package/schema/jats/mathml3-qname1.mod.rng +61 -0
  42. package/schema/jats/mathml3.rng +4094 -0
  43. package/schema/jats/xhtml-inlstyle-1.mod.rng +37 -0
  44. package/schema/jats/xhtml-table-1.mod.rng +426 -0
  45. package/schema/odd/teipublisher_odds.rng +12769 -0
  46. package/schema/opm/opm.schema.json +402 -0
  47. package/schema/tei/tei_all.rng +23212 -0
  48. package/src/core/association.ts +155 -0
  49. package/src/core/complete.ts +147 -0
  50. package/src/core/elements.ts +86 -0
  51. package/src/core/opmToml.ts +432 -0
  52. package/src/core/outline.ts +156 -0
  53. package/src/core/schema.ts +55 -0
  54. package/src/core/tags.ts +104 -0
  55. package/src/core/toml.ts +64 -0
  56. package/src/core/tomlScan.ts +155 -0
  57. package/src/core/validate.ts +128 -0
  58. package/src/core/wellformed.ts +16 -0
  59. package/src/edit.ts +12 -0
  60. package/src/index.ts +17 -0
  61. package/src/node.ts +39 -0
  62. package/src/server/server.ts +322 -0
@@ -0,0 +1,630 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Journal Archiving DTD Customize Mixes Module -->
4
+ <!-- VERSION: ANSI/NISO JATS Version 1.3 (Z39.96-2021) -->
5
+ <!-- DATE: June 2021 -->
6
+ <!---->
7
+ <!-- ============================================================= -->
8
+ <!-- ============================================================= -->
9
+ <!-- PUBLIC DOCUMENT TYPE DEFINITION -->
10
+ <!-- TYPICAL INVOCATION -->
11
+ <!--
12
+ "-//NLM//DTD JATS (Z39.96) Journal Archiving DTD Customize Mixes Module v1.3 20210610//EN"
13
+ Delivered as file "JATS-archivecustom-mixes1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: Journal Archiving and Interchange DTD of the -->
18
+ <!-- JATS DTD Suite -->
19
+ <!---->
20
+ <!-- PURPOSE: To declare the Parameter Entities (PEs) used to -->
21
+ <!-- over-ride the JATS DTD Suite default named, -->
22
+ <!-- general purpose mixes. (Mixes for particular -->
23
+ <!-- elements are declared in the Archive Custom -->
24
+ <!-- Models module.) -->
25
+ <!---->
26
+ <!-- Note: Since PEs must be declared before they -->
27
+ <!-- are used, this module must be called before the -->
28
+ <!-- default mixes modules (%default-mixes;) -->
29
+ <!---->
30
+ <!-- TAG SET SPONSOR -->
31
+ <!-- National Center for Biotechnology -->
32
+ <!-- Information (NCBI) -->
33
+ <!-- National Library of Medicine (NLM) -->
34
+ <!---->
35
+ <!-- CREATED FOR: -->
36
+ <!-- This DTD was created from the JATS DTD Suite. -->
37
+ <!-- Digital archives and publishers may use the -->
38
+ <!-- DTD as is for markup of journal literature or -->
39
+ <!-- related material for archiving and transferring -->
40
+ <!-- such material between archives or create a -->
41
+ <!-- custom XML DTD from the Suite for -->
42
+ <!-- these purposes. -->
43
+ <!---->
44
+ <!-- This DTD is in the public domain. An organization -->
45
+ <!-- that wishes to create its own DTD from the suite -->
46
+ <!-- may do so without permission from NLM. -->
47
+ <!---->
48
+ <!-- The suite has been set up to be extended using a -->
49
+ <!-- new DTD file and a new DTD-specific customization -->
50
+ <!-- module to redefine the many Parameter Entities. -->
51
+ <!-- Do not modify the suite directly or redistribute -->
52
+ <!-- modified versions of the suite. -->
53
+ <!---->
54
+ <!-- In the interest of maintaining consistency and -->
55
+ <!-- clarity for potential users, NLM requests: -->
56
+ <!---->
57
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
58
+ <!-- and intend to stay compatible with the suite, -->
59
+ <!-- then please include the following statement -->
60
+ <!-- as a comment in all of your DTD modules: -->
61
+ <!-- "Created from, and fully compatible with, -->
62
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
63
+ <!-- Suite (JATS)." -->
64
+ <!---->
65
+ <!-- 2. If you alter one or more modules of the suite, -->
66
+ <!-- then please rename your version and all its -->
67
+ <!-- modules to avoid any confusion with the -->
68
+ <!-- original suite. Also, please include the -->
69
+ <!-- following statement as a comment in all your -->
70
+ <!-- DTD modules: -->
71
+ <!-- "Based in part on, but not fully compatible -->
72
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
73
+ <!-- Tag Suite (JATS)." -->
74
+ <!---->
75
+ <!-- ORIGINAL CREATION DATE: -->
76
+ <!-- August 2004 -->
77
+ <!---->
78
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
79
+ <!-- Working Group. Mulberry Technologies was -->
80
+ <!-- supported by National Center for Biotechnology -->
81
+ <!-- Information (NCBI), a center of the US National -->
82
+ <!-- Library of Medicine (NLM). -->
83
+ <!---->
84
+ <!-- The Journal Archiving and Interchange DTD is -->
85
+ <!-- built from the JATS DTD Suite. -->
86
+ <!---->
87
+ <!-- This DTD and the Suite are a continuation of -->
88
+ <!-- the work done by NCBI, Mulberry Technologies, -->
89
+ <!-- and Inera Inc. on the NLM Journal Archiving -->
90
+ <!-- and Interchange DTD Suite, which was originally -->
91
+ <!-- released in December, 2002. -->
92
+ <!---->
93
+ <!-- NLM thanks the Harvard University Libraries, both -->
94
+ <!-- for proposing that a draft archiving NLM DTD for -->
95
+ <!-- life sciences journals be extended to accommodate -->
96
+ <!-- journals in all disciplines and for sponsoring -->
97
+ <!-- Inera Inc.'s collaboration with other DTD -->
98
+ <!-- authors in completing NLM Version 1.0. The -->
99
+ <!-- Andrew W. Mellon Foundation provided support for -->
100
+ <!-- these important contributions. -->
101
+ <!---->
102
+ <!-- Suggestions for refinements and enhancements to -->
103
+ <!-- this DTD should be sent in email to: -->
104
+ <!-- jats@ncbi.nlm.nih.gov -->
105
+ <!-- ============================================================= -->
106
+ <!-- ============================================================= -->
107
+ <!-- DTD VERSION/CHANGE HISTORY -->
108
+ <!-- ============================================================= -->
109
+ <!--
110
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
111
+ ==============================================================
112
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
113
+ (DAL/BTU) v1.3 (2021-06-10)
114
+
115
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
116
+ which requires voting by both the NISO and ANSI memberships
117
+ to be changed. This version of the NISO JATS was approved
118
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
119
+ Drafts as well as the draft version JATS 1.3 2021 (the version
120
+ submitted for vote), becoming NISO JATS v1.3 20210610
121
+ (ANSI/NISO Z39.96-2019).
122
+
123
+ The file names and formal public identifiers have been
124
+ changed in the modules and the catalogs.
125
+
126
+ 19. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
127
+ (final ANSI vote date)
128
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
129
+
130
+ ==============================================================
131
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
132
+ (DAL/BTU) v1.3d2 (2020-11-30)
133
+
134
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
135
+ which requires voting by the NISO and ANSI memberships
136
+ to be changed.
137
+
138
+ This draft DTD represents an interim version of the
139
+ non-normative JATS DTD Suite, as an indication to JATS users
140
+ of the decisions that have been made by the JATS Standing
141
+ Committee. This draft has not yet been given public review
142
+ or voting; it is for Standing Committee review and
143
+ testing. The formal public identifiers have been changed
144
+ in the modules and the catalogs.
145
+
146
+ 18. TABLE CELLS - Added new elements to <td> using %inside.cell;
147
+ and <entry> using %Flowmix;:
148
+ <disp-quote>, <speech>, <statement>, <verse-group>
149
+
150
+ 17. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
151
+ committee draft following the final ANSI/NISO 1.2 vote)
152
+
153
+ ==============================================================
154
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
155
+ (DAL/BTU) v1.3.d1 (2019-08-31)
156
+
157
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
158
+ which requires voting by the NISO and ANSI memberships
159
+ to be changed.
160
+
161
+ This draft DTD represents an interim version of the
162
+ non-normative JATS DTD Suite, as an indication to JATS users
163
+ of the decisions that have been made by the JATS Standing
164
+ Committee. This draft has not yet been given public review
165
+ or voting. The formal public identifiers were changed in the
166
+ modules and the catalogs.
167
+
168
+ 16. QUESTIONS AND ANSWERS
169
+
170
+ - NEW PE for ANSWERS - Added new mix "answer para level"
171
+ to name the elements that may be used at the same
172
+ structural level as a paragraph, when used inside an
173
+ <answer>. This rather awkward parameter entity was created
174
+ to overcome the DTD determinism issues when using
175
+ <explanation> inside an <answer>. In order for
176
+ <explanation> to be used at the end of an answer,
177
+ it must not be allowed at the paragraph level
178
+ inside <answer>.
179
+
180
+ - INSIDE TABLE CELLS - Added the question answer class
181
+ to the contents of table cell using inside cell mix.
182
+
183
+ 15. JATS "1.2" becomes "v1.3d1 20190831" (first committee
184
+ draft following the final ANSI/NISO vote)
185
+
186
+ ==============================================================
187
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
188
+ (DAL/BTU) v1.2 (2019-02-08)
189
+
190
+ NISO JATS is a continuing maintenance NISO Standard, which
191
+ requires voting by the both the NISO and ANSI membership
192
+ to be changed. This version of the NISO JATS was approved
193
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
194
+ Drafts as well as the draft version JATS 1.2 2018 (the version
195
+ submitted for vote), becoming NISO JATS v1.2 20190208
196
+ (ANSI/NISO Z39.96-2021).
197
+
198
+ 14. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
199
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
200
+
201
+ ==============================================================
202
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
203
+ (DAL/BTU) v1.2 (2018-11-30)
204
+
205
+ NISO JATS is a continuing maintenance NISO Standard, which
206
+ requires voting by the both the NISO and ANSI membership
207
+ to be changed. This version of the NISO JATS was approved
208
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
209
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
210
+
211
+ 13. JATS "1.2d2" and "v1.2d2 20180401" became
212
+ JATS "1.2" and "v1.2 20181130"
213
+
214
+ =============================================================
215
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
216
+
217
+ JATS is a continuing maintenance NISO Standard, which
218
+ requires voting by the ANSI and NISO memberships to be changed.
219
+ BITS is under continuous maintenance, and is modified at the
220
+ discretion of the working group.
221
+
222
+ This draft DTD represents an interim version of the
223
+ non-normative JATS DTD Suite, as an indication to JATS users
224
+ the decisions that have been made by the JATS Standing
225
+ Committee. This draft has not yet been given public review
226
+ or voting. The formal public identifiers were changed in the
227
+ modules and the catalogs.
228
+
229
+ 12. BITS "2.0" and "v2.0 20151225" remain unchanged
230
+
231
+
232
+ JATS "1.2d1" and "v1.2d1 20171231" became
233
+ JATS "1.2d2" and "v1.2d2 20180401".
234
+
235
+ No module names were changed.
236
+
237
+ =============================================================
238
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
239
+ (DAL/BTU) v1.2d1 (2017-12-31)
240
+
241
+ NISO JATS is a continuing maintenance NISO Standard, which
242
+ requires voting by the ANSI and NISO memberships to be changed.
243
+
244
+ This draft DTD represents an interim version of the
245
+ non-normative JATS DTD Suite, as an indication to JATS users
246
+ the decisions that have been made by the JATS Standing
247
+ Committee. This draft has not yet been given public review
248
+ or voting. The formal public identifiers were changed in the
249
+ modules and the catalogs.
250
+
251
+ 11. JATS "1.2d1" and "v1.2d1 20170631" became
252
+ JATS "1.2d1" and "v1.2d1 20171231".
253
+
254
+ =============================================================
255
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
256
+
257
+ NISO JATS is a continuing maintenance NISO Standard, which
258
+ requires voting by the ANSI and NISO memberships to be changed.
259
+
260
+ This draft DTD represents an interim version of the
261
+ non-normative JATS DTD Suite, as an indication to JATS users
262
+ the decisions that have been made by the JATS Standing
263
+ Committee. This draft has not yet been given public review
264
+ or voting. The formal public identifiers were changed in the
265
+ modules and the catalogs.
266
+
267
+ 10. JATS became version "1.2d1" and "v1.2d1 20170631"
268
+
269
+ =============================================================
270
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
271
+
272
+ JATS is a continuing maintenance NISO Standard, which
273
+ requires voting by the ANSI and NISO memberships to be changed.
274
+ JATS 1.1 was approved in late 2015, so the formal public
275
+ identifiers were changed in the modules and the catalogs.
276
+ No model or attribute changes were made at this time.
277
+
278
+ 9. JATS became version "1.1" and "v1.1 20151215"
279
+ BITS remained version "2.0" but becomes "v2.0 20151225"
280
+
281
+ =============================================================
282
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
283
+
284
+ The changes in this release are in response to NISO
285
+ License and Indicators Recommended Practice.
286
+
287
+ NISO JATS is a continuing maintenance NISO Standard, which
288
+ requires voting by the NISO membership to be changed. This
289
+ Committee Draft 1.1d3 will be sent to the NISO voting
290
+ membership, to become (if approved) NISO JATS 1.1.
291
+
292
+ This draft DTD represents an interim version of the
293
+ non-normative JATS DTD Suite, as an indication to JATS users
294
+ the decisions that have been made by the JATS Standing
295
+ Committee.
296
+
297
+ 8. JATS became version "1.1d3" and "v1.1d3 20150301"
298
+
299
+ =============================================================
300
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
301
+
302
+ NISO JATS is a continuing maintenance NISO Standard, which
303
+ requires voting by the NISO membership to be changed. This
304
+ Committee Draft 1.1d2 will be sent to the NISO voting
305
+ membership, to become (if approved) NISO JATS 1.1.
306
+
307
+ This catalog represents an interim version of the
308
+ non-normative JATS DTD Suite, as an indication to JATS users
309
+ the decisions that have been made by the JATS Standing
310
+ Committee.
311
+
312
+ 7. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
313
+
314
+ =============================================================
315
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
316
+
317
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
318
+
319
+ NISO JATS Standing Committee met and answered the requests and
320
+ suggestions from the NISO request forms.
321
+
322
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
323
+ XSDs, RNGs and supporting documentation are available at
324
+ http://jats.nlm.nih.gov/1.3d2/
325
+
326
+ 6. PARAGRAPH IN TABLE CELL - Added <p> to the contents of
327
+ table cells, through %inside-cell; (using
328
+ %nothing-but-para.class;).
329
+
330
+ =============================================================
331
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
332
+
333
+ ANSI/NISO Z39.96-2012 (Version 1.0)
334
+
335
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
336
+ XSDs, RNGs and supporting documentation are available at
337
+ http://jats.nlm.nih.gov/1.3d2/
338
+
339
+ 5. RELATED OBJECT - Added <related-object> everywhere
340
+ <related-article> was used.
341
+
342
+ 4. PARA-LEVEL PARAMETER ENTITY CONFLICT - Changed the parameter
343
+ entity %para-level; to use the PE %nothing-but-para.class;,
344
+ removing the similar PE "just-para.class;". It is possible to
345
+ add element(s) to %just-para.class;, so that the added element(s)
346
+ may be used everywhere <p> is used. Such elements would also be
347
+ named in %block-display.class;. This would lead to a conflict
348
+ in %para-level; if both %just-para.class; and
349
+ %block-display.class; named <p>. So %just-para.class; is replaced
350
+ here in %para-level;. This is backward compatible for all XML
351
+ documents. If a JATS customization has modified %just-para.class;
352
+ they may need to change their customization to accommodate.
353
+
354
+ =============================================================
355
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
356
+
357
+ This Tag Set is in the process of becoming a NISO standard.
358
+ The version numbers are starting over from 0.4", as a Trial
359
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
360
+ becomes a NISO standard. Thus, the version number that would
361
+ have been "NLM Version 3.1 Draft" has become NISO JATS
362
+ "Version 0.4".
363
+
364
+ Details on NISO Trial Use Draft Version 0.4 are available at
365
+ http://jats.nlm.nih.gov/JATS-0.4.
366
+
367
+ 3. Updated the DTD-version attribute to "0.4"
368
+
369
+ 2. Updated the public identifier to "v0.4 20110131",
370
+ modified the formal public identifier to include "JATS (Z39.96)",
371
+ and the filename as delivered to include "JATS" and the
372
+ new version number "0".
373
+ http://jats.nlm.nih.gov/0.4.
374
+
375
+ =============================================================
376
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
377
+
378
+ Version 3.0 is the first non-backward-compatible release.
379
+ In addition to the usual incremental changes, some
380
+ elements and attributes have been renamed and/or remodeled
381
+ to better meet user needs and to increase tag set consistency.
382
+ All module change histories are available through the Tag Suite
383
+ web site at http://dtd.nlm.nih.gov.
384
+
385
+ Details on version 3.0 are available at
386
+ http://dtd.nlm.nih.gov/3.0.
387
+
388
+ 1. Updated public identifier to "v3.0 20071031//EN"
389
+ -->
390
+ <!-- ============================================================= -->
391
+ <!--
392
+ Details concerning
393
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
394
+ RNGs and supporting documentation are available at
395
+ http://jats.nlm.nih.gov/1.1/
396
+ -->
397
+ <!-- ============================================================= -->
398
+ <!-- ELEMENT MIXES FOR USE IN CONTENT MODELS -->
399
+ <!-- (MIXES ARE COMPOSED USING CLASSES) -->
400
+ <!-- ============================================================= -->
401
+ <!-- ============================================================= -->
402
+ <!-- EXCEPTION: A MIX USED IN OTHER MIXES -->
403
+ <!-- ============================================================= -->
404
+ <!-- ALL PHRASE-LEVEL ELEMENTS -->
405
+ <!--
406
+ This Parameter Entity contains all of the
407
+ phrase-level elements in the entire
408
+ Archival Tag Set EXCEPT THE <break> element.
409
+ MAINTENANCE NOTE:
410
+ Since this is used inside other mixes
411
+ (like a class and unlike all other mixes)
412
+ all-phrase must
413
+ - be declared first in this module.
414
+ - does not start with an OR bar, as all
415
+ other inline mixes do
416
+ -->
417
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0">
418
+ <define name="all-phrase">
419
+ <choice>
420
+ <ref name="address-link.class"/>
421
+ <ref name="article-link.class"/>
422
+ <ref name="appearance.class"/>
423
+ <ref name="emphasis.class"/>
424
+ <ref name="inline-display.class"/>
425
+ <ref name="inline-math.class"/>
426
+ <ref name="math.class"/>
427
+ <ref name="phrase.class"/>
428
+ <ref name="simple-link.class"/>
429
+ <ref name="subsup.class"/>
430
+ <ref name="x.class"/>
431
+ </choice>
432
+ </define>
433
+ <!-- ============================================================= -->
434
+ <!-- TABLE ELEMENT MIXES -->
435
+ <!-- ============================================================= -->
436
+ <!-- INSIDE TABLE CELL ELEMENTS -->
437
+ <!--
438
+ Mixed with #PCDATA inside a table cell, such
439
+ as a <td> or <th> element in the XHTML table
440
+ model, the <entry> element in the OASIS CALS
441
+ table model, etc. This PE will be used as the
442
+ value of %Flow.mix;, %paracon;, etc.
443
+ MAINTENANCE NOTE: Inside cell is an exception,
444
+ an inline mix that does not start with an OR
445
+ bar. This is because is used within the
446
+ PE -%Flow.mix;, which is an inline mix
447
+ defined in the course of the XHTML Table DTD,
448
+ a DTD not under control of this DTD Suite.
449
+ -->
450
+ <define name="inside-cell">
451
+ <choice>
452
+ <ref name="all-phrase"/>
453
+ <ref name="block-math.class"/>
454
+ <ref name="break.class"/>
455
+ <ref name="chem-struct-wrap.class"/>
456
+ <ref name="citation.class"/>
457
+ <ref name="intable-para.class"/>
458
+ <ref name="list.class"/>
459
+ <ref name="nothing-but-para.class"/>
460
+ <ref name="question-answer.class"/>
461
+ <ref name="simple-display-noalt.class"/>
462
+ </choice>
463
+ </define>
464
+ <!-- ============================================================= -->
465
+ <!-- BACK MATTER ELEMENT MIXES(%backmatter.ent;) -->
466
+ <!-- ============================================================= -->
467
+ <!-- DOCUMENT BACK MATTER ELEMENTS -->
468
+ <!--
469
+ Back Matter Elements used by a full document
470
+ such as a journal article. This is an element
471
+ grouping rather than a class. These
472
+ elements may also appear in the content models
473
+ of structural elements, such as back matter.
474
+ -->
475
+ <define name="doc-back-matter-mix">
476
+ <choice>
477
+ <ref name="back.class"/>
478
+ <ref name="front-back.class"/>
479
+ <ref name="sec.class"/>
480
+ </choice>
481
+ </define>
482
+ <!-- ============================================================= -->
483
+ <!-- PARAGRAPH-LEVEL ELEMENT MIXES -->
484
+ <!-- ============================================================= -->
485
+ <!-- PARAGRAPH-LEVEL ELEMENTS -->
486
+ <!--
487
+ Elements that may be used at the same
488
+ structural level as a paragraph, for
489
+ example inside a Section
490
+ Note: There a major overlap between this
491
+ parameter entity and that for the elements
492
+ that are at the same level as a paragraph.
493
+ Inline elements appear only inside a
494
+ paragraph, but block elements such as quotes
495
+ and lists may appear either within a
496
+ paragraph or at the same level as a
497
+ paragraph. This serves a requirement in a
498
+ repository DTD, since some incoming material
499
+ will have restricted such elements to only
500
+ inside a paragraph, some incoming material
501
+ will have restricted them to only outside a
502
+ paragraph and some may allow them in both
503
+ places. Thus the DTD must allow for them to
504
+ be in either or both.
505
+ -->
506
+ <define name="para-level">
507
+ <choice>
508
+ <ref name="block-display.class"/>
509
+ <ref name="block-math.class"/>
510
+ <ref name="list.class"/>
511
+ <ref name="math.class"/>
512
+ <ref name="nothing-but-para.class"/>
513
+ <ref name="related-article.class"/>
514
+ <ref name="rest-of-para.class"/>
515
+ <ref name="x.class"/>
516
+ </choice>
517
+ </define>
518
+ <!-- INSIDE AN ANSWER PARAGRAPH-LEVEL ELEMENTS -->
519
+ <!--
520
+ The elements that may be used at the same
521
+ structural level as a paragraph, when
522
+ used inside an <answer>.
523
+ Remarks: This rather awkward parameter entity
524
+ was created to overcome the DTD determinism
525
+ issues when using <explanation> inside
526
+ an <answer>. In order for <explanation> to
527
+ be used at the end of an answer, it must
528
+ not be allowed at the paragraph level inside
529
+ <answer>.
530
+ -->
531
+ <define name="answer-para-level">
532
+ <choice>
533
+ <ref name="block-display-minus-explanation.class"/>
534
+ <ref name="block-math.class"/>
535
+ <ref name="list.class"/>
536
+ <ref name="math.class"/>
537
+ <ref name="nothing-but-para.class"/>
538
+ <ref name="related-article.class"/>
539
+ <ref name="rest-of-para.class"/>
540
+ <ref name="x.class"/>
541
+ </choice>
542
+ </define>
543
+ <!-- ============================================================= -->
544
+ <!-- INLINE ELEMENT MIXES -->
545
+ <!-- ============================================================= -->
546
+ <!-- EMPHASIS MIX ELEMENTS -->
547
+ <!--
548
+ Elements that may be used inside most of the
549
+ emphasis class elements
550
+ -->
551
+ <define name="emphasized-text">
552
+ <choice>
553
+ <ref name="all-phrase"/>
554
+ <ref name="break.class"/>
555
+ </choice>
556
+ </define>
557
+ <!-- JUST RENDITION -->
558
+ <!--
559
+ Only the simplest of the typographic
560
+ emphasis elements, as well as subscript and
561
+ superscript. Usually used in a model that
562
+ allows #PCDATA and this restricted mixture.
563
+ This mix may be stripped down to only
564
+ subscript and superscript by some, more
565
+ restrictive DTDs.
566
+ MAINTENANCE NOTE: This Parameter Entity
567
+ and the related PE "rendition-plus" have
568
+ been put in place to restrict the amount of
569
+ variability that a person modifying the DTD
570
+ through PE redefinition can achieve. Some
571
+ elements have been set #PCDATA plus one PE
572
+ and some have been set to #PCDATA plus the
573
+ other in an effort to allow designers to
574
+ modify entire groups of elements, but not
575
+ to change similar models individually .
576
+ -->
577
+ <define name="just-rendition">
578
+ <ref name="all-phrase"/>
579
+ </define>
580
+ <!-- RENDITION MARKUP PLUS -->
581
+ <!--
582
+ Only the simplest of the typographic
583
+ emphasis elements, as well as subscript and
584
+ superscript. Usually used in a model that
585
+ allows #PCDATA and this restricted mixture.
586
+ This mix may be enhanced slightly in some
587
+ more permissive DTDs, and should always
588
+ contain at least typographic emphasis,
589
+ subscript, and superscript.
590
+ MAINTENANCE NOTE: This Parameter Entity
591
+ and the related PE "just-rendition" have
592
+ been put in place to restrict the amount of
593
+ variability that a person modifying the DTD
594
+ through PE redefinition can achieve. Some
595
+ elements have been set #PCDATA plus one PE
596
+ and some have been set to #PCDATA plus the
597
+ other in an effort to allow designers to
598
+ modify entire groups of elements, but not
599
+ to individually change similar models.
600
+ modify entire groups of elements, but not
601
+ to change similar models individually .
602
+ -->
603
+ <define name="rendition-plus">
604
+ <ref name="all-phrase"/>
605
+ </define>
606
+ <!-- SIMPLE PHRASE-LEVEL TEXTUAL ELEMENTS -->
607
+ <!--
608
+ Elements that may be used almost anywhere
609
+ text is used, for example, inside a title.
610
+ Simple text plus inline display and math
611
+ elements.
612
+ -->
613
+ <define name="simple-phrase">
614
+ <ref name="all-phrase"/>
615
+ </define>
616
+ <!-- SIMPLE TEXTUAL CONTENT -->
617
+ <!--
618
+ Elements that may be used inside elements
619
+ that are really expected to be #PCDATA and
620
+ not to contain any of these things.
621
+ Note that in the original, this contained
622
+ no math and no links, thus is was even
623
+ simpler than %simple-phrase; (As of 2004,
624
+ the two are the same.) s
625
+ -->
626
+ <define name="simple-text">
627
+ <ref name="all-phrase"/>
628
+ </define>
629
+ </grammar>
630
+ <!-- ================== End Archiving DTD Mixes Customization ==== -->