@teipublisher/oddity-language-server 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -2
  3. package/dist/edit.js +1211 -0
  4. package/dist/edit.js.map +7 -0
  5. package/dist/index.js +1701 -0
  6. package/dist/index.js.map +7 -0
  7. package/dist/node.cjs +45925 -0
  8. package/dist/node.cjs.map +7 -0
  9. package/package.json +74 -4
  10. package/schema/README.md +45 -0
  11. package/schema/docbook/docbook.rng +18457 -0
  12. package/schema/jats/BITS-embedded-index2.ent.rng +340 -0
  13. package/schema/jats/BITS-question-answer2.ent.rng +795 -0
  14. package/schema/jats/JATS-XHTMLtablesetup1-3.ent.rng +614 -0
  15. package/schema/jats/JATS-ali-namespace1-3.ent.rng +284 -0
  16. package/schema/jats/JATS-archivearticle1-3-mathml3.rng +1277 -0
  17. package/schema/jats/JATS-archivecustom-classes1-3.ent.rng +427 -0
  18. package/schema/jats/JATS-archivecustom-mixes1-3.ent.rng +630 -0
  19. package/schema/jats/JATS-archivecustom-models1-3.ent.rng +2205 -0
  20. package/schema/jats/JATS-articlemeta1-3.ent.rng +3138 -0
  21. package/schema/jats/JATS-backmatter1-3.ent.rng +601 -0
  22. package/schema/jats/JATS-chars1-3.ent.rng +715 -0
  23. package/schema/jats/JATS-common-atts1-3.ent.rng +367 -0
  24. package/schema/jats/JATS-common1-3.ent.rng +6007 -0
  25. package/schema/jats/JATS-default-classes1-3.ent.rng +1953 -0
  26. package/schema/jats/JATS-default-mixes1-3.ent.rng +583 -0
  27. package/schema/jats/JATS-display1-3.ent.rng +1669 -0
  28. package/schema/jats/JATS-format1-3.ent.rng +1256 -0
  29. package/schema/jats/JATS-funding1-3.ent.rng +1389 -0
  30. package/schema/jats/JATS-journalmeta1-3.ent.rng +691 -0
  31. package/schema/jats/JATS-link1-3.ent.rng +664 -0
  32. package/schema/jats/JATS-list1-3.ent.rng +747 -0
  33. package/schema/jats/JATS-math1-3.ent.rng +620 -0
  34. package/schema/jats/JATS-mathml3-mathmlsetup1-3.ent.rng +459 -0
  35. package/schema/jats/JATS-nlmcitation1-3.ent.rng +522 -0
  36. package/schema/jats/JATS-para1-3.ent.rng +780 -0
  37. package/schema/jats/JATS-phrase1-3.ent.rng +725 -0
  38. package/schema/jats/JATS-references1-3.ent.rng +1713 -0
  39. package/schema/jats/JATS-related-object1-3.ent.rng +453 -0
  40. package/schema/jats/JATS-section1-3.ent.rng +482 -0
  41. package/schema/jats/mathml3-qname1.mod.rng +61 -0
  42. package/schema/jats/mathml3.rng +4094 -0
  43. package/schema/jats/xhtml-inlstyle-1.mod.rng +37 -0
  44. package/schema/jats/xhtml-table-1.mod.rng +426 -0
  45. package/schema/odd/teipublisher_odds.rng +12769 -0
  46. package/schema/opm/opm.schema.json +402 -0
  47. package/schema/tei/tei_all.rng +23212 -0
  48. package/src/core/association.ts +155 -0
  49. package/src/core/complete.ts +147 -0
  50. package/src/core/elements.ts +86 -0
  51. package/src/core/opmToml.ts +432 -0
  52. package/src/core/outline.ts +156 -0
  53. package/src/core/schema.ts +55 -0
  54. package/src/core/tags.ts +104 -0
  55. package/src/core/toml.ts +64 -0
  56. package/src/core/tomlScan.ts +155 -0
  57. package/src/core/validate.ts +128 -0
  58. package/src/core/wellformed.ts +16 -0
  59. package/src/edit.ts +12 -0
  60. package/src/index.ts +17 -0
  61. package/src/node.ts +39 -0
  62. package/src/server/server.ts +322 -0
@@ -0,0 +1,691 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Journal Metadata 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 Journal Metadata Elements v1.3 20210610//EN"
13
+ Delivered as file "JATS-journalmeta1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Names all elements used to describe the journal -->
20
+ <!-- in which the journal article is published. -->
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
+ 21. 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
+ 20. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
136
+ committee draft following the final ANSI/NISO 1.2 vote)
137
+
138
+ ==============================================================
139
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
140
+ (DAL/BTU) v1.3.d1 (2019-08-31)
141
+
142
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
143
+ which requires voting by the NISO and ANSI memberships
144
+ to be changed.
145
+
146
+ This draft DTD represents an interim version of the
147
+ non-normative JATS DTD Suite, as an indication to JATS users
148
+ of the decisions that have been made by the JATS Standing
149
+ Committee. This draft has not yet been given public review
150
+ or voting. The formal public identifiers were changed in the
151
+ modules and the catalogs.
152
+
153
+ 19. JATS "1.2" becomes "v1.3d1 20190831" (first committee
154
+ draft following the final ANSI/NISO vote)
155
+
156
+ ==============================================================
157
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
158
+ (DAL/BTU) v1.2 (2019-02-08)
159
+
160
+ NISO JATS is a continuing maintenance NISO Standard, which
161
+ requires voting by the both the NISO and ANSI membership
162
+ to be changed. This version of the NISO JATS was approved
163
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
164
+ Drafts as well as the draft version JATS 1.2 2018 (the version
165
+ submitted for vote), becoming NISO JATS v1.2 20190208
166
+ (ANSI/NISO Z39.96-2021).
167
+
168
+ 18. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
169
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
170
+
171
+ ==============================================================
172
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
173
+ (DAL/BTU) v1.2 (2018-11-30)
174
+
175
+ NISO JATS is a continuing maintenance NISO Standard, which
176
+ requires voting by the both the NISO and ANSI membership
177
+ to be changed. This version of the NISO JATS was approved
178
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
179
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
180
+
181
+ 17. JATS "1.2d2" and "v1.2d2 20180401" became
182
+ JATS "1.2" and "v1.2 20181130"
183
+
184
+ =============================================================
185
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
186
+
187
+ JATS is a continuing maintenance NISO Standard, which
188
+ requires voting by the ANSI and NISO memberships to be changed.
189
+ BITS is under continuous maintenance, and is modified at the
190
+ discretion of the working group.
191
+
192
+ This draft DTD represents an interim version of the
193
+ non-normative JATS DTD Suite, as an indication to JATS users
194
+ the decisions that have been made by the JATS Standing
195
+ Committee. This draft has not yet been given public review
196
+ or voting. The formal public identifiers were changed in the
197
+ modules and the catalogs.
198
+
199
+ 16. BITS "2.0" and "v2.0 20151225" remain unchanged
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
+ 15. 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
+ 14. 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
+ 13. 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
+ 12. 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
+ 11. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
282
+
283
+ =============================================================
284
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
285
+
286
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
287
+
288
+ NISO JATS Standing Committee met and answered the requests and
289
+ suggestions from the NISO request forms.
290
+
291
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
292
+ XSDs, RNGs and supporting documentation are available at
293
+ http://jats.nlm.nih.gov/1.3d2/
294
+
295
+ 10. GLOBAL ATTRIBUTES - Added the new parameter entity
296
+ %jats-common-atts;
297
+ to every element in this module. This PE adds (for now) the
298
+ @id attribute and the @xml:base attribute to every element,
299
+ whether metadata or narrative.
300
+ Since the @id in this parameter entity is optional, a second
301
+ parameter entity jats-common-atts-id-required was also added.
302
+ The two are kept in sync with the jats-base-atts parameter
303
+ entity.
304
+ This added a new attribute list to:
305
+ - journal-meta
306
+
307
+ =============================================================
308
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
309
+
310
+ ANSI/NISO Z39.96-2012 (Version 1.0)
311
+
312
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
313
+ XSDs, RNGs and supporting documentation are available at
314
+ http://jats.nlm.nih.gov/1.3d2/
315
+
316
+ 9. JOURNAL METADATA MODEL
317
+ - Added <issn-l> as an optional element to <journal-meta>
318
+ - Added contributors and affiliations to journal metadata through
319
+ contrib-group.class (which resolves to <contrib-group>) and
320
+ aff-alternatives.class (which resolves to <aff> or
321
+ <aff-alternatives>), using the journal-meta-model.
322
+
323
+ =============================================================
324
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
325
+
326
+ This Tag Set is in the process of becoming a NISO standard.
327
+ The version numbers are starting over from 0.4", as a Trial
328
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
329
+ becomes a NISO standard. Thus, the version number that would
330
+ have been "NLM Version 3.1 Draft" has become NISO JATS
331
+ "Version 0.4".
332
+
333
+ Details on NISO Trial Use Draft Version 0.4 are available at
334
+ http://jats.nlm.nih.gov/JATS-0.4.
335
+
336
+ 8. Updated the DTD-version attribute to "0.4"
337
+
338
+ 7. Updated the public identifier to "v0.4 20110131",
339
+ modified the formal public identifier to include "JATS (Z39.96)",
340
+ and the filename as delivered to include "JATS" and the
341
+ new version number "0".
342
+
343
+ 6. I18N - Changed the default for @xml:lang from "en" to
344
+ #IMPLIED, so that the @xml:lang would inherit properly and
345
+ not need to be over-ridden in
346
+ - <abbrev-journal-title> through %abbrev-journal-title-atts;
347
+ - <journal-title> through %journal-title-atts;
348
+ - <journal-subtitle> through %journal-subtitle-atts;
349
+
350
+ 5. JOURNAL METADATA- Added <notes> to repeat within <journal-meta>
351
+ (through %journal-meta-model; and added @xml:lang and
352
+ @specific-use to the attributes of <notes> through %notes-atts;
353
+
354
+ 4. @SPECIFIC-USE and @XML:LANG - Added the @specific-use and
355
+ @xml:lang to the following elements:
356
+ - abbrev-journal-title through abbrev-journal-title-atts
357
+ (@specific-use-only; @xml:lang already)
358
+ - journal-title through journal-title-atts
359
+ (@specific-use-only;
360
+ - journal-subtitle through journal-subtitle-atts
361
+ (@specific-use-only)
362
+
363
+ 3. JOURNAL TITLE ELEMENTS - Removed the dependency which had both
364
+ <journal-title> and <journal-subtitle> modeled with the same
365
+ parameter entity %journal-title-elements;. Created new PE for
366
+ %journal-subtitle-elements; but set it (as the default) to
367
+ %journal-title-elements; so that no customization would break.
368
+
369
+ 2. SELF URI - Added <self-uri> to <journal-meta> (directly
370
+ following <notes>) so that an XML document can point to the
371
+ journal home page.
372
+
373
+ =============================================================
374
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
375
+
376
+ Version 3.0 is the first non-backward-compatible release.
377
+ In addition to the usual incremental changes, some
378
+ elements and attributes have been renamed and/or remodeled
379
+ to better meet user needs and to increase tag set consistency.
380
+ All module change histories are available through the Tag Suite
381
+ web site at http://dtd.nlm.nih.gov.
382
+
383
+ Details on version 3.0 are available at
384
+ http://dtd.nlm.nih.gov/3.0.
385
+
386
+ 2. Changed default @xml:lang from "EN" from "en" to match latest
387
+ RFC 4646/W3C/IANA Subtag Registry recommendations
388
+
389
+ 1. Updated public identifier to "v3.0 20071031//EN"
390
+ -->
391
+ <!-- ============================================================= -->
392
+ <!--
393
+ Details concerning
394
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
395
+ RNGs and supporting documentation are available at
396
+ http://jats.nlm.nih.gov/1.1/
397
+ -->
398
+ <!-- ============================================================= -->
399
+ <!-- DEFAULTS FOR ATTRIBUTE LISTS -->
400
+ <!-- ============================================================= -->
401
+ <!-- ABBREVIATED JOURNAL TITLE ATTRIBUTES -->
402
+ <!--
403
+ Attribute list for Abbreviated Journal Title
404
+ <abbrev-journal-title> element
405
+ -->
406
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
407
+ <define name="abbrev-journal-title-atts">
408
+ <ref name="jats-common-atts"/>
409
+ <optional>
410
+ <attribute name="abbrev-type"/>
411
+ </optional>
412
+ <optional>
413
+ <attribute name="specific-use"/>
414
+ </optional>
415
+ <optional>
416
+ <attribute name="xml:lang">
417
+ <data type="NMTOKEN"/>
418
+ </attribute>
419
+ </optional>
420
+ </define>
421
+ <!-- JOURNAL METADATA ATTRIBUTES -->
422
+ <!--
423
+ Attributes for the <journal-meta>
424
+ element
425
+ -->
426
+ <define name="journal-meta-atts">
427
+ <ref name="jats-common-atts"/>
428
+ </define>
429
+ <!-- JOURNAL TITLE ATTRIBUTES -->
430
+ <!--
431
+ Attributes for the <journal-title>
432
+ element
433
+ -->
434
+ <define name="journal-title-atts">
435
+ <ref name="jats-common-atts"/>
436
+ <optional>
437
+ <attribute name="content-type"/>
438
+ </optional>
439
+ <optional>
440
+ <attribute name="specific-use"/>
441
+ </optional>
442
+ <optional>
443
+ <attribute name="xml:lang">
444
+ <data type="NMTOKEN"/>
445
+ </attribute>
446
+ </optional>
447
+ </define>
448
+ <!-- JOURNAL TITLE GROUP ATTRIBUTES -->
449
+ <!--
450
+ Attributes for the <journal-title-group>
451
+ element
452
+ -->
453
+ <define name="journal-title-group-atts">
454
+ <ref name="jats-common-atts"/>
455
+ <optional>
456
+ <attribute name="content-type"/>
457
+ </optional>
458
+ </define>
459
+ <!-- JOURNAL SUBTITLE GROUP ATTRIBUTES -->
460
+ <!--
461
+ Attributes for the <journal-subtitle>
462
+ element
463
+ -->
464
+ <define name="journal-subtitle-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
+ <!-- ============================================================= -->
479
+ <!-- JOURNAL METADATA -->
480
+ <!-- ============================================================= -->
481
+ <!-- JOURNAL METADATA MODEL -->
482
+ <!--
483
+ Content model for the journal metadata
484
+ element <journal-meta>
485
+ -->
486
+ <define name="journal-meta-model">
487
+ <zeroOrMore>
488
+ <ref name="journal-id"/>
489
+ </zeroOrMore>
490
+ <zeroOrMore>
491
+ <ref name="journal-title-group"/>
492
+ </zeroOrMore>
493
+ <zeroOrMore>
494
+ <choice>
495
+ <ref name="contrib-group.class"/>
496
+ <ref name="aff-alternatives.class"/>
497
+ </choice>
498
+ </zeroOrMore>
499
+ <zeroOrMore>
500
+ <ref name="issn"/>
501
+ </zeroOrMore>
502
+ <optional>
503
+ <ref name="issn-l"/>
504
+ </optional>
505
+ <zeroOrMore>
506
+ <ref name="isbn"/>
507
+ </zeroOrMore>
508
+ <optional>
509
+ <ref name="publisher"/>
510
+ </optional>
511
+ <zeroOrMore>
512
+ <ref name="notes"/>
513
+ </zeroOrMore>
514
+ <zeroOrMore>
515
+ <ref name="self-uri"/>
516
+ </zeroOrMore>
517
+ <optional>
518
+ <ref name="custom-meta-group"/>
519
+ </optional>
520
+ </define>
521
+ <!-- ELEM journal-id Defined in %common.ent; -->
522
+ <!-- ELEM issn Defined in %common.ent; -->
523
+ <!-- ELEM issn-l Defined in %common.ent; -->
524
+ <!-- ELEM publisher Defined in %common.ent; -->
525
+ <!-- ELEM notes Defined in %common.ent; -->
526
+ <!--
527
+ ELEM custom-meta-group
528
+ Defined in %common.ent;
529
+ -->
530
+ <!-- JOURNAL METADATA -->
531
+ <!--
532
+ Metadata that identifies the journal in which
533
+ the article was published
534
+ Details at:
535
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=journal-meta
536
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=journal-meta
537
+ -->
538
+ <define name="journal-meta">
539
+ <element name="journal-meta">
540
+ <ref name="journal-meta-attlist"/>
541
+ <ref name="journal-meta-model"/>
542
+ </element>
543
+ </define>
544
+ <define name="journal-meta-attlist" combine="interleave">
545
+ <ref name="journal-meta-atts"/>
546
+ </define>
547
+ <!-- ============================================================= -->
548
+ <!-- JOURNAL TITLE ELEMENTS -->
549
+ <!-- ============================================================= -->
550
+ <!-- JOURNAL TITLE GROUP MODEL -->
551
+ <!--
552
+ Content model for the element
553
+ <journal-title-group>
554
+ -->
555
+ <define name="journal-title-group-model">
556
+ <zeroOrMore>
557
+ <ref name="journal-title"/>
558
+ </zeroOrMore>
559
+ <zeroOrMore>
560
+ <ref name="journal-subtitle"/>
561
+ </zeroOrMore>
562
+ <zeroOrMore>
563
+ <ref name="trans-title-group"/>
564
+ </zeroOrMore>
565
+ <zeroOrMore>
566
+ <ref name="abbrev-journal-title"/>
567
+ </zeroOrMore>
568
+ </define>
569
+ <!--
570
+ ELEM trans-title-group
571
+ Defined in %common.ent;
572
+ -->
573
+ <!-- JOURNAL TITLE GROUP -->
574
+ <!--
575
+ A container element to hold the title and
576
+ its subtitle (if any) for the journal in which
577
+ the article was published.
578
+ Details at:
579
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=journal-title-group
580
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=journal-title-group
581
+ -->
582
+ <define name="journal-title-group">
583
+ <element name="journal-title-group">
584
+ <ref name="journal-title-group-attlist"/>
585
+ <ref name="journal-title-group-model"/>
586
+ </element>
587
+ </define>
588
+ <define name="journal-title-group-attlist" combine="interleave">
589
+ <ref name="journal-title-group-atts"/>
590
+ </define>
591
+ <!-- JOURNAL TITLE ELEMENTS -->
592
+ <!--
593
+ The elements that can be included along with
594
+ data characters inside the content model of
595
+ a <journal-title>
596
+ Design Note: This PE begins with an OR
597
+ bar because %just-rendition; begins with an
598
+ OR bar.
599
+ -->
600
+ <define name="journal-title-elements">
601
+ <ref name="just-rendition"/>
602
+ </define>
603
+ <!-- JOURNAL TITLE (FULL) -->
604
+ <!--
605
+ The title of the journal in which the
606
+ article is published.
607
+ Details at:
608
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=journal-title
609
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=journal-title
610
+ -->
611
+ <define name="journal-title">
612
+ <element name="journal-title">
613
+ <ref name="journal-title-attlist"/>
614
+ <zeroOrMore>
615
+ <choice>
616
+ <text/>
617
+ <ref name="journal-title-elements"/>
618
+ </choice>
619
+ </zeroOrMore>
620
+ </element>
621
+ </define>
622
+ <define name="journal-title-attlist" combine="interleave">
623
+ <ref name="journal-title-atts"/>
624
+ </define>
625
+ <!-- JOURNAL SUBTITLE ELEMENTS -->
626
+ <!--
627
+ The elements that can be included along with
628
+ data characters inside the content model of
629
+ a <journal-subtitle>
630
+ -->
631
+ <define name="journal-subtitle-elements">
632
+ <ref name="journal-title-elements"/>
633
+ </define>
634
+ <!-- JOURNAL SUBTITLE -->
635
+ <!--
636
+ The subtitle of the journal in which the
637
+ article is published.
638
+ Details at:
639
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=journal-subtitle
640
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=journal-subtitle
641
+ -->
642
+ <define name="journal-subtitle">
643
+ <element name="journal-subtitle">
644
+ <ref name="journal-subtitle-attlist"/>
645
+ <zeroOrMore>
646
+ <choice>
647
+ <text/>
648
+ <ref name="journal-subtitle-elements"/>
649
+ </choice>
650
+ </zeroOrMore>
651
+ </element>
652
+ </define>
653
+ <define name="journal-subtitle-attlist" combine="interleave">
654
+ <ref name="journal-subtitle-atts"/>
655
+ </define>
656
+ <!-- ABBREVIATED JOURNAL TITLE ELEMENTS -->
657
+ <!--
658
+ The elements that can be included along with
659
+ data characters inside the content model of
660
+ a <abbrev-journal-title>
661
+ Design Note: This PE begins with an OR
662
+ bar because %just-rendition; begins with an
663
+ OR bar.
664
+ -->
665
+ <define name="abbrev-journal-title-elements">
666
+ <ref name="just-rendition"/>
667
+ </define>
668
+ <!-- ABBREVIATED JOURNAL TITLE -->
669
+ <!--
670
+ A short form of the title of the journal
671
+ in which the article is published.
672
+ Details at:
673
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=abbrev-journal-title
674
+ http://jats.nlm.nih.gov/publishing/tag-library/1.3/index.html?elem=abbrev-journal-title
675
+ -->
676
+ <define name="abbrev-journal-title">
677
+ <element name="abbrev-journal-title">
678
+ <ref name="abbrev-journal-title-attlist"/>
679
+ <zeroOrMore>
680
+ <choice>
681
+ <text/>
682
+ <ref name="abbrev-journal-title-elements"/>
683
+ </choice>
684
+ </zeroOrMore>
685
+ </element>
686
+ </define>
687
+ <define name="abbrev-journal-title-attlist" combine="interleave">
688
+ <ref name="abbrev-journal-title-atts"/>
689
+ </define>
690
+ </grammar>
691
+ <!-- ================== End Journal Metadata Elements =========== -->