@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,620 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Math Class Elements -->
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) JATS DTD Suite Math Class Elements v1.3 20210610//EN"
13
+ Delivered as file "JATS-math1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Names all elements in the math classes -->
20
+ <!---->
21
+ <!-- TAG SET SPONSOR -->
22
+ <!-- National Center for Biotechnology -->
23
+ <!-- Information (NCBI) -->
24
+ <!-- National Library of Medicine (NLM) -->
25
+ <!---->
26
+ <!-- CREATED FOR: -->
27
+ <!-- This module was created for the JATS DTD Suite. -->
28
+ <!-- Digital archives and publishers may use the -->
29
+ <!-- DTD as is for markup of journal literature or -->
30
+ <!-- related material for archiving and transferring -->
31
+ <!-- such material between archives or create a -->
32
+ <!-- custom XML DTD from the Suite for -->
33
+ <!-- these purposes. -->
34
+ <!---->
35
+ <!-- This DTD is in the public domain. An organization -->
36
+ <!-- that wishes to create its own DTD from the suite -->
37
+ <!-- may do so without permission from NLM. -->
38
+ <!---->
39
+ <!-- The suite has been set up to be extended using a -->
40
+ <!-- new DTD file and a new DTD-specific customization -->
41
+ <!-- module to redefine the many Parameter Entities. -->
42
+ <!-- Do not modify the suite directly or redistribute -->
43
+ <!-- modified versions of the suite. -->
44
+ <!---->
45
+ <!-- In the interest of maintaining consistency and -->
46
+ <!-- clarity for potential users, NLM requests: -->
47
+ <!---->
48
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
49
+ <!-- and intend to stay compatible with the suite, -->
50
+ <!-- then please include the following statement -->
51
+ <!-- as a comment in all of your DTD modules: -->
52
+ <!-- "Created from, and fully compatible with, -->
53
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
54
+ <!-- Suite (JATS)." -->
55
+ <!---->
56
+ <!-- 2. If you alter one or more modules of the suite, -->
57
+ <!-- then please rename your version and all its -->
58
+ <!-- modules to avoid any confusion with the -->
59
+ <!-- original suite. Also, please include the -->
60
+ <!-- following statement as a comment in all your -->
61
+ <!-- DTD modules: -->
62
+ <!-- "Based in part on, but not fully compatible -->
63
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
64
+ <!-- Tag Suite (JATS)." -->
65
+ <!---->
66
+ <!-- ORIGINAL CREATION DATE: -->
67
+ <!-- December 2002 -->
68
+ <!---->
69
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
70
+ <!-- Working Group. Mulberry Technologies was -->
71
+ <!-- supported by National Center for Biotechnology -->
72
+ <!-- Information (NCBI), a center of the US National -->
73
+ <!-- Library of Medicine (NLM). -->
74
+ <!---->
75
+ <!-- This module is part of the JATS DTD Suite. The -->
76
+ <!-- Suite is a continuation of work done by NCBI, -->
77
+ <!-- Mulberry Technologies, and Inera Inc. on the NLM -->
78
+ <!-- Journal Archiving and Interchange DTD Suite, which -->
79
+ <!-- was originally released in December, 2002. -->
80
+ <!---->
81
+ <!-- NLM thanks the Harvard University Libraries, both -->
82
+ <!-- for proposing that a draft archiving NLM DTD for -->
83
+ <!-- life sciences journals be extended to accommodate -->
84
+ <!-- journals in all disciplines and for sponsoring -->
85
+ <!-- Inera Inc.'s collaboration with other DTD -->
86
+ <!-- authors in completing NLM Version 1.0. The -->
87
+ <!-- Andrew W. Mellon Foundation provided support for -->
88
+ <!-- these important contributions. -->
89
+ <!---->
90
+ <!-- Suggestions for refinements and enhancements to -->
91
+ <!-- this DTD should be sent in email to: -->
92
+ <!-- jats@ncbi.nlm.nih.gov -->
93
+ <!-- ============================================================= -->
94
+ <!-- ============================================================= -->
95
+ <!-- DTD VERSION/CHANGE HISTORY -->
96
+ <!-- ============================================================= -->
97
+ <!--
98
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
99
+ ==============================================================
100
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
101
+ (DAL/BTU) v1.3 (2021-06-10)
102
+
103
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
104
+ which requires voting by both the NISO and ANSI memberships
105
+ to be changed. This version of the NISO JATS was approved
106
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
107
+ Drafts as well as the draft version JATS 1.3 2021 (the version
108
+ submitted for vote), becoming NISO JATS v1.3 20210610
109
+ (ANSI/NISO Z39.96-2019).
110
+
111
+ The file names and formal public identifiers have been
112
+ changed in the modules and the catalogs.
113
+
114
+ 23. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
115
+ (final ANSI vote date)
116
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
117
+
118
+ ==============================================================
119
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
120
+ (DAL/BTU) v1.3d2 (2020-11-30)
121
+
122
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
123
+ which requires voting by the NISO and ANSI memberships
124
+ to be changed.
125
+
126
+ This draft DTD represents an interim version of the
127
+ non-normative JATS DTD Suite, as an indication to JATS users
128
+ of the decisions that have been made by the JATS Standing
129
+ Committee. This draft has not yet been given public review
130
+ or voting; it is for Standing Committee review and
131
+ testing. The formal public identifiers have been changed
132
+ in the modules and the catalogs.
133
+
134
+ 22. OBJECT ID Added <object-id> to:
135
+ <disp-formula>, <disp-formula-group>
136
+
137
+ 21. DISPLAY FORMULA - Held our noses and added <caption> to
138
+ <display-formula>.
139
+
140
+ 20. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
141
+ committee draft following the final ANSI/NISO 1.2 vote)
142
+
143
+ ==============================================================
144
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
145
+ (DAL/BTU) v1.3.d1 (2019-08-31)
146
+
147
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
148
+ which requires voting by the NISO and ANSI memberships
149
+ to be changed.
150
+
151
+ This draft DTD represents an interim version of the
152
+ non-normative JATS DTD Suite, as an indication to JATS users
153
+ of the decisions that have been made by the JATS Standing
154
+ Committee. This draft has not yet been given public review
155
+ or voting. The formal public identifiers were changed in the
156
+ modules and the catalogs.
157
+
158
+ 19. ADDED SUBJECTS TO WHEREVER KEYWORDS ALLOWED - Added
159
+ <subj-group> directly to the following elements:
160
+ - disp-formula
161
+ - disp-formula-group
162
+
163
+
164
+ 18. JATS "1.2" becomes "v1.3d1 20190831" (first committee
165
+ draft following the final ANSI/NISO vote)
166
+
167
+ ==============================================================
168
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
169
+ (DAL/BTU) v1.2 (2019-02-08)
170
+
171
+ NISO JATS is a continuing maintenance NISO Standard, which
172
+ requires voting by the both the NISO and ANSI membership
173
+ to be changed. This version of the NISO JATS was approved
174
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
175
+ Drafts as well as the draft version JATS 1.2 2018 (the version
176
+ submitted for vote), becoming NISO JATS v1.2 20190208
177
+ (ANSI/NISO Z39.96-2021).
178
+
179
+ 17. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
180
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
181
+
182
+ ==============================================================
183
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
184
+
185
+ (DAL/BTU) v1.2 (2018-11-30)
186
+
187
+ NISO JATS is a continuing maintenance NISO Standard, which
188
+ requires voting by the both the NISO and ANSI membership
189
+ to be changed. This version of the NISO JATS was approved
190
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
191
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
192
+
193
+ 16.
194
+ JATS "1.2d2" and "v1.2d2 20180401" became
195
+ JATS "1.2" and "v1.2 20181130"
196
+
197
+ =============================================================
198
+
199
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
200
+
201
+ JATS is a continuing maintenance NISO Standard, which
202
+ requires voting by the ANSI and NISO memberships to be changed.
203
+ BITS is under continuous maintenance, and is modified at the
204
+ discretion of the working group.
205
+
206
+ This draft DTD represents an interim version of the
207
+ non-normative JATS DTD Suite, as an indication to JATS users
208
+ the decisions that have been made by the JATS Standing
209
+ Committee. This draft has not yet been given public review
210
+ or voting. The formal public identifiers were changed in the
211
+ modules and the catalogs.
212
+
213
+ 15. BITS "2.0" and "v2.0 20151225" remain unchanged
214
+
215
+
216
+ JATS "1.2d1" and "v1.2d1 20171231" became
217
+ JATS "1.2d2" and "v1.2d2 20180401".
218
+
219
+ No module names were changed.
220
+
221
+ =============================================================
222
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
223
+ (DAL/BTU) v1.2d1 (2017-12-31)
224
+
225
+ NISO JATS is a continuing maintenance NISO Standard, which
226
+ requires voting by the ANSI and NISO memberships to be changed.
227
+
228
+ This draft DTD represents an interim version of the
229
+ non-normative JATS DTD Suite, as an indication to JATS users
230
+ the decisions that have been made by the JATS Standing
231
+ Committee. This draft has not yet been given public review
232
+ or voting. The formal public identifiers were changed in the
233
+ modules and the catalogs.
234
+
235
+ 14. JATS "1.2d1" and "v1.2d1 20170631" became
236
+ JATS "1.2d1" and "v1.2d1 20171231".
237
+
238
+ =============================================================
239
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-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
+ 13. INLINE FORMULA - Added accessibility elements <alt-text> and
252
+ <long-desc> to the model of <inline-formula>, by adding the
253
+ access.class PE.
254
+
255
+ 12. JATS became version "1.2d1" and "v1.2d1 20170631"
256
+
257
+ =============================================================
258
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
259
+
260
+ JATS is a continuing maintenance NISO Standard, which
261
+ requires voting by the ANSI and NISO memberships to be changed.
262
+ JATS 1.1 was approved in late 2015, so the formal public
263
+ identifiers were changed in the modules and the catalogs.
264
+ No model or attribute changes were made at this time.
265
+
266
+ 11. JATS became version "1.1" and "v1.1 20151215"
267
+ BITS remained version "2.0" but becomes "v2.0 20151225"
268
+
269
+ =============================================================
270
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
271
+
272
+ The changes in this release are in response to NISO
273
+ License and Indicators Recommended Practice.
274
+
275
+ NISO JATS is a continuing maintenance NISO Standard, which
276
+ requires voting by the NISO membership to be changed. This
277
+ Committee Draft 1.1d3 will be sent to the NISO voting
278
+ membership, to become (if approved) NISO JATS 1.1.
279
+
280
+ This draft DTD represents an interim version of the
281
+ non-normative JATS DTD Suite, as an indication to JATS users
282
+ the decisions that have been made by the JATS Standing
283
+ Committee.
284
+
285
+ 10. JATS became version "1.1d3" and "v1.1 20150301//EN"
286
+
287
+ =============================================================
288
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
289
+
290
+ NISO JATS is a continuing maintenance NISO Standard, which
291
+ requires voting by the NISO membership to be changed. This
292
+ Committee Draft 1.1d2 will be sent to the NISO voting
293
+ membership, to become (if approved) NISO JATS 1.1.
294
+
295
+ This catalog represents an interim version of the
296
+ non-normative JATS DTD Suite, as an indication to JATS users
297
+ the decisions that have been made by the JATS Standing
298
+ Committee.
299
+
300
+ 9. TEXT-MATH - Added @specific-use to the attributes for
301
+ <text-math>, primarily for use when <tex-math> is used
302
+ inside <alternatives>.
303
+
304
+ 8. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
305
+
306
+ =============================================================
307
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
308
+
309
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
310
+
311
+ NISO JATS Standing Committee met and answered the requests and
312
+ suggestions from the NISO request forms.
313
+
314
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
315
+ XSDs, RNGs and supporting documentation are available at
316
+ http://jats.nlm.nih.gov/1.3d2/
317
+
318
+ 7. GLOBAL ATTRIBUTES - Added the new parameter entity
319
+ %jats-common-atts;
320
+ to every element in this module. This PE adds (for now) the
321
+ @id attribute and the @xml:base attribute to every element,
322
+ whether metadata or narrative.
323
+ Since the @id in this parameter entity is optional, a second
324
+ parameter entity jats-common-atts-id-required was also added.
325
+ The two are kept in sync with the jats-base-atts parameter
326
+ entity.
327
+
328
+ 6. ABSTRACTS AND KEYWORDS ON NEW STRUCTURES
329
+ - Added <abstract> (through %abstract.class;) and <kwd-group>
330
+ (through %kwd-group.class;) to the following elements:
331
+ - disp-formula (through %disp-formula-elements;)
332
+ - disp-formula-group (through %disp-formula-group-model;)
333
+
334
+ =============================================================
335
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
336
+
337
+ ANSI/NISO Z39.96-2012 (Version 1.0)
338
+
339
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
340
+ XSDs, RNGs and supporting documentation are available at
341
+ http://jats.nlm.nih.gov/1.3d2/
342
+
343
+ 5. Updated the DTD-version attribute to "1.0" and the formal
344
+ public identifier to the date: "v1.0 20120330//EN".
345
+
346
+ =============================================================
347
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
348
+
349
+ This Tag Set is in the process of becoming a NISO standard.
350
+ The version numbers are starting over from 0.4", as a Trial
351
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
352
+ becomes a NISO standard. Thus, the version number that would
353
+ have been "NLM Version 3.1 Draft" has become NISO JATS
354
+ "Version 0.4".
355
+
356
+ Details on NISO Trial Use Draft Version 0.4 are available at
357
+ http://jats.nlm.nih.gov/JATS-0.4.
358
+
359
+ 4. Updated the DTD-version attribute to "0.4"
360
+
361
+ 3. Updated the public identifier to "v0.4 20110131",
362
+ modified the formal public identifier to include "JATS (Z39.96)",
363
+ and the filename as delivered to include "JATS" and the
364
+ new version number "0".
365
+
366
+ 2. @SPECIFIC-USE and @XML:LANG - Added the @specific-use and
367
+ @xml:lang to the following elements:
368
+
369
+ - disp-formula through disp-formula-atts (@xml:lang-only;
370
+ @specific-use already)
371
+ - disp-formula-group through disp-formula-group-atts
372
+ (@xml:lang-only; @specific-use already)
373
+ - inline-formula through inline-formula-atts
374
+ (@specific-use-only; @xml:lang already)
375
+
376
+ =============================================================
377
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
378
+
379
+ Version 3.0 is the first non-backward-compatible release.
380
+ In addition to the usual incremental changes, some
381
+ elements and attributes have been renamed and/or remodeled
382
+ to better meet user needs and to increase tag set consistency.
383
+ All module change histories are available through the Tag Suite
384
+ web site at http://dtd.nlm.nih.gov.
385
+
386
+ Details on version 3.0 are available at
387
+ http://dtd.nlm.nih.gov/3.0.
388
+
389
+ 1. Updated public identifier to "v3.0 20071031//EN"
390
+ -->
391
+ <!-- ============================================================= -->
392
+ <!--
393
+ Details concerning
394
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
395
+ RNGs and supporting documentation are available at
396
+ http://jats.nlm.nih.gov/1.1/
397
+ -->
398
+ <!-- ============================================================= -->
399
+ <!-- PARAMETER ENTITIES FOR ATTRIBUTE LISTS -->
400
+ <!-- ============================================================= -->
401
+ <!-- DISPLAY FORMULA ATTRIBUTES -->
402
+ <!-- Attributes for the <disp-formula> element -->
403
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
404
+ <define name="disp-formula-atts">
405
+ <ref name="jats-common-atts"/>
406
+ <optional>
407
+ <attribute name="content-type"/>
408
+ </optional>
409
+ <optional>
410
+ <attribute name="specific-use"/>
411
+ </optional>
412
+ <optional>
413
+ <attribute name="xml:lang">
414
+ <data type="NMTOKEN"/>
415
+ </attribute>
416
+ </optional>
417
+ </define>
418
+ <!-- DISPLAY FORMULA GROUP ATTRIBUTES -->
419
+ <!--
420
+ Attributes for the <disp-formula-group>
421
+ element
422
+ -->
423
+ <define name="disp-formula-group-atts">
424
+ <ref name="jats-common-atts"/>
425
+ <optional>
426
+ <attribute name="content-type"/>
427
+ </optional>
428
+ <optional>
429
+ <attribute name="specific-use"/>
430
+ </optional>
431
+ <optional>
432
+ <attribute name="xml:lang">
433
+ <data type="NMTOKEN"/>
434
+ </attribute>
435
+ </optional>
436
+ </define>
437
+ <!-- INLINE FORMULA ATTRIBUTES -->
438
+ <!--
439
+ Attribute list for the <inline-formula>
440
+ element
441
+ -->
442
+ <define name="inline-formula-atts">
443
+ <ref name="jats-common-atts"/>
444
+ <optional>
445
+ <attribute name="content-type"/>
446
+ </optional>
447
+ <optional>
448
+ <attribute name="specific-use"/>
449
+ </optional>
450
+ <optional>
451
+ <attribute name="xml:lang">
452
+ <data type="NMTOKEN"/>
453
+ </attribute>
454
+ </optional>
455
+ </define>
456
+ <!-- TEX MATH ATTRIBUTES -->
457
+ <!-- Attributes for the <disp-formula> element -->
458
+ <define name="tex-math-atts">
459
+ <ref name="jats-common-atts"/>
460
+ <optional>
461
+ <attribute name="content-type"/>
462
+ </optional>
463
+ <optional>
464
+ <attribute name="specific-use"/>
465
+ </optional>
466
+ <optional>
467
+ <attribute name="notation">
468
+ <choice>
469
+ <value>LaTeX</value>
470
+ <value>tex</value>
471
+ <value>TEX</value>
472
+ <value>TeX</value>
473
+ </choice>
474
+ </attribute>
475
+ </optional>
476
+ <optional>
477
+ <attribute name="version"/>
478
+ </optional>
479
+ </define>
480
+ <!-- ============================================================= -->
481
+ <!-- MATH ELEMENTS (INLINE LEVEL) -->
482
+ <!-- ============================================================= -->
483
+ <!-- FORMULA, INLINE ELEMENTS -->
484
+ <!--
485
+ Elements for use in the <inline-formula>
486
+ element
487
+ -->
488
+ <!-- FORMULA, INLINE MODEL -->
489
+ <!-- Content model for an <inline-formula> -->
490
+ <define name="inline-formula-model">
491
+ <zeroOrMore>
492
+ <choice>
493
+ <text/>
494
+ <ref name="inline-formula-elements"/>
495
+ </choice>
496
+ </zeroOrMore>
497
+ </define>
498
+ <!-- FORMULA, INLINE -->
499
+ <!--
500
+ Inline element for a mathematical
501
+ equation, expression, or formula
502
+ Details at:
503
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=inline-formula
504
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=inline-formula
505
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=inline-formula
506
+ -->
507
+ <define name="inline-formula">
508
+ <element name="inline-formula">
509
+ <ref name="inline-formula-attlist"/>
510
+ <ref name="inline-formula-model"/>
511
+ </element>
512
+ </define>
513
+ <define name="inline-formula-attlist" combine="interleave">
514
+ <ref name="inline-formula-atts"/>
515
+ </define>
516
+ <!-- ============================================================= -->
517
+ <!-- MATH ELEMENTS (INLINE LEVEL) -->
518
+ <!-- ============================================================= -->
519
+ <!-- DISPLAY FORMULA ELEMENTS -->
520
+ <!--
521
+ Elements for use in the <disp-formula>
522
+ element
523
+ -->
524
+ <!-- FORMULA, DISPLAY MODEL -->
525
+ <!-- Content model for an <disp-formula> -->
526
+ <define name="disp-formula-model">
527
+ <zeroOrMore>
528
+ <choice>
529
+ <text/>
530
+ <ref name="disp-formula-elements"/>
531
+ </choice>
532
+ </zeroOrMore>
533
+ </define>
534
+ <!-- FORMULA, DISPLAY -->
535
+ <!--
536
+ Block-level (callout) element for a
537
+ mathematical equation, expression, or
538
+ formula.
539
+ Details at:
540
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=disp-formula
541
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=disp-formula
542
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=disp-formula
543
+ -->
544
+ <define name="disp-formula">
545
+ <element name="disp-formula">
546
+ <ref name="disp-formula-attlist"/>
547
+ <ref name="disp-formula-model"/>
548
+ </element>
549
+ </define>
550
+ <define name="disp-formula-attlist" combine="interleave">
551
+ <ref name="disp-formula-atts"/>
552
+ </define>
553
+ <!-- FORMULA, DISPLAY GROUP MODEL -->
554
+ <!-- Content model for an <disp-formula-group> -->
555
+ <define name="disp-formula-group-model">
556
+ <zeroOrMore>
557
+ <ref name="id.class"/>
558
+ </zeroOrMore>
559
+ <optional>
560
+ <ref name="label"/>
561
+ </optional>
562
+ <optional>
563
+ <ref name="caption.class"/>
564
+ </optional>
565
+ <zeroOrMore>
566
+ <ref name="abstract.class"/>
567
+ </zeroOrMore>
568
+ <zeroOrMore>
569
+ <ref name="kwd-group.class"/>
570
+ </zeroOrMore>
571
+ <zeroOrMore>
572
+ <ref name="subj-group.class"/>
573
+ </zeroOrMore>
574
+ <zeroOrMore>
575
+ <choice>
576
+ <ref name="access.class"/>
577
+ <ref name="address-link.class"/>
578
+ </choice>
579
+ </zeroOrMore>
580
+ <zeroOrMore>
581
+ <ref name="block-math.class"/>
582
+ </zeroOrMore>
583
+ </define>
584
+ <!-- FORMULA, DISPLAY GROUP -->
585
+ <!--
586
+ Used for a group of equations or other
587
+ mathematical expressions that are displayed
588
+ together.
589
+ Details at:
590
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=disp-formula-group
591
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=disp-formula-group
592
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=disp-formula-group
593
+ -->
594
+ <define name="disp-formula-group">
595
+ <element name="disp-formula-group">
596
+ <ref name="disp-formula-group-attlist"/>
597
+ <ref name="disp-formula-group-model"/>
598
+ </element>
599
+ </define>
600
+ <define name="disp-formula-group-attlist" combine="interleave">
601
+ <ref name="disp-formula-group-atts"/>
602
+ </define>
603
+ <!-- TEX MATH EQUATION -->
604
+ <!--
605
+ Used to hold encoded math, expressed in TeX
606
+ Details at:
607
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=tex-math
608
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=tex-math
609
+ -->
610
+ <define name="tex-math">
611
+ <element name="tex-math">
612
+ <ref name="tex-math-attlist"/>
613
+ <text/>
614
+ </element>
615
+ </define>
616
+ <define name="tex-math-attlist" combine="interleave">
617
+ <ref name="tex-math-atts"/>
618
+ </define>
619
+ </grammar>
620
+ <!-- ================== End Math Class Elements Module =========== -->