@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,522 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: NLM Citation -->
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) NLM Citation v1.3 20210610//EN"
13
+ Delivered as file "JATS-nlmcitation1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Deprecated 2012 -->
20
+ <!-- This DTD Suite module adds the model for the -->
21
+ <!-- NLM Structured bibliographic citation. This model -->
22
+ <!-- The model loosely reflects NLM's style, in that -->
23
+ <!-- the model allows the tagging of all "legal" NLM -->
24
+ <!-- citations and enforces the sequence in which -->
25
+ <!-- content must appear if it is present. However, -->
26
+ <!-- this model does not provide guidance on what -->
27
+ <!-- information is required for each type of cited -->
28
+ <!-- content. -->
29
+ <!---->
30
+ <!-- TAG SET SPONSOR -->
31
+ <!-- National Center for Biotechnology -->
32
+ <!-- Information (NCBI) -->
33
+ <!-- National Library of Medicine (NLM) -->
34
+ <!---->
35
+ <!-- CREATED FOR: -->
36
+ <!-- This module was created for the JATS DTD Suite. -->
37
+ <!-- Digital archives and publishers may use the -->
38
+ <!-- DTD as is for markup of journal literature or -->
39
+ <!-- related material for archiving and transferring -->
40
+ <!-- such material between archives or create a -->
41
+ <!-- custom XML DTD from the Suite for -->
42
+ <!-- these purposes. -->
43
+ <!---->
44
+ <!-- This DTD is in the public domain. An organization -->
45
+ <!-- that wishes to create its own DTD from the suite -->
46
+ <!-- may do so without permission from NLM. -->
47
+ <!---->
48
+ <!-- The suite has been set up to be extended using a -->
49
+ <!-- new DTD file and a new DTD-specific customization -->
50
+ <!-- module to redefine the many Parameter Entities. -->
51
+ <!-- Do not modify the suite directly or redistribute -->
52
+ <!-- modified versions of the suite. -->
53
+ <!---->
54
+ <!-- In the interest of maintaining consistency and -->
55
+ <!-- clarity for potential users, NLM requests: -->
56
+ <!---->
57
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
58
+ <!-- and intend to stay compatible with the suite, -->
59
+ <!-- then please include the following statement -->
60
+ <!-- as a comment in all of your DTD modules: -->
61
+ <!-- "Created from, and fully compatible with, -->
62
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
63
+ <!-- Suite (JATS)." -->
64
+ <!---->
65
+ <!-- 2. If you alter one or more modules of the suite, -->
66
+ <!-- then please rename your version and all its -->
67
+ <!-- modules to avoid any confusion with the -->
68
+ <!-- original suite. Also, please include the -->
69
+ <!-- following statement as a comment in all your -->
70
+ <!-- DTD modules: -->
71
+ <!-- "Based in part on, but not fully compatible -->
72
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
73
+ <!-- Tag Suite (JATS)." -->
74
+ <!---->
75
+ <!-- ORIGINAL CREATION DATE: -->
76
+ <!-- September 2004 -->
77
+ <!---->
78
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
79
+ <!-- Working Group. Mulberry Technologies was -->
80
+ <!-- supported by National Center for Biotechnology -->
81
+ <!-- Information (NCBI), a center of the US National -->
82
+ <!-- Library of Medicine (NLM). -->
83
+ <!---->
84
+ <!-- The Journal Publishing DTD is built from the -->
85
+ <!-- Archiving and Interchange DTD Suite. -->
86
+ <!---->
87
+ <!-- Suggestions for refinements and enhancements to -->
88
+ <!-- this DTD should be sent in email to: -->
89
+ <!-- jats@ncbi.nlm.nih.gov -->
90
+ <!-- ============================================================= -->
91
+ <!-- ============================================================= -->
92
+ <!-- DTD VERSION/CHANGE HISTORY -->
93
+ <!-- ============================================================= -->
94
+ <!--
95
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
96
+ ==============================================================
97
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
98
+ (DAL/BTU) v1.3 (2021-06-10)
99
+
100
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
101
+ which requires voting by both the NISO and ANSI memberships
102
+ to be changed. This version of the NISO JATS was approved
103
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
104
+ Drafts as well as the draft version JATS 1.3 2021 (the version
105
+ submitted for vote), becoming NISO JATS v1.3 20210610
106
+ (ANSI/NISO Z39.96-2019).
107
+
108
+ The file names and formal public identifiers have been
109
+ changed in the modules and the catalogs.
110
+
111
+ 17. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
112
+ (final ANSI vote date)
113
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
114
+
115
+ ==============================================================
116
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
117
+ (DAL/BTU) v1.3d2 (2020-11-30)
118
+
119
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
120
+ which requires voting by the NISO and ANSI memberships
121
+ to be changed.
122
+
123
+ This draft DTD represents an interim version of the
124
+ non-normative JATS DTD Suite, as an indication to JATS users
125
+ of the decisions that have been made by the JATS Standing
126
+ Committee. This draft has not yet been given public review
127
+ or voting; it is for Standing Committee review and
128
+ testing. The formal public identifiers have been changed
129
+ in the modules and the catalogs.
130
+
131
+ 16. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
132
+ committee draft following the final ANSI/NISO 1.2 vote)
133
+
134
+ ==============================================================
135
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
136
+ (DAL/BTU) v1.3.d1 (2019-08-31)
137
+
138
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
139
+ which requires voting by the NISO and ANSI memberships
140
+ to be changed.
141
+
142
+ This draft DTD represents an interim version of the
143
+ non-normative JATS DTD Suite, as an indication to JATS users
144
+ of the decisions that have been made by the JATS Standing
145
+ Committee. This draft has not yet been given public review
146
+ or voting. The formal public identifiers were changed in the
147
+ modules and the catalogs.
148
+
149
+ 15. JATS "1.2" becomes "v1.3d1 20190831" (first committee
150
+ draft following the final ANSI/NISO vote)
151
+
152
+ ==============================================================
153
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
154
+ (DAL/BTU) v1.2 (2019-02-08)
155
+
156
+ NISO JATS is a continuing maintenance NISO Standard, which
157
+ requires voting by the both the NISO and ANSI membership
158
+ to be changed. This version of the NISO JATS was approved
159
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
160
+ Drafts as well as the draft version JATS 1.2 2018 (the version
161
+ submitted for vote), becoming NISO JATS v1.2 20190208
162
+ (ANSI/NISO Z39.96-2021).
163
+
164
+ 14. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
165
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
166
+
167
+ ==============================================================
168
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
169
+
170
+ (DAL/BTU) v1.2 (2018-11-30)
171
+
172
+ NISO JATS is a continuing maintenance NISO Standard, which
173
+ requires voting by the both the NISO and ANSI membership
174
+ to be changed. This version of the NISO JATS was approved
175
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
176
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
177
+
178
+ 13.
179
+ JATS "1.2d2" and "v1.2d2 20180401" became
180
+ JATS "1.2" and "v1.2 20181130"
181
+
182
+ =============================================================
183
+
184
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
185
+
186
+ JATS is a continuing maintenance NISO Standard, which
187
+ requires voting by the ANSI and NISO memberships to be changed.
188
+ BITS is under continuous maintenance, and is modified at the
189
+ discretion of the working group.
190
+
191
+ This draft DTD represents an interim version of the
192
+ non-normative JATS DTD Suite, as an indication to JATS users
193
+ the decisions that have been made by the JATS Standing
194
+ Committee. This draft has not yet been given public review
195
+ or voting. The formal public identifiers were changed in the
196
+ modules and the catalogs.
197
+
198
+ 12. BITS "2.0" and "v2.0 20151225" remain unchanged
199
+
200
+
201
+ JATS "1.2d1" and "v1.2d1 20171231" became
202
+ JATS "1.2d2" and "v1.2d2 20180401".
203
+
204
+ No module names were changed.
205
+
206
+ =============================================================
207
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
208
+ (DAL/BTU) v1.2d1 (2017-12-31)
209
+
210
+ NISO JATS is a continuing maintenance NISO Standard, which
211
+ requires voting by the ANSI and NISO memberships to be changed.
212
+
213
+ This draft DTD represents an interim version of the
214
+ non-normative JATS DTD Suite, as an indication to JATS users
215
+ the decisions that have been made by the JATS Standing
216
+ Committee. This draft has not yet been given public review
217
+ or voting. The formal public identifiers were changed in the
218
+ modules and the catalogs.
219
+
220
+ 11. JATS "1.2d1" and "v1.2d1 20170631" became
221
+ JATS "1.2d1" and "v1.2d1 20171231".
222
+
223
+ =============================================================
224
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
225
+
226
+ NISO JATS is a continuing maintenance NISO Standard, which
227
+ requires voting by the ANSI and NISO memberships to be changed.
228
+
229
+ This draft DTD represents an interim version of the
230
+ non-normative JATS DTD Suite, as an indication to JATS users
231
+ the decisions that have been made by the JATS Standing
232
+ Committee. This draft has not yet been given public review
233
+ or voting. The formal public identifiers were changed in the
234
+ modules and the catalogs.
235
+
236
+ 10. JATS became version "1.2d1" and "v1.2d1 20170631"
237
+
238
+ =============================================================
239
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
240
+
241
+ JATS is a continuing maintenance NISO Standard, which
242
+ requires voting by the ANSI and NISO memberships to be changed.
243
+ JATS 1.1 was approved in late 2015, so the formal public
244
+ identifiers were changed in the modules and the catalogs.
245
+ No model or attribute changes were made at this time.
246
+
247
+ 9. JATS became version "1.1" and "v1.1 20151215"
248
+ BITS remained version "2.0" but becomes "v2.0 20151225"
249
+
250
+ =============================================================
251
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
252
+
253
+ The changes in this release are in response to NISO
254
+ License and Indicators Recommended Practice.
255
+
256
+ NISO JATS is a continuing maintenance NISO Standard, which
257
+ requires voting by the NISO membership to be changed. This
258
+ Committee Draft 1.1d3 will be sent to the NISO voting
259
+ membership, to become (if approved) NISO JATS 1.1.
260
+
261
+ This draft DTD represents an interim version of the
262
+ non-normative JATS DTD Suite, as an indication to JATS users
263
+ the decisions that have been made by the JATS Standing
264
+ Committee.
265
+
266
+ 8. JATS became version "1.1d3" and "v1.1d3 20150301"
267
+
268
+ =============================================================
269
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
270
+
271
+ NISO JATS is a continuing maintenance NISO Standard, which
272
+ requires voting by the NISO membership to be changed. This
273
+ Committee Draft 1.1d2 will be sent to the NISO voting
274
+ membership, to become (if approved) NISO JATS 1.1.
275
+
276
+ This catalog represents an interim version of the
277
+ non-normative JATS DTD Suite, as an indication to JATS users
278
+ the decisions that have been made by the JATS Standing
279
+ Committee.
280
+
281
+ 7. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
282
+
283
+
284
+ =============================================================
285
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
286
+
287
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
288
+
289
+ NISO JATS Standing Committee met and answered the requests and
290
+ suggestions from the NISO request forms.
291
+
292
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
293
+ XSDs, RNGs and supporting documentation are available at
294
+ http://jats.nlm.nih.gov/1.3d2/
295
+
296
+ 6. GLOBAL ATTRIBUTES - Added the new parameter entity
297
+ %jats-common-atts;
298
+ to every element in this module. This PE adds (for now) the
299
+ @id attribute and the @xml:base attribute to every element,
300
+ whether metadata or narrative.
301
+ Since the @id in this parameter entity is optional, a second
302
+ parameter entity jats-common-atts-id-required was also added.
303
+ The two are kept in sync with the jats-base-atts parameter
304
+ entity.
305
+
306
+ =============================================================
307
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
308
+
309
+ ANSI/NISO Z39.96-2012 (Version 1.0)
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
+ 5. Updated the DTD-version attribute to "1.0" and the formal
316
+ public identifier to the date: "v1.0 20120330//EN".
317
+
318
+ =============================================================
319
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
320
+
321
+ This Tag Set is in the process of becoming a NISO standard.
322
+ The version numbers are starting over from 0.4", as a Trial
323
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
324
+ becomes a NISO standard. Thus, the version number that would
325
+ have been "NLM Version 3.1 Draft" has become NISO JATS
326
+ "Version 0.4".
327
+
328
+ Details on NISO Trial Use Draft Version 0.4 are available at
329
+ http://jats.nlm.nih.gov/JATS-0.4.
330
+
331
+ 4. Updated the DTD-version attribute to "0.4"
332
+
333
+ 3. Updated the public identifier to "v0.4 20110131",
334
+ modified the formal public identifier to include "JATS (Z39.96)",
335
+ and the filename as delivered to include "JATS" and the
336
+ new version number "0".
337
+
338
+ 2. NLM CITATION ATTRIBUTES - Removed the dependency whereby
339
+ the NLM citation used the same attributes as the other types
340
+ of citation via %citation-atts;. <nlm-citation> now uses
341
+ only %nlm-citation-atts; No documents need change.
342
+ - added @xml:lang
343
+ - added @specific-use
344
+
345
+ =============================================================
346
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
347
+
348
+ Version 3.0 is the first non-backward-compatible release.
349
+ In addition to the usual incremental changes, some
350
+ elements and attributes have been renamed and/or remodeled
351
+ to better meet user needs and to increase tag set consistency.
352
+ All module change histories are available through the Tag Suite
353
+ web site at http://dtd.nlm.nih.gov.
354
+
355
+ Details on version 3.0 are available at
356
+ http://dtd.nlm.nih.gov/3.0.
357
+
358
+ 1. Updated public identifier to "v3.0 20071031//EN"
359
+ -->
360
+ <!-- ============================================================= -->
361
+ <!--
362
+ Details concerning
363
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
364
+ RNGs and supporting documentation are available at
365
+ http://jats.nlm.nih.gov/1.1/
366
+ -->
367
+ <!-- ============================================================= -->
368
+ <!-- NEW ELEMENT DECLARATIONS -->
369
+ <!-- Declarations of elements that are new to -->
370
+ <!-- this DTD. -->
371
+ <!-- NOTE: All new structures must be mappable -->
372
+ <!-- to the archiving/interchange DTD and the -->
373
+ <!-- mapping should be described when the new -->
374
+ <!-- element is declared. -->
375
+ <!-- ============================================================= -->
376
+ <!-- NLM CITATION ATTRIBUTES -->
377
+ <!--
378
+ Attributes for all three types of
379
+ citations (<mixed-citation>,
380
+ <element-citation>, and <nlm-citation>).
381
+ -->
382
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
383
+ <define name="nlm-citation-atts">
384
+ <ref name="jats-common-atts"/>
385
+ <optional>
386
+ <attribute name="publication-type"/>
387
+ </optional>
388
+ <optional>
389
+ <attribute name="publisher-type"/>
390
+ </optional>
391
+ <optional>
392
+ <attribute name="publication-format"/>
393
+ </optional>
394
+ <optional>
395
+ <attribute name="specific-use"/>
396
+ </optional>
397
+ <optional>
398
+ <attribute name="xml:lang">
399
+ <data type="NMTOKEN"/>
400
+ </attribute>
401
+ </optional>
402
+ <ref name="might-link-atts"/>
403
+ </define>
404
+ <!-- NLM CITATION MODEL -->
405
+ <!--
406
+ This structured citation model is loosely
407
+ reflects the NLM's house style, in that
408
+ it allows the tagging of all "legal" NLM
409
+ citations and enforces the sequence in which
410
+ content must appear if it is present.
411
+ This model assumes that punctuation between
412
+ the parts of a citation will be generated
413
+ on display or on export.
414
+ (Deprecated after Version 3.0)
415
+ Details at:
416
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=nlm-citation
417
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=nlm-citation
418
+ http://jats.nlm.nih.gov/articleauthoring/tag-library/1.3/index.html?elem=nlm-citation
419
+ -->
420
+ <define name="nlm-citation">
421
+ <element name="nlm-citation">
422
+ <ref name="nlm-citation-attlist"/>
423
+ <zeroOrMore>
424
+ <choice>
425
+ <ref name="person-group"/>
426
+ <ref name="collab"/>
427
+ </choice>
428
+ </zeroOrMore>
429
+ <zeroOrMore>
430
+ <choice>
431
+ <ref name="article-title"/>
432
+ <ref name="trans-title"/>
433
+ </choice>
434
+ </zeroOrMore>
435
+ <optional>
436
+ <ref name="source"/>
437
+ </optional>
438
+ <optional>
439
+ <ref name="patent"/>
440
+ </optional>
441
+ <optional>
442
+ <ref name="trans-source"/>
443
+ </optional>
444
+ <optional>
445
+ <ref name="year"/>
446
+ </optional>
447
+ <choice>
448
+ <group>
449
+ <optional>
450
+ <ref name="month"/>
451
+ </optional>
452
+ <optional>
453
+ <ref name="day"/>
454
+ </optional>
455
+ <optional>
456
+ <ref name="time-stamp"/>
457
+ </optional>
458
+ </group>
459
+ <optional>
460
+ <ref name="season"/>
461
+ </optional>
462
+ </choice>
463
+ <optional>
464
+ <ref name="access-date"/>
465
+ </optional>
466
+ <optional>
467
+ <ref name="volume"/>
468
+ </optional>
469
+ <optional>
470
+ <ref name="edition"/>
471
+ </optional>
472
+ <optional>
473
+ <ref name="conf-name"/>
474
+ </optional>
475
+ <optional>
476
+ <ref name="conf-date"/>
477
+ </optional>
478
+ <optional>
479
+ <ref name="conf-loc"/>
480
+ </optional>
481
+ <zeroOrMore>
482
+ <choice>
483
+ <ref name="issue"/>
484
+ <ref name="supplement"/>
485
+ </choice>
486
+ </zeroOrMore>
487
+ <optional>
488
+ <ref name="publisher-loc"/>
489
+ </optional>
490
+ <optional>
491
+ <ref name="publisher-name"/>
492
+ </optional>
493
+ <zeroOrMore>
494
+ <optional>
495
+ <ref name="fpage"/>
496
+ </optional>
497
+ <optional>
498
+ <ref name="lpage"/>
499
+ </optional>
500
+ </zeroOrMore>
501
+ <optional>
502
+ <ref name="page-count"/>
503
+ </optional>
504
+ <optional>
505
+ <ref name="series"/>
506
+ </optional>
507
+ <zeroOrMore>
508
+ <ref name="comment"/>
509
+ </zeroOrMore>
510
+ <zeroOrMore>
511
+ <ref name="pub-id"/>
512
+ </zeroOrMore>
513
+ <optional>
514
+ <ref name="annotation"/>
515
+ </optional>
516
+ </element>
517
+ </define>
518
+ <define name="nlm-citation-attlist" combine="interleave">
519
+ <ref name="nlm-citation-atts"/>
520
+ </define>
521
+ </grammar>
522
+ <!-- ================== End NLM Citation Module ================== -->