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