@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,747 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: List Element Classes -->
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 List Class Elements v1.3 20210610//EN"
13
+ Delivered as file "JATS-list1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Names all elements in the list class. These are -->
20
+ <!-- all lists except the lists of bibliographic -->
21
+ <!-- references (citations). Lists are considered -->
22
+ <!-- to be composed of items. -->
23
+ <!---->
24
+ <!-- TAG SET SPONSOR -->
25
+ <!-- National Center for Biotechnology -->
26
+ <!-- Information (NCBI) -->
27
+ <!-- National Library of Medicine (NLM) -->
28
+ <!---->
29
+ <!-- CREATED FOR: -->
30
+ <!-- This module was created for the JATS DTD Suite. -->
31
+ <!-- Digital archives and publishers may use the -->
32
+ <!-- DTD as is for markup of journal literature or -->
33
+ <!-- related material for archiving and transferring -->
34
+ <!-- such material between archives or create a -->
35
+ <!-- custom XML DTD from the Suite for -->
36
+ <!-- these purposes. -->
37
+ <!---->
38
+ <!-- This DTD is in the public domain. An organization -->
39
+ <!-- that wishes to create its own DTD from the suite -->
40
+ <!-- may do so without permission from NLM. -->
41
+ <!---->
42
+ <!-- The suite has been set up to be extended using a -->
43
+ <!-- new DTD file and a new DTD-specific customization -->
44
+ <!-- module to redefine the many Parameter Entities. -->
45
+ <!-- Do not modify the suite directly or redistribute -->
46
+ <!-- modified versions of the suite. -->
47
+ <!---->
48
+ <!-- In the interest of maintaining consistency and -->
49
+ <!-- clarity for potential users, NLM requests: -->
50
+ <!---->
51
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
52
+ <!-- and intend to stay compatible with the suite, -->
53
+ <!-- then please include the following statement -->
54
+ <!-- as a comment in all of your DTD modules: -->
55
+ <!-- "Created from, and fully compatible with, -->
56
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
57
+ <!-- Suite (JATS)." -->
58
+ <!---->
59
+ <!-- 2. If you alter one or more modules of the suite, -->
60
+ <!-- then please rename your version and all its -->
61
+ <!-- modules to avoid any confusion with the -->
62
+ <!-- original suite. Also, please include the -->
63
+ <!-- following statement as a comment in all your -->
64
+ <!-- DTD modules: -->
65
+ <!-- "Based in part on, but not fully compatible -->
66
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
67
+ <!-- Tag Suite (JATS)." -->
68
+ <!---->
69
+ <!-- ORIGINAL CREATION DATE: -->
70
+ <!-- December 2002 -->
71
+ <!---->
72
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
73
+ <!-- Working Group. Mulberry Technologies was -->
74
+ <!-- supported by National Center for Biotechnology -->
75
+ <!-- Information (NCBI), a center of the US National -->
76
+ <!-- Library of Medicine (NLM). -->
77
+ <!---->
78
+ <!-- This module is part of the JATS DTD Suite. The -->
79
+ <!-- Suite is a continuation of work done by NCBI, -->
80
+ <!-- Mulberry Technologies, and Inera, Inc. on the NLM -->
81
+ <!-- Journal Archiving and Interchange DTD Suite, which -->
82
+ <!-- was originally released in December, 2002. -->
83
+ <!---->
84
+ <!-- NLM thanks the Harvard University Libraries, both -->
85
+ <!-- for proposing that a draft archiving NLM DTD for -->
86
+ <!-- life sciences journals be extended to accommodate -->
87
+ <!-- journals in all disciplines and for sponsoring -->
88
+ <!-- Inera Inc.'s collaboration with other DTD -->
89
+ <!-- authors in completing NLM Version 1.0. The -->
90
+ <!-- Andrew W. Mellon Foundation provided support for -->
91
+ <!-- these important contributions. -->
92
+ <!---->
93
+ <!-- Suggestions for refinements and enhancements to -->
94
+ <!-- this DTD should be sent in email to: -->
95
+ <!-- jats@ncbi.nlm.nih.gov -->
96
+ <!-- ============================================================= -->
97
+ <!-- ============================================================= -->
98
+ <!-- DTD VERSION/CHANGE HISTORY -->
99
+ <!-- ============================================================= -->
100
+ <!--
101
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
102
+ ==============================================================
103
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
104
+ (DAL/BTU) v1.3 (2021-06-10)
105
+
106
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
107
+ which requires voting by both the NISO and ANSI memberships
108
+ to be changed. This version of the NISO JATS was approved
109
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
110
+ Drafts as well as the draft version JATS 1.3 2021 (the version
111
+ submitted for vote), becoming NISO JATS v1.3 20210610
112
+ (ANSI/NISO Z39.96-2019).
113
+
114
+ The file names and formal public identifiers have been
115
+ changed in the modules and the catalogs.
116
+
117
+ 23. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
118
+ (final ANSI vote date)
119
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
120
+
121
+ ==============================================================
122
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
123
+ (DAL/BTU) v1.3d2 (2020-11-30)
124
+
125
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
126
+ which requires voting by the NISO and ANSI memberships
127
+ to be changed.
128
+
129
+ This draft DTD represents an interim version of the
130
+ non-normative JATS DTD Suite, as an indication to JATS users
131
+ of the decisions that have been made by the JATS Standing
132
+ Committee. This draft has not yet been given public review
133
+ or voting; it is for Standing Committee review and
134
+ testing. The formal public identifiers have been changed
135
+ in the modules and the catalogs.
136
+
137
+ 22. OBJECT ID Added <object-id> to:
138
+ <list>
139
+
140
+ 21. 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
+ 20. JATS "1.2" becomes "v1.3d1 20190831" (first committee
159
+ draft following the final ANSI/NISO vote)
160
+
161
+ ==============================================================
162
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
163
+ (DAL/BTU) v1.2 (2019-02-08)
164
+
165
+ NISO JATS is a continuing maintenance NISO Standard, which
166
+ requires voting by the both the NISO and ANSI membership
167
+ to be changed. This version of the NISO JATS was approved
168
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
169
+ Drafts as well as the draft version JATS 1.2 2018 (the version
170
+ submitted for vote), becoming NISO JATS v1.2 20190208
171
+ (ANSI/NISO Z39.96-2021).
172
+
173
+ 19. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
174
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
175
+
176
+ ==============================================================
177
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
178
+
179
+ (DAL/BTU) v1.2 (2018-11-30)
180
+
181
+ NISO JATS is a continuing maintenance NISO Standard, which
182
+ requires voting by the both the NISO and ANSI membership
183
+ to be changed. This version of the NISO JATS was approved
184
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
185
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
186
+
187
+ 18.
188
+ JATS "1.2d2" and "v1.2d2 20180401" became
189
+ JATS "1.2" and "v1.2 20181130"
190
+
191
+ =============================================================
192
+
193
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
194
+
195
+ JATS is a continuing maintenance NISO Standard, which
196
+ requires voting by the ANSI and NISO memberships to be changed.
197
+ BITS is under continuous maintenance, and is modified at the
198
+ discretion of the working group.
199
+
200
+ This draft DTD represents an interim version of the
201
+ non-normative JATS DTD Suite, as an indication to JATS users
202
+ the decisions that have been made by the JATS Standing
203
+ Committee. This draft has not yet been given public review
204
+ or voting. The formal public identifiers were changed in the
205
+ modules and the catalogs.
206
+
207
+ 17. BITS "2.0" and "v2.0 20151225" remain unchanged
208
+
209
+
210
+ JATS "1.2d1" and "v1.2d1 20171231" became
211
+ JATS "1.2d2" and "v1.2d2 20180401".
212
+
213
+ No module names were changed.
214
+
215
+ =============================================================
216
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
217
+ (DAL/BTU) v1.2d1 (2017-12-31)
218
+
219
+ NISO JATS is a continuing maintenance NISO Standard, which
220
+ requires voting by the ANSI and NISO memberships to be changed.
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
+ 16. JATS "1.2d1" and "v1.2d1 20170631" became
230
+ JATS "1.2d1" and "v1.2d1 20171231".
231
+
232
+ =============================================================
233
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
234
+
235
+ NISO JATS is a continuing maintenance NISO Standard, which
236
+ requires voting by the ANSI and NISO memberships to be changed.
237
+
238
+ This draft DTD represents an interim version of the
239
+ non-normative JATS DTD Suite, as an indication to JATS users
240
+ the decisions that have been made by the JATS Standing
241
+ Committee. This draft has not yet been given public review
242
+ or voting. The formal public identifiers were changed in the
243
+ modules and the catalogs.
244
+
245
+ 15. TERM ATTRIBUTES - Added to <term> the following attributes:
246
+ - @term-type
247
+ - @term-status
248
+ - the four vocabulary attributes described below
249
+
250
+ 14. VOCABULARY/TAXONOMY ATTRIBUTES - Added 4 new attributes for
251
+ naming (and possibly linking to) a general or controlled
252
+ taxonomy, vocabulary, index, database or other source of
253
+ terms: @vocab, @vocab-identifier, @vocab-term, and
254
+ @vocab-term-identifier
255
+ - All 4 added to <term>, to name a vocabulary
256
+ as the source of the term being identified
257
+
258
+ 13. JATS became version "1.2d1" and "v1.2d1 20170631"
259
+
260
+ =============================================================
261
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
262
+
263
+ JATS is a continuing maintenance NISO Standard, which
264
+ requires voting by the ANSI and NISO memberships to be changed.
265
+ JATS 1.1 was approved in late 2015, so the formal public
266
+ identifiers were changed in the modules and the catalogs.
267
+ No model or attribute changes were made at this time.
268
+
269
+ 12. JATS became version "1.1" and "v1.1 20151215"
270
+ BITS remained version "2.0" but becomes "v2.0 20151225"
271
+
272
+ =============================================================
273
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
274
+
275
+ The changes in this release are in response to NISO
276
+ License and Indicators Recommended Practice.
277
+
278
+ NISO JATS is a continuing maintenance NISO Standard, which
279
+ requires voting by the NISO membership to be changed. This
280
+ Committee Draft 1.1d3 will be sent to the NISO voting
281
+ membership, to become (if approved) NISO JATS 1.1.
282
+
283
+ This draft DTD represents an interim version of the
284
+ non-normative JATS DTD Suite, as an indication to JATS users
285
+ the decisions that have been made by the JATS Standing
286
+ Committee.
287
+
288
+ 11. JATS became version "1.1d3" and "v1.1 20150301//EN"
289
+
290
+ =============================================================
291
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
292
+
293
+ NISO JATS is a continuing maintenance NISO Standard, which
294
+ requires voting by the NISO membership to be changed. This
295
+ Committee Draft 1.1d2 will be sent to the NISO voting
296
+ membership, to become (if approved) NISO JATS 1.1.
297
+
298
+ This catalog represents an interim version of the
299
+ non-normative JATS DTD Suite, as an indication to JATS users
300
+ the decisions that have been made by the JATS Standing
301
+ Committee.
302
+
303
+ 10. TITLE FOR LIST ITEMS
304
+ Added an optional <title> to the beginning of each <list-item>.
305
+
306
+ 9. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
307
+
308
+
309
+ =============================================================
310
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
311
+
312
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
313
+
314
+ NISO JATS Standing Committee met and answered the requests and
315
+ suggestions from the NISO request forms.
316
+
317
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
318
+ XSDs, RNGs and supporting documentation are available at
319
+ http://jats.nlm.nih.gov/1.3d2/
320
+
321
+ 8. GLOBAL ATTRIBUTES - Added the new parameter entity
322
+ %jats-common-atts;
323
+ to every element in this module. This PE adds (for now) the
324
+ @id attribute and the @xml:base attribute to every element,
325
+ whether metadata or narrative.
326
+ Since the @id in this parameter entity is optional, a second
327
+ parameter entity jats-common-atts-id-required was also added.
328
+ The two are kept in sync with the jats-base-atts parameter
329
+ entity.
330
+ This added a new attribute list to:
331
+ - def-head
332
+ - term-head
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
+ 7. 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
+ 6. Updated the DTD-version attribute to "0.4"
360
+
361
+ 5. 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
+ 4. @SPECIFIC-USE and @XML:LANG - Added the @specific-use and
367
+ @xml:lang to the following elements:
368
+
369
+ - def-item through def-item-atts (both)
370
+ - def-list through def-list-atts (@xml:lang-only;
371
+ @specific-use already)
372
+ - list through list-atts (@xml:lang-only; @specific-use already)
373
+ - list-item through list-item-atts (both)
374
+ - term through term-atts (both)
375
+
376
+ 3. DEFINITION LIST HEADS - Removed the dependency in which
377
+ <term-head> and <def-head> both used the parameter entity
378
+ %def-list-head-elements; One uses %term-head-elements; and
379
+ the other uses %def-head-elements; But the
380
+ %def-list-head-elements; was retained for backward
381
+ compatibility.
382
+
383
+ 2. DEF LIST ATTRIBUTES - Removed the dependency whereby <def-list>
384
+ used both %def-list-atts; and %list-atts;. <def-list> now uses
385
+ only %def-list-atts; No documents need change.
386
+ *****Customization Alert: New parameter entity could break some
387
+ customizations. Check your <def-list> attributes. *****
388
+
389
+ =============================================================
390
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
391
+
392
+ Version 3.0 is the first non-backward-compatible release.
393
+ In addition to the usual incremental changes, some
394
+ elements and attributes have been renamed and/or remodeled
395
+ to better meet user needs and to increase tag set consistency.
396
+ All module change histories are available through the Tag Suite
397
+ web site at http://dtd.nlm.nih.gov.
398
+
399
+ Details on version 3.0 are available at
400
+ http://dtd.nlm.nih.gov/3.0.
401
+
402
+ 1. Updated public identifier to "v3.0 20071031//EN"
403
+ -->
404
+ <!-- ============================================================= -->
405
+ <!--
406
+ Details concerning
407
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
408
+ RNGs and supporting documentation are available at
409
+ http://jats.nlm.nih.gov/1.1/
410
+ -->
411
+ <!-- ============================================================= -->
412
+ <!-- DEFAULT PE FOR ATTRIBUTE LISTS -->
413
+ <!-- ============================================================= -->
414
+ <!-- DEFINITION LIST: DEFINITION HEAD ATTRIBUTES -->
415
+ <!-- Attributes for the <def-head> element -->
416
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
417
+ <define name="def-head-atts">
418
+ <ref name="jats-common-atts"/>
419
+ </define>
420
+ <!-- DEFINITION LIST: DEFINITION ITEM ATTRIBUTES -->
421
+ <!-- Attributes for the <def-item> element -->
422
+ <define name="def-item-atts">
423
+ <ref name="jats-common-atts"/>
424
+ <optional>
425
+ <attribute name="specific-use"/>
426
+ </optional>
427
+ <optional>
428
+ <attribute name="xml:lang">
429
+ <data type="NMTOKEN"/>
430
+ </attribute>
431
+ </optional>
432
+ </define>
433
+ <!-- DEFAULT DEFINITION LIST ATTRIBUTES -->
434
+ <!--
435
+ Default attribute lists to be used for
436
+ Definition (2-part) lists
437
+ -->
438
+ <define name="def-list-atts">
439
+ <ref name="jats-common-atts"/>
440
+ <optional>
441
+ <attribute name="list-type"/>
442
+ </optional>
443
+ <optional>
444
+ <attribute name="prefix-word"/>
445
+ </optional>
446
+ <optional>
447
+ <attribute name="list-content"/>
448
+ </optional>
449
+ <optional>
450
+ <attribute name="continued-from">
451
+ <data type="IDREF"/>
452
+ </attribute>
453
+ </optional>
454
+ <optional>
455
+ <attribute name="specific-use"/>
456
+ </optional>
457
+ <optional>
458
+ <attribute name="xml:lang">
459
+ <data type="NMTOKEN"/>
460
+ </attribute>
461
+ </optional>
462
+ </define>
463
+ <!-- DEFAULT LIST CLASS ATTRIBUTES -->
464
+ <!--
465
+ Default attribute lists to be used for most
466
+ of the types of lists.
467
+ -->
468
+ <define name="list-atts">
469
+ <ref name="jats-common-atts"/>
470
+ <optional>
471
+ <attribute name="list-type"/>
472
+ </optional>
473
+ <optional>
474
+ <attribute name="prefix-word"/>
475
+ </optional>
476
+ <optional>
477
+ <attribute name="list-content"/>
478
+ </optional>
479
+ <optional>
480
+ <attribute name="continued-from">
481
+ <data type="IDREF"/>
482
+ </attribute>
483
+ </optional>
484
+ <optional>
485
+ <attribute name="specific-use"/>
486
+ </optional>
487
+ <optional>
488
+ <attribute name="xml:lang">
489
+ <data type="NMTOKEN"/>
490
+ </attribute>
491
+ </optional>
492
+ </define>
493
+ <!-- DEFAULT LIST ITEM ATTRIBUTES -->
494
+ <!-- Default attribute for list items -->
495
+ <define name="list-item-atts">
496
+ <ref name="jats-common-atts"/>
497
+ <optional>
498
+ <attribute name="specific-use"/>
499
+ </optional>
500
+ <optional>
501
+ <attribute name="xml:lang">
502
+ <data type="NMTOKEN"/>
503
+ </attribute>
504
+ </optional>
505
+ </define>
506
+ <!-- DEFINITION LIST: TERM ATTRIBUTES -->
507
+ <!-- Attributes for the <term> element -->
508
+ <define name="term-atts">
509
+ <ref name="jats-common-atts"/>
510
+ <optional>
511
+ <attribute name="rid">
512
+ <data type="IDREFS"/>
513
+ </attribute>
514
+ </optional>
515
+ <optional>
516
+ <attribute name="term-status"/>
517
+ </optional>
518
+ <optional>
519
+ <attribute name="term-type"/>
520
+ </optional>
521
+ <optional>
522
+ <attribute name="vocab"/>
523
+ </optional>
524
+ <optional>
525
+ <attribute name="vocab-identifier"/>
526
+ </optional>
527
+ <optional>
528
+ <attribute name="vocab-term"/>
529
+ </optional>
530
+ <optional>
531
+ <attribute name="vocab-term-identifier"/>
532
+ </optional>
533
+ <optional>
534
+ <attribute name="specific-use"/>
535
+ </optional>
536
+ <optional>
537
+ <attribute name="xml:lang">
538
+ <data type="NMTOKEN"/>
539
+ </attribute>
540
+ </optional>
541
+ </define>
542
+ <!-- DEFINITION LIST: TERM HEAD ATTRIBUTES -->
543
+ <!-- Attributes for the <term-head> element -->
544
+ <define name="term-head-atts">
545
+ <ref name="jats-common-atts"/>
546
+ </define>
547
+ <!-- ============================================================= -->
548
+ <!-- DEFINITION LIST -->
549
+ <!-- ============================================================= -->
550
+ <!-- DEFINITION LIST MODEL -->
551
+ <!-- Content model for the <def-list> element -->
552
+ <!-- DEFINITION LIST -->
553
+ <!--
554
+ Details at:
555
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=def-list
556
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=def-list
557
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=def-list
558
+ -->
559
+ <define name="def-list">
560
+ <element name="def-list">
561
+ <ref name="def-list-attlist"/>
562
+ <ref name="def-list-model"/>
563
+ </element>
564
+ </define>
565
+ <define name="def-list-attlist" combine="interleave">
566
+ <ref name="def-list-atts"/>
567
+ </define>
568
+ <!-- DEFINITION LIST HEAD ELEMENTS -->
569
+ <!--
570
+ Elements for use in the <def-list> heading
571
+ elements <term-head> and <def-head>.
572
+ Design Note: All inline mixes begin with an
573
+ OR bar, but since %simple-phrase; is an
574
+ inline mix, the OR bar is already there.
575
+ -->
576
+ <define name="def-list-head-elements">
577
+ <ref name="simple-phrase"/>
578
+ </define>
579
+ <!-- DEFINITION LIST TERM HEAD ELEMENTS -->
580
+ <!-- Elements for use in the <term-head> element -->
581
+ <define name="term-head-elements">
582
+ <ref name="def-list-head-elements"/>
583
+ </define>
584
+ <!-- DEFINITION LIST DEFINITION HEAD ELEMENTS -->
585
+ <!-- Elements for use in the <def-head> element -->
586
+ <define name="def-head-elements">
587
+ <ref name="def-list-head-elements"/>
588
+ </define>
589
+ <!-- DEFINITION LIST: TERM HEAD -->
590
+ <!--
591
+ Title over the first (term) column of a
592
+ two-part list
593
+ Details at:
594
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=term-head
595
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=term-head
596
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=term-head
597
+ -->
598
+ <define name="term-head">
599
+ <element name="term-head">
600
+ <ref name="term-head-attlist"/>
601
+ <zeroOrMore>
602
+ <choice>
603
+ <text/>
604
+ <ref name="term-head-elements"/>
605
+ </choice>
606
+ </zeroOrMore>
607
+ </element>
608
+ </define>
609
+ <define name="term-head-attlist" combine="interleave">
610
+ <ref name="term-head-atts"/>
611
+ </define>
612
+ <!-- DEFINITION LIST: DEFINITION HEAD -->
613
+ <!--
614
+ Title over the second (definition) column
615
+ of a two-part list
616
+ Details at:
617
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=def-head
618
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=def-head
619
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=def-head
620
+ -->
621
+ <define name="def-head">
622
+ <element name="def-head">
623
+ <ref name="def-head-attlist"/>
624
+ <zeroOrMore>
625
+ <choice>
626
+ <text/>
627
+ <ref name="def-head-elements"/>
628
+ </choice>
629
+ </zeroOrMore>
630
+ </element>
631
+ </define>
632
+ <define name="def-head-attlist" combine="interleave">
633
+ <ref name="def-head-atts"/>
634
+ </define>
635
+ <!-- DEFINITION LIST: DEFINITION ITEM MODEL -->
636
+ <!-- The content model of a <def-item> -->
637
+ <!-- DEFINITION LIST: DEFINITION ITEM -->
638
+ <!--
639
+ A term and definition pair inside a
640
+ definition or two-part list
641
+ of a two-part list
642
+ Details at:
643
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=def-item
644
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=def-item
645
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=def-item
646
+ -->
647
+ <define name="def-item">
648
+ <element name="def-item">
649
+ <ref name="def-item-attlist"/>
650
+ <ref name="def-item-model"/>
651
+ </element>
652
+ </define>
653
+ <define name="def-item-attlist" combine="interleave">
654
+ <ref name="def-item-atts"/>
655
+ </define>
656
+ <!-- ELEM def Defined in %common.ent; -->
657
+ <!-- DEFINITION LIST: TERM ELEMENTS -->
658
+ <!--
659
+ The elements that can be included along with
660
+ data characters inside the content model of
661
+ a <term>.
662
+ Design Note: All inline mixes begin with an
663
+ OR bar, but since %simple-phrase; is an
664
+ inline mix, the OR bar is already there.
665
+ -->
666
+ <!-- DEFINITION LIST: TERM -->
667
+ <!--
668
+ The word, phrase, picture, or other noun
669
+ being defined or description that occupies
670
+ the first column of a definition or 2-part
671
+ list and is the subject of the definition or
672
+ description.
673
+ Details at:
674
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=term
675
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=term
676
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=term
677
+ -->
678
+ <define name="term">
679
+ <element name="term">
680
+ <ref name="term-attlist"/>
681
+ <zeroOrMore>
682
+ <choice>
683
+ <text/>
684
+ <ref name="term-elements"/>
685
+ </choice>
686
+ </zeroOrMore>
687
+ </element>
688
+ </define>
689
+ <define name="term-attlist" combine="interleave">
690
+ <ref name="term-atts"/>
691
+ </define>
692
+ <!-- ============================================================= -->
693
+ <!-- LIST ELEMENTS (PARAGRAPH-LEVEL ELEMENTS) -->
694
+ <!-- ============================================================= -->
695
+ <!-- LIST MODEL -->
696
+ <!-- Content model for the <list> element -->
697
+ <!-- LIST -->
698
+ <!--
699
+ Details at:
700
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=list
701
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=list
702
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=list
703
+ -->
704
+ <define name="list">
705
+ <element name="list">
706
+ <ref name="list-attlist"/>
707
+ <ref name="list-model"/>
708
+ </element>
709
+ </define>
710
+ <define name="list-attlist" combine="interleave">
711
+ <ref name="list-atts"/>
712
+ </define>
713
+ <!-- LIST ITEM ELEMENTS -->
714
+ <!-- The content model of a <list-item>. -->
715
+ <define name="list-item-model">
716
+ <optional>
717
+ <ref name="label"/>
718
+ </optional>
719
+ <optional>
720
+ <ref name="title"/>
721
+ </optional>
722
+ <oneOrMore>
723
+ <choice>
724
+ <ref name="just-para.class"/>
725
+ <ref name="list.class"/>
726
+ </choice>
727
+ </oneOrMore>
728
+ </define>
729
+ <!-- LIST ITEM -->
730
+ <!--
731
+ One item in a list
732
+ Details at:
733
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=list-item
734
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=list-item
735
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=list-item
736
+ -->
737
+ <define name="list-item">
738
+ <element name="list-item">
739
+ <ref name="list-item-attlist"/>
740
+ <ref name="list-item-model"/>
741
+ </element>
742
+ </define>
743
+ <define name="list-item-attlist" combine="interleave">
744
+ <ref name="list-item-atts"/>
745
+ </define>
746
+ </grammar>
747
+ <!-- ================== End List Class Module ==================== -->