@teipublisher/oddity-language-server 0.0.0-stage → 0.1.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 (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -2
  3. package/dist/edit.js +313 -0
  4. package/dist/edit.js.map +7 -0
  5. package/dist/index.js +803 -0
  6. package/dist/index.js.map +7 -0
  7. package/dist/node.cjs +44962 -0
  8. package/dist/node.cjs.map +7 -0
  9. package/package.json +74 -4
  10. package/schema/README.md +41 -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/tei/tei_all.rng +23212 -0
  47. package/src/core/association.ts +155 -0
  48. package/src/core/complete.ts +147 -0
  49. package/src/core/elements.ts +86 -0
  50. package/src/core/outline.ts +156 -0
  51. package/src/core/schema.ts +55 -0
  52. package/src/core/tags.ts +104 -0
  53. package/src/core/toml.ts +64 -0
  54. package/src/core/validate.ts +128 -0
  55. package/src/core/wellformed.ts +16 -0
  56. package/src/edit.ts +11 -0
  57. package/src/index.ts +16 -0
  58. package/src/node.ts +39 -0
  59. package/src/server/server.ts +248 -0
@@ -0,0 +1,780 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Paragraph-Like 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 Paragraph-Like Elements v1.3 20210610//EN"
13
+ Delivered as file "JATS-para1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Names structural elements that will appear in -->
20
+ <!-- the same places as a paragraph -->
21
+ <!---->
22
+ <!-- TAG SET SPONSOR -->
23
+ <!-- National Center for Biotechnology -->
24
+ <!-- Information (NCBI) -->
25
+ <!-- National Library of Medicine (NLM) -->
26
+ <!---->
27
+ <!-- CREATED FOR: -->
28
+ <!-- This module was created for the JATS DTD Suite. -->
29
+ <!-- Digital archives and publishers may use the -->
30
+ <!-- DTD as is for markup of journal literature or -->
31
+ <!-- related material for archiving and transferring -->
32
+ <!-- such material between archives or create a -->
33
+ <!-- custom XML DTD from the Suite for -->
34
+ <!-- these purposes. -->
35
+ <!---->
36
+ <!-- This DTD is in the public domain. An organization -->
37
+ <!-- that wishes to create its own DTD from the suite -->
38
+ <!-- may do so without permission from NLM. -->
39
+ <!---->
40
+ <!-- The suite has been set up to be extended using a -->
41
+ <!-- new DTD file and a new DTD-specific customization -->
42
+ <!-- module to redefine the many Parameter Entities. -->
43
+ <!-- Do not modify the suite directly or redistribute -->
44
+ <!-- modified versions of the suite. -->
45
+ <!---->
46
+ <!-- In the interest of maintaining consistency and -->
47
+ <!-- clarity for potential users, NLM requests: -->
48
+ <!---->
49
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
50
+ <!-- and intend to stay compatible with the suite, -->
51
+ <!-- then please include the following statement -->
52
+ <!-- as a comment in all of your DTD modules: -->
53
+ <!-- "Created from, and fully compatible with, -->
54
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
55
+ <!-- Suite (JATS)." -->
56
+ <!---->
57
+ <!-- 2. If you alter one or more modules of the suite, -->
58
+ <!-- then please rename your version and all its -->
59
+ <!-- modules to avoid any confusion with the -->
60
+ <!-- original suite. Also, please include the -->
61
+ <!-- following statement as a comment in all your -->
62
+ <!-- DTD modules: -->
63
+ <!-- "Based in part on, but not fully compatible -->
64
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
65
+ <!-- Tag Suite (JATS)." -->
66
+ <!---->
67
+ <!-- ORIGINAL CREATION DATE: -->
68
+ <!-- December 2002 -->
69
+ <!---->
70
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
71
+ <!-- Working Group. Mulberry Technologies was -->
72
+ <!-- supported by National Center for Biotechnology -->
73
+ <!-- Information (NCBI), a center of the US National -->
74
+ <!-- Library of Medicine (NLM). -->
75
+ <!---->
76
+ <!-- This module is part of the JATS DTD Suite. The -->
77
+ <!-- Suite is a continuation of work done by NCBI, -->
78
+ <!-- Mulberry Technologies, and Inera Inc. on the NLM -->
79
+ <!-- Journal Archiving and Interchange DTD Suite, which -->
80
+ <!-- was originally released in December, 2002. -->
81
+ <!---->
82
+ <!-- NLM thanks the Harvard University Libraries, both -->
83
+ <!-- for proposing that a draft archiving NLM DTD for -->
84
+ <!-- life sciences journals be extended to accommodate -->
85
+ <!-- journals in all disciplines and for sponsoring -->
86
+ <!-- Inera Inc.'s collaboration with other DTD -->
87
+ <!-- authors in completing NLM Version 1.0. The -->
88
+ <!-- Andrew W. Mellon Foundation provided support for -->
89
+ <!-- these important contributions. -->
90
+ <!---->
91
+ <!-- Suggestions for refinements and enhancements to -->
92
+ <!-- this DTD should be sent in email to: -->
93
+ <!-- jats@ncbi.nlm.nih.gov -->
94
+ <!-- ============================================================= -->
95
+ <!-- ============================================================= -->
96
+ <!-- DTD VERSION/CHANGE HISTORY -->
97
+ <!-- ============================================================= -->
98
+ <!--
99
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
100
+ ==============================================================
101
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
102
+ (DAL/BTU) v1.3 (2021-06-10)
103
+
104
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
105
+ which requires voting by both the NISO and ANSI memberships
106
+ to be changed. This version of the NISO JATS was approved
107
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
108
+ Drafts as well as the draft version JATS 1.3 2021 (the version
109
+ submitted for vote), becoming NISO JATS v1.3 20210610
110
+ (ANSI/NISO Z39.96-2019).
111
+
112
+ The file names and formal public identifiers have been
113
+ changed in the modules and the catalogs.
114
+
115
+ 25. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
116
+ (final ANSI vote date)
117
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
118
+
119
+ ==============================================================
120
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
121
+ (DAL/BTU) v1.3d2 (2020-11-30)
122
+
123
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
124
+ which requires voting by the NISO and ANSI memberships
125
+ to be changed.
126
+
127
+ This draft DTD represents an interim version of the
128
+ non-normative JATS DTD Suite, as an indication to JATS users
129
+ of the decisions that have been made by the JATS Standing
130
+ Committee. This draft has not yet been given public review
131
+ or voting; it is for Standing Committee review and
132
+ testing. The formal public identifiers have been changed
133
+ in the modules and the catalogs.
134
+
135
+ 24. OBJECT ID Added <object-id> to:
136
+ <speech>
137
+
138
+ 23. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
139
+ committee draft following the final ANSI/NISO 1.2 vote)
140
+
141
+ ==============================================================
142
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
143
+ (DAL/BTU) v1.3.d1 (2019-08-31)
144
+
145
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
146
+ which requires voting by the NISO and ANSI memberships
147
+ to be changed.
148
+
149
+ This draft DTD represents an interim version of the
150
+ non-normative JATS DTD Suite, as an indication to JATS users
151
+ of the decisions that have been made by the JATS Standing
152
+ Committee. This draft has not yet been given public review
153
+ or voting. The formal public identifiers were changed in the
154
+ modules and the catalogs.
155
+
156
+ 22. ADDED SUBJECTS TO WHEREVER KEYWORDS ALLOWED - Added
157
+ <subj-group> directly to the following elements:
158
+ - statement
159
+
160
+ 21. JATS "1.2" becomes "v1.3d1 20190831" (first committee
161
+ draft following the final ANSI/NISO vote)
162
+
163
+ ==============================================================
164
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
165
+ (DAL/BTU) v1.2 (2019-02-08)
166
+
167
+ NISO JATS is a continuing maintenance NISO Standard, which
168
+ requires voting by the both the NISO and ANSI membership
169
+ to be changed. This version of the NISO JATS was approved
170
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
171
+ Drafts as well as the draft version JATS 1.2 2018 (the version
172
+ submitted for vote), becoming NISO JATS v1.2 20190208
173
+ (ANSI/NISO Z39.96-2021).
174
+
175
+ 20. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
176
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
177
+
178
+ ==============================================================
179
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
180
+
181
+ (DAL/BTU) v1.2 (2018-11-30)
182
+
183
+ NISO JATS is a continuing maintenance NISO Standard, which
184
+ requires voting by the both the NISO and ANSI membership
185
+ to be changed. This version of the NISO JATS was approved
186
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
187
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
188
+
189
+ 19.
190
+ JATS "1.2d2" and "v1.2d2 20180401" became
191
+ JATS "1.2" and "v1.2 20181130"
192
+
193
+ =============================================================
194
+
195
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
196
+
197
+ JATS is a continuing maintenance NISO Standard, which
198
+ requires voting by the ANSI and NISO memberships to be changed.
199
+ BITS is under continuous maintenance, and is modified at the
200
+ discretion of the working group.
201
+
202
+ This draft DTD represents an interim version of the
203
+ non-normative JATS DTD Suite, as an indication to JATS users
204
+ the decisions that have been made by the JATS Standing
205
+ Committee. This draft has not yet been given public review
206
+ or voting. The formal public identifiers were changed in the
207
+ modules and the catalogs.
208
+
209
+ 18. BITS "2.0" and "v2.0 20151225" remain unchanged
210
+
211
+
212
+ JATS "1.2d1" and "v1.2d1 20171231" became
213
+ JATS "1.2d2" and "v1.2d2 20180401".
214
+
215
+ No module names were changed.
216
+
217
+ =============================================================
218
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
219
+ (DAL/BTU) v1.2d1 (2017-12-31)
220
+
221
+ NISO JATS is a continuing maintenance NISO Standard, which
222
+ requires voting by the ANSI and NISO memberships to be changed.
223
+
224
+ This draft DTD represents an interim version of the
225
+ non-normative JATS DTD Suite, as an indication to JATS users
226
+ the decisions that have been made by the JATS Standing
227
+ Committee. This draft has not yet been given public review
228
+ or voting. The formal public identifiers were changed in the
229
+ modules and the catalogs.
230
+
231
+ 17. JATS "1.2d1" and "v1.2d1 20170631" became
232
+ JATS "1.2d1" and "v1.2d1 20171231".
233
+
234
+ =============================================================
235
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
236
+
237
+ NISO JATS is a continuing maintenance NISO Standard, which
238
+ requires voting by the ANSI and NISO memberships to be changed.
239
+
240
+ This draft DTD represents an interim version of the
241
+ non-normative JATS DTD Suite, as an indication to JATS users
242
+ the decisions that have been made by the JATS Standing
243
+ Committee. This draft has not yet been given public review
244
+ or voting. The formal public identifiers were changed in the
245
+ modules and the catalogs.
246
+
247
+ 16. NEW VERSE ATTRIBUTES
248
+ - Added @indent-level, @style, @style-type, and @style-detail
249
+ to <verse-line>
250
+ - Added @style, @style-type, and @style-detail to <verse-group>
251
+
252
+ 15. JATS became version "1.2d1" and "v1.2d1 20170631"
253
+
254
+ =============================================================
255
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
256
+
257
+ JATS is a continuing maintenance NISO Standard, which
258
+ requires voting by the ANSI and NISO memberships to be changed.
259
+ JATS 1.1 was approved in late 2015, so the formal public
260
+ identifiers were changed in the modules and the catalogs.
261
+ No model or attribute changes were made at this time.
262
+
263
+ 14. JATS became version "1.1" and "v1.1 20151215"
264
+ BITS remained version "2.0" but becomes "v2.0 20151225"
265
+
266
+ =============================================================
267
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
268
+
269
+ The changes in this release are in response to NISO
270
+ License and Indicators Recommended Practice.
271
+
272
+ NISO JATS is a continuing maintenance NISO Standard, which
273
+ requires voting by the NISO membership to be changed. This
274
+ Committee Draft 1.1d3 will be sent to the NISO voting
275
+ membership, to become (if approved) NISO JATS 1.1.
276
+
277
+ This draft DTD represents an interim version of the
278
+ non-normative JATS DTD Suite, as an indication to JATS users
279
+ the decisions that have been made by the JATS Standing
280
+ Committee.
281
+
282
+ 13. JATS became version "1.1d3" and "v1.1 20150301//EN"
283
+
284
+ =============================================================
285
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
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.1d2 will be sent to the NISO voting
290
+ membership, to become (if approved) NISO JATS 1.1.
291
+
292
+ This catalog 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
+ 12. STATEMENT - Added new statement.class inside the model
298
+ for <statement>, so that statements can be recursive.
299
+
300
+ 11. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
301
+
302
+
303
+ =============================================================
304
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
305
+
306
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
307
+
308
+ NISO JATS Standing Committee met and answered the requests and
309
+ suggestions from the NISO request forms.
310
+
311
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
312
+ XSDs, RNGs and supporting documentation are available at
313
+ http://jats.nlm.nih.gov/1.3d2/
314
+
315
+ 10. GLOBAL ATTRIBUTES - Added the new parameter entity
316
+ %jats-common-atts;
317
+ to every element in this module. This PE adds (for now) the
318
+ @id attribute and the @xml:base attribute to every element,
319
+ whether metadata or narrative.
320
+ Since the @id in this parameter entity is optional, a second
321
+ parameter entity jats-common-atts-id-required was also added.
322
+ The two are kept in sync with the jats-base-atts parameter
323
+ entity.
324
+
325
+
326
+ 9. ABSTRACTS AND KEYWORDS ON NEW STRUCTURES
327
+ - Added <abstract> (through %abstract.class;) and <kwd-group>
328
+ (through %kwd-group.class;) to the following elements:
329
+ - statement (through statement-model PE)
330
+
331
+ =============================================================
332
+
333
+ =============================================================
334
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
335
+
336
+ ANSI/NISO Z39.96-2012 (Version 1.0)
337
+
338
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
339
+ XSDs, RNGs and supporting documentation are available at
340
+ http://jats.nlm.nih.gov/1.3d2/
341
+
342
+ 5. Updated the DTD-version attribute to "1.0" and the formal
343
+ public identifier to the date: "v1.0 20120330//EN".
344
+
345
+ =============================================================
346
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
347
+
348
+ This Tag Set is in the process of becoming a NISO standard.
349
+ The version numbers are starting over from 0.4", as a Trial
350
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
351
+ becomes a NISO standard. Thus, the version number that would
352
+ have been "NLM Version 3.1 Draft" has become NISO JATS
353
+ "Version 0.4".
354
+
355
+ Details on NISO Trial Use Draft Version 0.4 are available at
356
+ http://jats.nlm.nih.gov/JATS-0.4.
357
+
358
+ 4. Updated the DTD-version attribute to "0.4"
359
+
360
+ 3. Updated the public identifier to "v0.4 20110131",
361
+ modified the formal public identifier to include "JATS (Z39.96)",
362
+ and the filename as delivered to include "JATS" and the
363
+ new version number "0".
364
+
365
+ 2. @SPECIFIC-USE and @XML:LANG - Added the @specific-use and
366
+ @xml:lang to the following elements:
367
+ - speaker through speaker-atts (both)
368
+ - statement through statement-atts (@xml:lang only; already
369
+ @specific-use))
370
+ - verse-line through verse-line-atts (both)
371
+
372
+ =============================================================
373
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
374
+
375
+ Version 3.0 is the first non-backward-compatible release.
376
+ In addition to the usual incremental changes, some
377
+ elements and attributes have been renamed and/or remodeled
378
+ to better meet user needs and to increase tag set consistency.
379
+ All module change histories are available through the Tag Suite
380
+ web site at http://dtd.nlm.nih.gov.
381
+
382
+ Details on version 3.0 are available at
383
+ http://dtd.nlm.nih.gov/3.0.
384
+
385
+ 1. Updated public identifier to "v3.0 20071031//EN"
386
+ -->
387
+ <!-- ============================================================= -->
388
+ <!--
389
+ Details concerning
390
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
391
+ RNGs and supporting documentation are available at
392
+ http://jats.nlm.nih.gov/1.1/
393
+ -->
394
+ <!-- ============================================================= -->
395
+ <!-- PARAMETER ENTITIES FOR ATTRIBUTE LISTS -->
396
+ <!-- ============================================================= -->
397
+ <!-- DISPLAY QUOTE ATTRIBUTES -->
398
+ <!-- Attribute list for the <disp-quote> element -->
399
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
400
+ <define name="disp-quote-atts">
401
+ <ref name="jats-common-atts"/>
402
+ <optional>
403
+ <attribute name="content-type"/>
404
+ </optional>
405
+ <optional>
406
+ <attribute name="specific-use"/>
407
+ </optional>
408
+ <optional>
409
+ <attribute name="xml:lang">
410
+ <data type="NMTOKEN"/>
411
+ </attribute>
412
+ </optional>
413
+ </define>
414
+ <!-- PARAGRAPH ATTRIBUTES -->
415
+ <!-- Attribute list for the <p> element -->
416
+ <define name="p-atts">
417
+ <ref name="jats-common-atts"/>
418
+ <optional>
419
+ <attribute name="content-type"/>
420
+ </optional>
421
+ <optional>
422
+ <attribute name="specific-use"/>
423
+ </optional>
424
+ <optional>
425
+ <attribute name="xml:lang">
426
+ <data type="NMTOKEN"/>
427
+ </attribute>
428
+ </optional>
429
+ </define>
430
+ <!-- SPEAKER ATTRIBUTES -->
431
+ <!-- Attribute list for the <speaker> element -->
432
+ <define name="speaker-atts">
433
+ <ref name="jats-common-atts"/>
434
+ <optional>
435
+ <attribute name="content-type"/>
436
+ </optional>
437
+ <optional>
438
+ <attribute name="specific-use"/>
439
+ </optional>
440
+ <optional>
441
+ <attribute name="xml:lang">
442
+ <data type="NMTOKEN"/>
443
+ </attribute>
444
+ </optional>
445
+ </define>
446
+ <!-- SPEECH ATTRIBUTES -->
447
+ <!-- Attribute list for the <speech> element -->
448
+ <define name="speech-atts">
449
+ <ref name="jats-common-atts"/>
450
+ <optional>
451
+ <attribute name="content-type"/>
452
+ </optional>
453
+ <optional>
454
+ <attribute name="specific-use"/>
455
+ </optional>
456
+ <optional>
457
+ <attribute name="xml:lang">
458
+ <data type="NMTOKEN"/>
459
+ </attribute>
460
+ </optional>
461
+ </define>
462
+ <!-- STATEMENT ATTRIBUTES -->
463
+ <!-- Attribute list for the <statement> element -->
464
+ <define name="statement-atts">
465
+ <ref name="jats-common-atts"/>
466
+ <optional>
467
+ <attribute name="content-type"/>
468
+ </optional>
469
+ <optional>
470
+ <attribute name="specific-use"/>
471
+ </optional>
472
+ <optional>
473
+ <attribute name="xml:lang">
474
+ <data type="NMTOKEN"/>
475
+ </attribute>
476
+ </optional>
477
+ </define>
478
+ <!-- VERSE GROUP ATTRIBUTES -->
479
+ <!-- Attribute list for the <verse-group> element -->
480
+ <define name="verse-group-atts">
481
+ <ref name="jats-common-atts"/>
482
+ <optional>
483
+ <attribute name="style"/>
484
+ </optional>
485
+ <optional>
486
+ <attribute name="style-detail"/>
487
+ </optional>
488
+ <optional>
489
+ <attribute name="style-type"/>
490
+ </optional>
491
+ <optional>
492
+ <attribute name="content-type"/>
493
+ </optional>
494
+ <optional>
495
+ <attribute name="specific-use"/>
496
+ </optional>
497
+ <optional>
498
+ <attribute name="xml:lang">
499
+ <data type="NMTOKEN"/>
500
+ </attribute>
501
+ </optional>
502
+ </define>
503
+ <!-- VERSE LINE ATTRIBUTES -->
504
+ <!-- Attribute list for the <verse-line> element -->
505
+ <define name="verse-line-atts">
506
+ <ref name="jats-common-atts"/>
507
+ <optional>
508
+ <attribute name="indent-level"/>
509
+ </optional>
510
+ <optional>
511
+ <attribute name="style"/>
512
+ </optional>
513
+ <optional>
514
+ <attribute name="style-detail"/>
515
+ </optional>
516
+ <optional>
517
+ <attribute name="style-type"/>
518
+ </optional>
519
+ <optional>
520
+ <attribute name="content-type"/>
521
+ </optional>
522
+ <optional>
523
+ <attribute name="specific-use"/>
524
+ </optional>
525
+ <optional>
526
+ <attribute name="xml:lang">
527
+ <data type="NMTOKEN"/>
528
+ </attribute>
529
+ </optional>
530
+ </define>
531
+ <!-- ============================================================= -->
532
+ <!-- PARAGRAPH-LEVEL ELEMENTS -->
533
+ <!-- ============================================================= -->
534
+ <!-- PARAGRAPH -->
535
+ <!--
536
+ The basic block-unit of textual information
537
+ Details at:
538
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=p
539
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=p
540
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=p
541
+ -->
542
+ <define name="p">
543
+ <element name="p">
544
+ <ref name="p-attlist"/>
545
+ <zeroOrMore>
546
+ <choice>
547
+ <text/>
548
+ <ref name="p-elements"/>
549
+ </choice>
550
+ </zeroOrMore>
551
+ </element>
552
+ </define>
553
+ <define name="p-attlist" combine="interleave">
554
+ <ref name="p-atts"/>
555
+ </define>
556
+ <!-- ============================================================= -->
557
+ <!-- THE REST OF THE PARAGRAPH ELEMENTS -->
558
+ <!-- ============================================================= -->
559
+ <!-- QUOTE, DISPLAYED MODEL -->
560
+ <!-- Content model for the Display Quote element -->
561
+ <define name="disp-quote-model">
562
+ <optional>
563
+ <ref name="label"/>
564
+ </optional>
565
+ <optional>
566
+ <ref name="title"/>
567
+ </optional>
568
+ <zeroOrMore>
569
+ <ref name="para-level"/>
570
+ </zeroOrMore>
571
+ <zeroOrMore>
572
+ <ref name="display-back-matter.class"/>
573
+ </zeroOrMore>
574
+ </define>
575
+ <!-- QUOTE, DISPLAYED -->
576
+ <!--
577
+ Extract or extended quoted passage from
578
+ another work, usually made typographically
579
+ distinct from the surrounding text.
580
+ Details at:
581
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=disp-quote
582
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=disp-quote
583
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=disp-quote
584
+ -->
585
+ <define name="disp-quote">
586
+ <element name="disp-quote">
587
+ <ref name="disp-quote-attlist"/>
588
+ <ref name="disp-quote-model"/>
589
+ </element>
590
+ </define>
591
+ <define name="disp-quote-attlist" combine="interleave">
592
+ <ref name="disp-quote-atts"/>
593
+ </define>
594
+ <!-- SPEECH MODEL -->
595
+ <!-- Content model for the <speech> element -->
596
+ <define name="speech-model">
597
+ <zeroOrMore>
598
+ <ref name="id.class"/>
599
+ </zeroOrMore>
600
+ <ref name="speaker"/>
601
+ <oneOrMore>
602
+ <ref name="just-para.class"/>
603
+ </oneOrMore>
604
+ </define>
605
+ <!-- SPEECH -->
606
+ <!--
607
+ One exchange in a real or imaginary
608
+ conversation between two or more entities,
609
+ for example, between a an interviewer and the
610
+ person being interviewed, between a nurse or
611
+ doctor and a patient, between a person and a
612
+ computer, etc.
613
+ Details at:
614
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=speech
615
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=speech
616
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=speech
617
+ -->
618
+ <define name="speech">
619
+ <element name="speech">
620
+ <ref name="speech-attlist"/>
621
+ <ref name="speech-model"/>
622
+ </element>
623
+ </define>
624
+ <define name="speech-attlist" combine="interleave">
625
+ <ref name="speech-atts"/>
626
+ </define>
627
+ <!-- SPEAKER ELEMENTS -->
628
+ <!--
629
+ The elements that can be included along with
630
+ data characters inside the content model of
631
+ a speaker.
632
+ -->
633
+ <!-- SPEAKER -->
634
+ <!--
635
+ One who utters a speech as part of a
636
+ speech, for example the computer "HAL" in
637
+ the exchange 'Hal: "Hi Dave"'.
638
+ Details at:
639
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=speaker
640
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=speaker
641
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=speaker
642
+ -->
643
+ <define name="speaker">
644
+ <element name="speaker">
645
+ <ref name="speaker-attlist"/>
646
+ <zeroOrMore>
647
+ <choice>
648
+ <text/>
649
+ <ref name="speaker-elements"/>
650
+ </choice>
651
+ </zeroOrMore>
652
+ </element>
653
+ </define>
654
+ <define name="speaker-attlist" combine="interleave">
655
+ <ref name="speaker-atts"/>
656
+ </define>
657
+ <!-- STATEMENT, FORMAL MODEL -->
658
+ <!-- Content model for the <statement> element -->
659
+ <define name="statement-model">
660
+ <optional>
661
+ <ref name="label"/>
662
+ </optional>
663
+ <optional>
664
+ <ref name="title"/>
665
+ </optional>
666
+ <zeroOrMore>
667
+ <ref name="abstract.class"/>
668
+ </zeroOrMore>
669
+ <zeroOrMore>
670
+ <ref name="kwd-group.class"/>
671
+ </zeroOrMore>
672
+ <zeroOrMore>
673
+ <ref name="subj-group.class"/>
674
+ </zeroOrMore>
675
+ <oneOrMore>
676
+ <choice>
677
+ <ref name="just-para.class"/>
678
+ <ref name="statement.class"/>
679
+ </choice>
680
+ </oneOrMore>
681
+ <zeroOrMore>
682
+ <ref name="display-back-matter.class"/>
683
+ </zeroOrMore>
684
+ </define>
685
+ <!-- STATEMENT, FORMAL -->
686
+ <!--
687
+ A Theorem, Lemma, Proof, Postulate,
688
+ Hypothesis, Proposition, Corollary, or
689
+ other formal statement, identified as such
690
+ with a label, usually made typographically
691
+ distinct from the surrounding text
692
+ Details at:
693
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=statement
694
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=statement
695
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=statement
696
+ -->
697
+ <define name="statement">
698
+ <element name="statement">
699
+ <ref name="statement-attlist"/>
700
+ <ref name="statement-model"/>
701
+ </element>
702
+ </define>
703
+ <define name="statement-attlist" combine="interleave">
704
+ <ref name="statement-atts"/>
705
+ </define>
706
+ <!-- VERSE GROUP MODEL -->
707
+ <!-- Content model for the <verse-group> element -->
708
+ <define name="verse-group-model">
709
+ <optional>
710
+ <ref name="label"/>
711
+ </optional>
712
+ <optional>
713
+ <ref name="title"/>
714
+ </optional>
715
+ <optional>
716
+ <ref name="subtitle"/>
717
+ </optional>
718
+ <oneOrMore>
719
+ <choice>
720
+ <ref name="verse-line"/>
721
+ <ref name="verse-group"/>
722
+ </choice>
723
+ </oneOrMore>
724
+ <zeroOrMore>
725
+ <ref name="display-back-matter.class"/>
726
+ </zeroOrMore>
727
+ </define>
728
+ <!-- VERSE FORM FOR POETRY -->
729
+ <!--
730
+ A song, poem, or verse.
731
+ Implementor's Note: No attempt has been made
732
+ to retain the look or visual form of the
733
+ original.
734
+ Details at:
735
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=verse-group
736
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=verse-group
737
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=verse-group
738
+ -->
739
+ <define name="verse-group">
740
+ <element name="verse-group">
741
+ <ref name="verse-group-attlist"/>
742
+ <ref name="verse-group-model"/>
743
+ </element>
744
+ </define>
745
+ <define name="verse-group-attlist" combine="interleave">
746
+ <ref name="verse-group-atts"/>
747
+ </define>
748
+ <!-- VERSE-LINE ELEMENTS -->
749
+ <!--
750
+ The elements that can be included along with
751
+ data characters inside the content model of
752
+ a <verse-line>
753
+ Design Note: All inline mixes begin with an
754
+ OR bar, but since %simple-text; is an inline
755
+ mix, the OR bar is already there.
756
+ -->
757
+ <!-- LINE OF A VERSE -->
758
+ <!--
759
+ One line of a poem or verse
760
+ Details at:
761
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=verse-line
762
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=verse-line
763
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=verse-line
764
+ -->
765
+ <define name="verse-line">
766
+ <element name="verse-line">
767
+ <ref name="verse-line-attlist"/>
768
+ <zeroOrMore>
769
+ <choice>
770
+ <text/>
771
+ <ref name="verse-line-elements"/>
772
+ </choice>
773
+ </zeroOrMore>
774
+ </element>
775
+ </define>
776
+ <define name="verse-line-attlist" combine="interleave">
777
+ <ref name="verse-line-atts"/>
778
+ </define>
779
+ </grammar>
780
+ <!-- ================== End Paragraph Class Module =============== -->