@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,583 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Default Element 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) Default Element Mixes Module v1.3 20210610//EN"
13
+ Delivered as file "JATS-default-mixes1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Declares default values for all the element mixes -->
20
+ <!-- used in the content models of the DTD Suite -->
21
+ <!---->
22
+ <!-- Mixes are Or-groups of classes, used in many -->
23
+ <!-- different content models. Mixes should not use -->
24
+ <!-- element names directly, only through classes. -->
25
+ <!---->
26
+ <!-- Note: Since PEs must be declared before they -->
27
+ <!-- are used, this module must be called after the -->
28
+ <!-- customize mixes module (if any). -->
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 module was created for 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
+ <!-- This module is part of the JATS DTD Suite. The -->
85
+ <!-- Suite is a continuation of work done by NCBI, -->
86
+ <!-- Mulberry Technologies, and Inera, Inc. on the NLM -->
87
+ <!-- Journal Archiving and Interchange DTD Suite, which -->
88
+ <!-- was originally released in December, 2002. -->
89
+ <!---->
90
+ <!-- NLM thanks the Harvard University Libraries, both -->
91
+ <!-- for proposing that a draft archiving NLM DTD for -->
92
+ <!-- life sciences journals be extended to accommodate -->
93
+ <!-- journals in all disciplines and for sponsoring -->
94
+ <!-- Inera Inc.'s collaboration with other DTD -->
95
+ <!-- authors in completing NLM Version 1.0. The -->
96
+ <!-- Andrew W. Mellon Foundation provided support for -->
97
+ <!-- these important contributions. -->
98
+ <!---->
99
+ <!-- Suggestions for refinements and enhancements to -->
100
+ <!-- this DTD should be sent in email to: -->
101
+ <!-- jats@ncbi.nlm.nih.gov -->
102
+ <!-- ============================================================= -->
103
+ <!-- ============================================================= -->
104
+ <!-- DTD VERSION/CHANGE HISTORY -->
105
+ <!-- ============================================================= -->
106
+ <!--
107
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
108
+ ==============================================================
109
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
110
+ (DAL/BTU) v1.3 (2021-06-10)
111
+
112
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
113
+ which requires voting by both the NISO and ANSI memberships
114
+ to be changed. This version of the NISO JATS was approved
115
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
116
+ Drafts as well as the draft version JATS 1.3 2021 (the version
117
+ submitted for vote), becoming NISO JATS v1.3 20210610
118
+ (ANSI/NISO Z39.96-2019).
119
+
120
+ The file names and formal public identifiers have been
121
+ changed in the modules and the catalogs.
122
+
123
+ 19. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
124
+ (final ANSI vote date)
125
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
126
+
127
+ ==============================================================
128
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
129
+ (DAL/BTU) v1.3d2 (2020-11-30)
130
+
131
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
132
+ which requires voting by the NISO and ANSI memberships
133
+ to be changed.
134
+
135
+ This draft DTD represents an interim version of the
136
+ non-normative JATS DTD Suite, as an indication to JATS users
137
+ of the decisions that have been made by the JATS Standing
138
+ Committee. This draft has not yet been given public review
139
+ or voting; it is for Standing Committee review and
140
+ testing. The formal public identifiers have been changed
141
+ in the modules and the catalogs.
142
+
143
+ 18. TABLE CELLS - Added new elements to <td> using %inside.cell;
144
+ and <entry> using %Flowmix;:
145
+ <disp-quote>, <speech>, <statement>, <verse-group>
146
+
147
+ 17. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
148
+ committee draft following the final ANSI/NISO 1.2 vote)
149
+
150
+ ===============================================================
151
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
152
+ (DAL/BTU) v1.3.d1 (2019-08-31)
153
+
154
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
155
+ which requires voting by the NISO and ANSI memberships
156
+ to be changed.
157
+
158
+ This draft DTD represents an interim version of the
159
+ non-normative JATS DTD Suite, as an indication to JATS users
160
+ of the decisions that have been made by the JATS Standing
161
+ Committee. This draft has not yet been given public review
162
+ or voting. The formal public identifiers were changed in the
163
+ modules and the catalogs.
164
+
165
+ 16. QUESTIONS AND ANSWERS
166
+
167
+ - NEW PE for ANSWERS - Added new mix "answer para level"
168
+ to name the elements that may be used at the same
169
+ structural level as a paragraph, when used inside an
170
+ <answer>. This rather awkward parameter entity was created
171
+ to overcome the DTD determinism issues when using
172
+ <explanation> inside an <answer>. In order for
173
+ <explanation> to be used at the end of an answer,
174
+ it must not be allowed at the paragraph level
175
+ inside <answer>.
176
+
177
+ - INSIDE TABLE CELLS - Added the question answer class
178
+ to the contents of table cell using inside cell mix.
179
+
180
+ 15. LINKING TABLES TO SUPPLEMENTARY MATERIAL
181
+
182
+ - Added the <xref> element (for an internal cross-reference)
183
+ to the large OR-group inside the body of a <table-wrap>, to
184
+ be used to make a link to a <supplementary-material>
185
+ element as a way of recording that a dataset or similar is
186
+ the data from which the table was derived.
187
+
188
+ 14. JATS "1.2" becomes "v1.3d1 20190831" (first committee
189
+ draft following the final ANSI/NISO vote)
190
+
191
+ ==============================================================
192
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
193
+ (DAL/BTU) v1.2 (2019-02-08)
194
+
195
+ NISO JATS is a continuing maintenance NISO Standard, which
196
+ requires voting by the both the NISO and ANSI membership
197
+ to be changed. This version of the NISO JATS was approved
198
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
199
+ Drafts as well as the draft version JATS 1.2 2018 (the version
200
+ submitted for vote), becoming NISO JATS v1.2 20190208
201
+ (ANSI/NISO Z39.96-2021).
202
+
203
+ 13. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
204
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
205
+
206
+ =============================================================
207
+
208
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
209
+
210
+ JATS is a continuing maintenance NISO Standard, which
211
+ requires voting by the ANSI and NISO memberships to be changed.
212
+ BITS is under continuous maintenance, and is modified at the
213
+ discretion of the working group.
214
+
215
+ This draft DTD represents an interim version of the
216
+ non-normative JATS DTD Suite, as an indication to JATS users
217
+ the decisions that have been made by the JATS Standing
218
+ Committee. This draft has not yet been given public review
219
+ or voting. The formal public identifiers were changed in the
220
+ modules and the catalogs.
221
+
222
+ 12. BITS "2.0" and "v2.0 20151225" remain unchanged
223
+
224
+
225
+ JATS "1.2d1" and "v1.2d1 20171231" became
226
+ JATS "1.2d2" and "v1.2d2 20180401".
227
+
228
+ No module names were changed.
229
+
230
+ =============================================================
231
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
232
+ (DAL/BTU) v1.2d1 (2017-12-31)
233
+
234
+ NISO JATS is a continuing maintenance NISO Standard, which
235
+ requires voting by the ANSI and NISO memberships to be changed.
236
+
237
+ This draft DTD represents an interim version of the
238
+ non-normative JATS DTD Suite, as an indication to JATS users
239
+ the decisions that have been made by the JATS Standing
240
+ Committee. This draft has not yet been given public review
241
+ or voting. The formal public identifiers were changed in the
242
+ modules and the catalogs.
243
+
244
+ 11. JATS "1.2d1" and "v1.2d1 20170631" became
245
+ JATS "1.2d1" and "v1.2d1 20171231".
246
+
247
+ =============================================================
248
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
249
+
250
+ NISO JATS is a continuing maintenance NISO Standard, which
251
+ requires voting by the ANSI and NISO memberships to be changed.
252
+
253
+ This draft DTD represents an interim version of the
254
+ non-normative JATS DTD Suite, as an indication to JATS users
255
+ the decisions that have been made by the JATS Standing
256
+ Committee. This draft has not yet been given public review
257
+ or voting. The formal public identifiers were changed in the
258
+ modules and the catalogs.
259
+
260
+ 10. JATS became version "1.2d1" and "v1.2d1 20170631"
261
+
262
+ =============================================================
263
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
264
+
265
+ JATS is a continuing maintenance NISO Standard, which
266
+ requires voting by the ANSI and NISO memberships to be changed.
267
+ JATS 1.1 was approved in late 2015, so the formal public
268
+ identifiers were changed in the modules and the catalogs.
269
+ No model or attribute changes were made at this time.
270
+
271
+ 9. JATS became version "1.1" and "v1.1 20151215"
272
+ BITS remained version "2.0" but becomes "v2.0 20151225"
273
+
274
+ =============================================================
275
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
276
+
277
+ The changes in this release are in response to NISO
278
+ License and Indicators Recommended Practice.
279
+
280
+ NISO JATS is a continuing maintenance NISO Standard, which
281
+ requires voting by the NISO membership to be changed. This
282
+ Committee Draft 1.1d3 will be sent to the NISO voting
283
+ membership, to become (if approved) NISO JATS 1.1.
284
+
285
+ This draft DTD represents an interim version of the
286
+ non-normative JATS DTD Suite, as an indication to JATS users
287
+ the decisions that have been made by the JATS Standing
288
+ Committee.
289
+
290
+ 8. JATS became version "1.1d3" and "v1.1 20150301//EN"
291
+
292
+ =============================================================
293
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
294
+
295
+ NISO JATS is a continuing maintenance NISO Standard, which
296
+ requires voting by the NISO membership to be changed. This
297
+ Committee Draft 1.1d2 will be sent to the NISO voting
298
+ membership, to become (if approved) NISO JATS 1.1.
299
+
300
+ This catalog represents an interim version of the
301
+ non-normative JATS DTD Suite, as an indication to JATS users
302
+ the decisions that have been made by the JATS Standing
303
+ Committee.
304
+
305
+ 7. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
306
+
307
+ =============================================================
308
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
309
+
310
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
311
+
312
+ NISO JATS Standing Committee met and answered the requests and
313
+ suggestions from the NISO request forms.
314
+
315
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
316
+ XSDs, RNGs and supporting documentation are available at
317
+ http://jats.nlm.nih.gov/1.3d2/
318
+
319
+ 6. PARAGRAPH IN TABLE CELL - Added <p> to the contents of
320
+ table cells, through %inside-cell; (using
321
+ %nothing-but-para.class;).
322
+
323
+ =============================================================
324
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
325
+
326
+ ANSI/NISO Z39.96-2012 (Version 1.0)
327
+
328
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
329
+ XSDs, RNGs and supporting documentation are available at
330
+ http://jats.nlm.nih.gov/1.3d2/
331
+
332
+ 5. PARA-LEVEL PARAMETER ENTITY CONFLICT - Changed the parameter
333
+ entity %para-level; to use the PE %nothing-but-para.class;,
334
+ removing the similar PE "just-para.class;". It is possible to
335
+ add element(s) to %just-para.class;, so that the added element(s)
336
+ may be used everywhere <p> is used. Such elements would also be
337
+ named in %block-display.class;. This would lead to a conflict
338
+ in %para-level; if both %just-para.class; and
339
+ %block-display.class; named <p>. So %just-para.class; is replaced
340
+ here in %para-level;. This is backward compatible for all XML
341
+ documents. If a JATS customization has modified %just-para.class;
342
+ they may need to change their customization to accommodate.
343
+
344
+ 4. Updated the DTD-version attribute to "1.0" and the formal
345
+ public identifier to the date: "v1.0 20120330//EN".
346
+
347
+ =============================================================
348
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
349
+
350
+ This Tag Set is in the process of becoming a NISO standard.
351
+ The version numbers are starting over from 0.4", as a Trial
352
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
353
+ becomes a NISO standard. Thus, the version number that would
354
+ have been "NLM Version 3.1 Draft" has become NISO JATS
355
+ "Version 0.4".
356
+
357
+ Details on NISO Trial Use Draft Version 0.4 are available at
358
+ http://jats.nlm.nih.gov/JATS-0.4.
359
+
360
+ 3. Updated the DTD-version attribute to "0.4"
361
+
362
+ 2. Updated the public identifier to "v0.4 20110131",
363
+ modified the formal public identifier to include "JATS (Z39.96)",
364
+ and the filename as delivered to include "JATS" and the
365
+ new version number "0".
366
+ http://jats.nlm.nih.gov/0.4.
367
+
368
+ =============================================================
369
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
370
+
371
+ Version 3.0 is the first non-backward-compatible release.
372
+ In addition to the usual incremental changes, some
373
+ elements and attributes have been renamed and/or remodeled
374
+ to better meet user needs and to increase tag set consistency.
375
+ All module change histories are available through the Tag Suite
376
+ web site at http://dtd.nlm.nih.gov.
377
+
378
+ Details on version 3.0 are available at
379
+ http://dtd.nlm.nih.gov/3.0.
380
+
381
+ 1. Updated public identifier to "v3.0 20071031//EN"
382
+ -->
383
+ <!-- ============================================================= -->
384
+ <!--
385
+ Details concerning
386
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
387
+ RNGs and supporting documentation are available at
388
+ http://jats.nlm.nih.gov/1.1/
389
+ -->
390
+ <!-- ============================================================= -->
391
+ <!-- ELEMENT MIXES FOR USE IN CONTENT MODELS -->
392
+ <!-- (MIXES ARE COMPOSED USING CLASSES) -->
393
+ <!-- ============================================================= -->
394
+ <!-- SECTION-LEVEL ELEMENTS -->
395
+ <!--
396
+ Elements that may be used at the same
397
+ structural level as a Section for example
398
+ inside the Body <body>
399
+ -->
400
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0">
401
+ <define name="sec-level">
402
+ <ref name="sec.class"/>
403
+ </define>
404
+ <!-- ============================================================= -->
405
+ <!-- BACK MATTER ELEMENT MIXES(%backmatter.ent;) -->
406
+ <!-- ============================================================= -->
407
+ <!-- DOCUMENT BACK MATTER ELEMENTS -->
408
+ <!--
409
+ Back Matter Elements used by a full document
410
+ such as a journal article. This is an element
411
+ grouping rather than a class. These
412
+ elements may also appear in the content models
413
+ of structural elements, such as back matter.
414
+ (Note: Technically this should have used
415
+ %sec.class;, but %sec-level; was used in an
416
+ earlier release and backwards compatibility
417
+ must be maintained.
418
+ -->
419
+ <!-- SECTION BACK MATTER ELEMENTS -->
420
+ <!--
421
+ Back matter elements used inside smaller
422
+ structures, such as sections and sidebars
423
+ -->
424
+ <define name="sec-back-matter-mix">
425
+ <choice>
426
+ <ref name="front-back.class"/>
427
+ <ref name="sec-back.class"/>
428
+ </choice>
429
+ </define>
430
+ <!-- ============================================================= -->
431
+ <!-- PARAGRAPH-LEVEL ELEMENT MIXES -->
432
+ <!-- ============================================================= -->
433
+ <!-- PARAGRAPH-LEVEL ELEMENTS -->
434
+ <!--
435
+ Elements that may be used at the same
436
+ structural level as a paragraph, for
437
+ example inside a Section
438
+ Note: There a major overlap between this
439
+ parameter entity and that for the elements
440
+ that are at the same level as a paragraph.
441
+ Inline elements appear only inside a
442
+ paragraph, but block elements such as quotes
443
+ and lists may appear either within a
444
+ paragraph or at the same level as a
445
+ paragraph. This serves a requirement in a
446
+ repository DTD, since some incoming material
447
+ will have restricted such elements to only
448
+ inside a paragraph, some incoming material
449
+ will have restricted them to only outside a
450
+ paragraph and some may allow them in both
451
+ places. Thus the DTD must allow for them to
452
+ be in either or both.
453
+ -->
454
+ <!-- INSIDE AN ANSWER PARAGRAPH-LEVEL ELEMENTS -->
455
+ <!--
456
+ The elements that may be used at the same
457
+ structural level as a paragraph, when
458
+ used inside an <answer>.
459
+ Remarks: This rather awkward parameter entity
460
+ was created to overcome the DTD determinism
461
+ issues when using <explanation> inside
462
+ an <answer>. In order for <explanation> to
463
+ be used at the end of an answer, it must
464
+ not be allowed at the paragraph level inside
465
+ <answer>.
466
+ -->
467
+ <!-- ============================================================= -->
468
+ <!-- TABLE ELEMENT MIXES -->
469
+ <!-- ============================================================= -->
470
+ <!-- INSIDE TABLE CELL ELEMENTS -->
471
+ <!--
472
+ Mixed with #PCDATA inside a table cell, such
473
+ as a <td> or <th> element in the XHTML table
474
+ model, the <entry> element in the OASIS CALS
475
+ table model, etc. This PE will be used as the
476
+ value of %Flow.mix;, %paracon;, etc.
477
+ ### Usage Alert ###
478
+ Design Note: Inside cell is an exception, an
479
+ inline mix that does not start with an OR
480
+ bar. This is because is used within the
481
+ PE -%Flow.mix;, which is an inline mix
482
+ defined in the course of the XHTML Table DTD,
483
+ a DTD not under control of this DTD Suite.
484
+ -->
485
+ <!-- INSIDE TABLE WRAPPER ELEMENTS -->
486
+ <!--
487
+ Usually a Table Wrapper contains a table,
488
+ properly tagged with rows and columns, but
489
+ sometimes, a structure that is labeled as
490
+ a "table" is actually a list, or two
491
+ paragraphs. This Parameter Entity names
492
+ all the alternatives to table that may
493
+ occur inside a table wrapper.
494
+ -->
495
+ <define name="inside-table-wrap">
496
+ <choice>
497
+ <ref name="intable-para.class"/>
498
+ <ref name="list.class"/>
499
+ <ref name="simple-intable-display.class"/>
500
+ <ref name="table.class"/>
501
+ <ref name="xref.class"/>
502
+ </choice>
503
+ </define>
504
+ </grammar>
505
+ <!-- ============================================================= -->
506
+ <!-- INLINE ELEMENT MIXES -->
507
+ <!-- ============================================================= -->
508
+ <!-- EMPHASIS MIX ELEMENTS -->
509
+ <!--
510
+ Elements that may be used inside most of the
511
+ emphasis class elements
512
+ Design Note: Inline mixes begin with an
513
+ OR bar
514
+ -->
515
+ <!-- JUST RENDITION -->
516
+ <!--
517
+ Only the simplest of the typographic
518
+ emphasis elements, as well as subscript and
519
+ superscript. Usually used in a model that
520
+ allows #PCDATA and this restricted mixture.
521
+ This mix may be stripped down to only
522
+ subscript and superscript by some, more
523
+ restrictive DTDs.
524
+ MAINTENANCE NOTE: This Parameter Entity
525
+ and the related PE "rendition-plus" have
526
+ been put in place to restrict the amount of
527
+ variability that a person modifying the DTD
528
+ through PE redefinition can achieve. Some
529
+ elements have been set #PCDATA plus one PE
530
+ and some have been set to #PCDATA plus the
531
+ other in an effort to allow designers to
532
+ modify entire groups of elements, but not
533
+ to change similar models individually .
534
+ Design Note: Inline mixes begin with an
535
+ OR bar
536
+ -->
537
+ <!-- RENDITION MARKUP PLUS -->
538
+ <!--
539
+ Only the simplest of the typographic
540
+ emphasis elements, as well as subscript and
541
+ superscript. Usually used in a model that
542
+ allows #PCDATA and this restricted mixture.
543
+ This mix may be enhanced slightly in some
544
+ more permissive DTDs, and should always
545
+ contain at least typographic emphasis,
546
+ subscript, and superscript.
547
+ MAINTENANCE NOTE:: This Parameter Entity
548
+ and the related PE "just-rendition" have
549
+ been put in place to restrict the amount of
550
+ variability that a person modifying the DTD
551
+ through PE redefinition can achieve. Some
552
+ elements have been set #PCDATA plus one PE
553
+ and some have been set to #PCDATA plus the
554
+ other in an effort to allow designers to
555
+ modify entire groups of elements, but not
556
+ to individually change similar models.
557
+ modify entire groups of elements, but not
558
+ to change similar models individually .
559
+ Design Note: Inline mixes begin with an
560
+ OR bar
561
+ -->
562
+ <!-- SIMPLE PHRASE-LEVEL TEXTUAL ELEMENTS -->
563
+ <!--
564
+ Elements that may be used almost anywhere
565
+ text is used, for example, inside a title.
566
+ Simple text plus inline display and math
567
+ elements. In practice, This is the next step
568
+ up from "simple-text", adding the links.
569
+ Design Note: Inline mixes begin with an
570
+ OR bar
571
+ -->
572
+ <!-- SIMPLE TEXTUAL CONTENT -->
573
+ <!--
574
+ Elements that may be used inside elements
575
+ that are really expected to be #PCDATA and
576
+ not to contain any of these things.
577
+ Note that there is only inline math and no
578
+ links.
579
+ Simpler even than %simple-phrase;
580
+ Design Note: Inline mixes begin with an
581
+ OR bar
582
+ -->
583
+ <!-- ================== End Archiving DTD Mixes Customization ==== -->