@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,1277 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: Journal Archiving and Interchange DTD (MathML 3.0) -->
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) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN"
13
+ Delivered as file "JATS-archivearticle1-3-mathml3.dtd"
14
+ Available at:
15
+ http://jats.nlm.nih.gov/archiving/1.3/JATS-archivearticle1-3.dtd
16
+ -->
17
+ <!-- ============================================================= -->
18
+ <!-- ============================================================= -->
19
+ <!-- SYSTEM: Journal Archiving and Interchange DTD of the -->
20
+ <!-- JATS DTD Suite -->
21
+ <!---->
22
+ <!-- PURPOSE: DTD to describe a full-text journal article -->
23
+ <!---->
24
+ <!-- The Journal Archiving and Interchange DTD is an -->
25
+ <!-- application of the ANSI/NISO Z39.96 JATS Journal -->
26
+ <!-- Article Tag Set. It describes journal articles -->
27
+ <!-- and some non-article material such as product -->
28
+ <!-- and book reviews for repository or interchange -->
29
+ <!-- purposes. It describes both the metadata for a -->
30
+ <!-- journal article and the full content of -->
31
+ <!-- the article. -->
32
+ <!---->
33
+ <!-- This DTD was constructed using the modules in the -->
34
+ <!-- JATS DTD Suite, using almost no customization. -->
35
+ <!---->
36
+ <!-- TAG SET SPONSOR -->
37
+ <!-- National Center for Biotechnology -->
38
+ <!-- Information (NCBI) -->
39
+ <!-- National Library of Medicine (NLM) -->
40
+ <!---->
41
+ <!-- CREATED FOR: -->
42
+ <!-- This DTD was created from the JATS DTD Suite. -->
43
+ <!-- Digital archives and publishers may use the -->
44
+ <!-- DTD as is for markup of journal literature or -->
45
+ <!-- related material for archiving and transferring -->
46
+ <!-- such material between archives or create a -->
47
+ <!-- custom XML DTD from the Suite for -->
48
+ <!-- these purposes. -->
49
+ <!---->
50
+ <!-- This DTD is in the public domain. An organization -->
51
+ <!-- that wishes to create its own DTD from the suite -->
52
+ <!-- may do so without permission from NLM. -->
53
+ <!---->
54
+ <!-- The suite has been set up to be extended using a -->
55
+ <!-- new DTD file and a new DTD-specific customization -->
56
+ <!-- module to redefine the many Parameter Entities. -->
57
+ <!-- Do not modify the suite directly or redistribute -->
58
+ <!-- modified versions of the suite. -->
59
+ <!---->
60
+ <!-- In the interest of maintaining consistency and -->
61
+ <!-- clarity for potential users, NLM requests: -->
62
+ <!---->
63
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
64
+ <!-- and intend to stay compatible with the suite, -->
65
+ <!-- then please include the following statement -->
66
+ <!-- as a comment in all of your DTD modules: -->
67
+ <!-- "Created from, and fully compatible with, -->
68
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
69
+ <!-- Suite (JATS)." -->
70
+ <!---->
71
+ <!-- 2. If you alter one or more modules of the suite, -->
72
+ <!-- then please rename your version and all its -->
73
+ <!-- modules to avoid any confusion with the -->
74
+ <!-- original suite. Also, please include the -->
75
+ <!-- following statement as a comment in all your -->
76
+ <!-- DTD modules: -->
77
+ <!-- "Based in part on, but not fully compatible -->
78
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
79
+ <!-- Tag Suite (JATS)." -->
80
+ <!---->
81
+ <!-- ORIGINAL CREATION DATE: -->
82
+ <!-- December 2002 -->
83
+ <!---->
84
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
85
+ <!-- Working Group. Mulberry Technologies was -->
86
+ <!-- supported by National Center for Biotechnology -->
87
+ <!-- Information (NCBI), a center of the US National -->
88
+ <!-- Library of Medicine (NLM). -->
89
+ <!---->
90
+ <!-- The Journal Archiving and Interchange DTD is -->
91
+ <!-- built from the JATS DTD Suite. -->
92
+ <!---->
93
+ <!-- This DTD and the Suite are a continuation of -->
94
+ <!-- the work done by NCBI, Mulberry Technologies, -->
95
+ <!-- and Inera Inc. on the NLM Journal Archiving -->
96
+ <!-- and Interchange DTD Suite, which was originally -->
97
+ <!-- released in December, 2002. -->
98
+ <!---->
99
+ <!-- NLM thanks the Harvard University Libraries, both -->
100
+ <!-- for proposing that a draft archiving NLM DTD for -->
101
+ <!-- life sciences journals be extended to accommodate -->
102
+ <!-- journals in all disciplines and for sponsoring -->
103
+ <!-- Inera Inc.'s collaboration with other DTD -->
104
+ <!-- authors in completing NLM Version 1.0. The -->
105
+ <!-- Andrew W. Mellon Foundation provided support for -->
106
+ <!-- these important contributions. -->
107
+ <!---->
108
+ <!-- Suggestions for refinements and enhancements to -->
109
+ <!-- this DTD should be sent in email to: -->
110
+ <!-- jats@ncbi.nlm.nih.gov -->
111
+ <!-- ============================================================= -->
112
+ <!-- ============================================================= -->
113
+ <!-- DTD VERSION/CHANGE HISTORY -->
114
+ <!-- ============================================================= -->
115
+ <!--
116
+
117
+ =============================================================
118
+
119
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
120
+ ==============================================================
121
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
122
+ (DAL/BTU) v1.3 (2021-06-10)
123
+
124
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
125
+ which requires voting by both the NISO and ANSI memberships
126
+ to be changed. This version of the NISO JATS was approved
127
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
128
+ Drafts as well as the draft version JATS 1.3 2021 (the version
129
+ submitted for vote), becoming NISO JATS v1.3 20210610
130
+ (ANSI/NISO Z39.96-2019).
131
+
132
+ The file names and formal public identifiers have been
133
+ changed in the modules and the catalogs.
134
+
135
+ 41. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
136
+ (final ANSI vote date)
137
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
138
+
139
+ ==============================================================
140
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
141
+ (DAL/BTU) v1.3d2 (2020-11-30)
142
+
143
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
144
+ which requires voting by the NISO and ANSI memberships
145
+ to be changed.
146
+
147
+ This draft DTD represents an interim version of the
148
+ non-normative JATS DTD Suite, as an indication to JATS users
149
+ of the decisions that have been made by the JATS Standing
150
+ Committee. This draft has not yet been given public review
151
+ or voting; it is for Standing Committee review and
152
+ testing. The formal public identifiers have been changed
153
+ in the modules and the catalogs.
154
+
155
+ 40. PROCESSING METADATA - A new container element was added as
156
+ a child of <article>, <sub-article>, and <response> to
157
+ describe processing information to help determine the
158
+ exact tagset flavor used by this document instance.
159
+ (<processing-meta>)
160
+ Current contents of <processing-meta>:
161
+ - <restricted-by> - Names tighter schemas, subsets, or
162
+ Guidelines followed by this document.
163
+ - <extended-by> - Names extension or superset schemas
164
+ followed by this document, such as TaxPub.
165
+ - <custom-meta-group>
166
+ Several new attributes were added to describe more
167
+ completely the flavor/version of JATS in which the
168
+ document was composed:
169
+ - @tagset-family (JATS | BITS | STS)
170
+ - @base-tagset (Archiving | Publishing | Authoring)
171
+ - @table-model (XHTML |OASIS-CALS | both | none)
172
+ - @mathml (MathML 2.0 | MathML 3.0)
173
+ - @dtd-version was also revised (see below)
174
+
175
+ 39. DTD VERSION - The <article> attribute @dtd-version has been
176
+ a #FIXED attribute for all of JATS history. This is very
177
+ convenient when creating documents, but problematic for
178
+ archives who receive many versions over time. If a document
179
+ is valid to "v1.3d1"; it is also valid to the latest version
180
+ and to all older versions. @dtd-version will stay a CDATA
181
+ attribute, but will be optional, with a list of values, and
182
+ with no default.
183
+
184
+ 38. ADDED <issue-title-group> added to <front-stub>
185
+ (optional, repeatable)
186
+
187
+ 37. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
188
+ committee draft following the final ANSI/NISO 1.2 vote)
189
+
190
+ ==============================================================
191
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
192
+ (DAL/BTU) v1.3.d1 (2019-08-31)
193
+
194
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
195
+ which requires voting by the NISO and ANSI memberships
196
+ to be changed.
197
+
198
+ This draft DTD represents an interim version of the
199
+ non-normative JATS DTD Suite, as an indication to JATS users
200
+ of the decisions that have been made by the JATS Standing
201
+ Committee. This draft has not yet been given public review
202
+ or voting. The formal public identifiers were changed in the
203
+ modules and the catalogs.
204
+
205
+ 36. QUESTION AND ANSWER MODULES - Added call to BITS question
206
+ and answer module names question-answer ent
207
+
208
+ 35. JATS "1.2" becomes "v1.3d1 20190831" (first committee
209
+ draft following the final ANSI/NISO vote)
210
+
211
+ ==============================================================
212
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
213
+ (DAL/BTU) v1.2 (2019-02-08)
214
+
215
+ NISO JATS is a continuing maintenance NISO Standard, which
216
+ requires voting by the both the NISO and ANSI membership
217
+ to be changed. This version of the NISO JATS was approved
218
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
219
+ Drafts as well as the draft version JATS 1.2 2018 (the version
220
+ submitted for vote), becoming NISO JATS v1.2 20190208
221
+ (ANSI/NISO Z39.96-2021).
222
+
223
+ 34. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
224
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
225
+
226
+ ==============================================================
227
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
228
+ (DAL/BTU) v1.2 (2018-11-30)
229
+
230
+ NISO JATS is a continuing maintenance NISO Standard, which
231
+ requires voting by the both the NISO and ANSI membership
232
+ to be changed. This version of the NISO JATS was approved
233
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
234
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
235
+
236
+ 33. @dtd-version becomes "1.2" from "1.2d2"
237
+
238
+ 32. JATS "1.2d2" and "v1.2d2 20180401" became
239
+ JATS "1.2" and "v1.2 20181130"
240
+
241
+ =============================================================
242
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
243
+
244
+ JATS is a continuing maintenance NISO Standard, which
245
+ requires voting by the ANSI and NISO memberships to be changed.
246
+ BITS is under continuous maintenance, and is modified at the
247
+ discretion of the working group.
248
+
249
+ This draft DTD represents an interim version of the
250
+ non-normative JATS DTD Suite, as an indication to JATS users
251
+ the decisions that have been made by the JATS Standing
252
+ Committee. This draft has not yet been given public review
253
+ or voting. The formal public identifiers were changed in the
254
+ modules and the catalogs.
255
+
256
+ 31. DATE-NOT-AVAILABLE - Inside <article-meta> and <front-stub>,
257
+ a new element <pub-date-not-available> was added as an
258
+ alternatives to <pub-date>. The meaning is that a
259
+ publication date was (for whatever reason) not available.
260
+ Presence of the element says nothing about publication
261
+ status.
262
+
263
+ 30. INLINE INDEX TERMS - Added invocation to BITS inline
264
+ (embedded) index term model
265
+
266
+ 29. @dtd-version becomes "1.2d2" from "1.2d1"
267
+
268
+ 28. JATS "1.2d1" and "v1.2d1 20171231" became
269
+ JATS "1.2d2" and "v1.2d2 20180401".
270
+
271
+ No module names were changed.
272
+
273
+ =============================================================
274
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
275
+ (DAL/BTU) v1.2d2 (2017-12-31)
276
+
277
+ NISO JATS is a continuing maintenance NISO Standard, which
278
+ requires voting by the ANSI and NISO memberships to be changed.
279
+
280
+ This draft DTD represents an interim version of the
281
+ non-normative JATS DTD Suite, as an indication to JATS users
282
+ the decisions that have been made by the JATS Standing
283
+ Committee. This draft has not yet been given public review
284
+ or voting. The formal public identifiers were changed in the
285
+ modules and the catalogs.
286
+
287
+ 27. JATS "1.2d1" and "v1.2d1 20170631" became
288
+ JATS "1.2d1" and "v1.2d1 20171231".
289
+
290
+ =============================================================
291
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
292
+
293
+ NISO JATS is a continuing maintenance NISO Standard, which
294
+ requires voting by the ANSI and NISO memberships to be changed.
295
+
296
+ This draft DTD represents an interim version of the
297
+ non-normative JATS DTD Suite, as an indication to JATS users
298
+ the decisions that have been made by the JATS Standing
299
+ Committee. This draft has not yet been given public review
300
+ or voting. The formal public identifiers were changed in the
301
+ modules and the catalogs.
302
+
303
+ 26. xsi:noNamespaceSchemaLocation added to attribute list of
304
+ <article>. Most modern processors do not need this, but
305
+ a user with an older processor requested it, so the JATS
306
+ Standing Committee acquiesced. This pseudo-attribute
307
+ cannot be used with a DOCTYPE declaration.
308
+
309
+ 25. FRONT STUB MODEL
310
+ - ARTICLE VERSION - Added new element <article-version>
311
+ inside <front-stub> to hold one version number for the
312
+ article. <article-version> element may repeat inside
313
+ <article-version-alternatives> to hold version numbers
314
+ from different systems.
315
+
316
+ - NO DATE - <pub-date> (optional repeatable) is now
317
+ followed by the optional new element
318
+ <pub-date-not-available>.
319
+
320
+ - PUB-HISTORY - <pub-history> (optional) added to hold
321
+ <event>s.
322
+
323
+ 24. DTD version "1.2d1" from 1.1
324
+
325
+ 23. JATS became version "1.2d1" and "v1.2d1 20170631"
326
+
327
+ =============================================================
328
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
329
+
330
+ JATS is a continuing maintenance NISO Standard, which
331
+ requires voting by the ANSI and NISO memberships to be changed.
332
+ JATS 1.1 was approved in late 2015, so the formal public
333
+ identifiers were changed in the modules and the catalogs.
334
+ No model or attribute changes were made at this time.
335
+
336
+ 22. JATS became version "1.1" and "v1.1 20151215"
337
+ BITS remained version "2.0" but becomes "v2.0 20151225"
338
+
339
+ =============================================================
340
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
341
+
342
+ The changes in this release are in response to NISO
343
+ License and Indicators Recommended Practice.
344
+
345
+ NISO JATS is a continuing maintenance NISO Standard, which
346
+ requires voting by the NISO membership to be changed. This
347
+ Committee Draft 1.1d3 will be sent to the NISO voting
348
+ membership, to become (if approved) NISO JATS 1.1.
349
+
350
+ This draft DTD represents an interim version of the
351
+ non-normative JATS DTD Suite, as an indication to JATS users
352
+ the decisions that have been made by the JATS Standing
353
+ Committee.
354
+
355
+ 21. ALI - Added ALI namespace for NISO Access and Indicator
356
+ license reference and free to read elements.
357
+
358
+ 20. JATS became version "1.1d3" and "v1.1d3 20150301"
359
+
360
+ =============================================================
361
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
362
+
363
+ NISO JATS is a continuing maintenance NISO Standard, which
364
+ requires voting by the NISO membership to be changed. This
365
+ Committee Draft 1.1d2 will be sent to the NISO voting
366
+ membership, to become (if approved) NISO JATS 1.1.
367
+
368
+ This catalog represents an interim version of the
369
+ non-normative JATS DTD Suite, as an indication to JATS users
370
+ the decisions that have been made by the JATS Standing
371
+ Committee.
372
+
373
+ 19. <VOLUME> INSIDE <ARTICLE-META> and <FRONT-STUB>
374
+ - Allowed <volume> to repeat inside <article-meta>, the types to
375
+ be distinguished using @content-type
376
+ - Added new optional element <volume-issue-group> inside
377
+ <article-meta) following all volume and issue elements
378
+ to hold volume-issue pairs (or n-tuples) when a second
379
+ and subsequent <volume> has its own related issue
380
+ information.
381
+
382
+ 18. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
383
+
384
+ =============================================================
385
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
386
+
387
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
388
+
389
+ NISO JATS Standing Committee met and answered the requests and
390
+ suggestions from the NISO request forms.
391
+
392
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
393
+ XSDs, RNGs and supporting documentation are available at
394
+ http://jats.nlm.nih.gov/1.1d2/
395
+
396
+ 17. MATHML 3.0 - Created a new version of the Archiving DTD to
397
+ take MathML 3.0 instead of MathML 2.0.
398
+ Nothing else changed from regular Archiving DTD.
399
+ Call to MathML setup module changed and added call to the
400
+ specific MathML 3.0 modules.
401
+
402
+ 16. DTD Version - Updated the DTD-version attribute to "1.1d1" and
403
+ the formal public identifier to the date: "v1.1d1 20130915//EN".
404
+
405
+ 15. GLOBAL ATTRIBUTES - Added the new module for Common (global)
406
+ attributes: %JATS-common-atts.ent;, called in before the
407
+ customizations models module.
408
+
409
+ 14. GLOBAL ATTRIBUTES - Added the new parameter entity
410
+ %jats-common-atts;
411
+ to every element in this module. This PE adds (for now) the
412
+ @id attribute and the @xml:base attribute to every element,
413
+ whether metadata or narrative.
414
+ Since the @id in this parameter entity is optional, a second
415
+ parameter entity jats-common-atts-id-required was also added.
416
+ The two are kept in sync with the jats-base-atts parameter
417
+ entity.
418
+ This added a new attribute list to:
419
+ - back
420
+ - front
421
+ - front-stub
422
+
423
+ 13. ABSTRACTS AND KEYWORDS
424
+ Changed "abstract*" to "(%abstract.class;)*"
425
+ and "kwd-group*" to "(%kwd-group.class;)*" since those
426
+ classes now exist. Elements should have a limited number of
427
+ ways to be invoked.
428
+ - article-meta (through %article-meta-model;)
429
+ - front-stub (through %front-stub-model;)
430
+
431
+ =============================================================
432
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
433
+
434
+ ANSI/NISO Z39.96-2012 (Version 1.0)
435
+
436
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
437
+ XSDs, RNGs and supporting documentation are available at
438
+ http://jats.nlm.nih.gov/1.3d2/
439
+
440
+ 12. RELATED OBJECT - Added <related-object> everywhere
441
+ <related-article> was used, including inside
442
+ <front-stub> using front-stub-model.
443
+
444
+ 11. Updated the DTD-version attribute to "1.0" and the formal
445
+ public identifier to the date: "v1.0 20120330//EN".
446
+
447
+ =============================================================
448
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
449
+
450
+ This Tag Set is in the process of becoming a NISO standard.
451
+ The version numbers are starting over from 0.4", as a Trial
452
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
453
+ becomes a NISO standard. Thus, the version number that would
454
+ have been "NLM Version 3.1 Draft" has become NISO JATS
455
+ "Version 0.4".
456
+
457
+ Details on NISO Trial Use Draft Version 0.4 are available at
458
+ http://jats.nlm.nih.gov/JATS-0.4.
459
+
460
+ 10. Updated the DTD-version attribute to "0.4"
461
+
462
+ 9. Updated the public identifier to "v0.4 20110131",
463
+ modified the formal public identifier to include "JATS (Z39.96)",
464
+ and the filename as delivered to include "JATS" and the
465
+ new version number "0".
466
+
467
+ 8. BODY ATTRIBUTES - Added attribute list and new PE %body-atts;
468
+ to the model of <body>. The only current attribute is
469
+ @specific-use, which indicates, for example, not a real
470
+ tagged XML body, but a 'bag of words" for indexing purposes.
471
+
472
+ 7. KEYWORD GROUP - Made <kwd-group> repeatable inside
473
+ <front-stub> by modifying %front-stub-model;
474
+
475
+ 6. I18N - Changed the default for @xml:lang from "en" to
476
+ #IMPLIED, so that the @xml:lang would inherit properly and
477
+ not need to be over-ridden in
478
+ - <sub-article> through %sub-article-atts;
479
+ - <response> through %response-atts;
480
+
481
+ 5. AFFILIATION ALTERNATIVES - Added the element <aff-alternatives>
482
+ to <front-stub> through %front-stub-model;. This element
483
+ will hold multiple <aff>s that are a representation of a
484
+ single affiliation, for example, the name of an institution
485
+ in two languages or two scripts.
486
+
487
+ 4. FRONT MATTER - Modified %front-model; to add the elements:
488
+ ack | bio | fn-group | glossary (via %front.class;)
489
+ to front matter content model.
490
+
491
+ 3. LANGUAGE CODES - Codes for languages as well as variants,
492
+ transliterations, regions, scripts, and combinations
493
+ such as "Jpan"(Han + Hiragana + Katakana). These values should be
494
+ taken from RFC 5646/W3C/IANA Subtag Registry recommendations
495
+ and can be found online at:
496
+ http://www.iana.org/assignments/language-subtag-registry
497
+
498
+ =============================================================
499
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
500
+
501
+ Version 3.0 is the first non-backward-compatible release.
502
+ In addition to the usual incremental changes, some
503
+ elements and attributes have been renamed and/or remodeled
504
+ to better meet user needs and to increase tag set consistency.
505
+ All module change histories are available through the Tag Suite
506
+ web site at http://dtd.nlm.nih.gov.
507
+
508
+ Details on version 3.0 are available at
509
+ http://dtd.nlm.nih.gov/3.0.
510
+
511
+ 2. Changed default @xml:lang from "EN" from "en" to match latest
512
+ RFC 4646/W3C/IANA Subtag Registry recommendations
513
+
514
+ 1. Updated public identifier to "v3.0 20071031//EN"
515
+ -->
516
+ <!-- ============================================================= -->
517
+ <!--
518
+ Details concerning
519
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
520
+ RNGs and supporting documentation are available at
521
+ http://jats.nlm.nih.gov/1.1/
522
+ -->
523
+ <!-- ============================================================= -->
524
+ <!-- DESIGN CONSIDERATIONS -->
525
+ <!-- ============================================================= -->
526
+ <!--
527
+ MODULAR DTD LIBRARY
528
+ A set of journal archiving and interchange
529
+ DTD modules was written as the basis for
530
+ publishing, interchange, and repository
531
+ DTDs, with the intention that DTDs for
532
+ specific purposes, such as this Journal
533
+ Archiving and Interchange DTD, would be
534
+ developed based on them.
535
+
536
+ This archiving DTD has been designed to
537
+ be descriptive, open, and inclusive to
538
+ allow journal articles to be translated into
539
+ this format as conveniently as possible
540
+ from a wide variety of proprietary journal
541
+ article DTDs (such as Blackwell, Keton, and
542
+ Ovid).
543
+
544
+ This Archiving DTD has been developed from
545
+ the JATS DTD Suite modules, in the approved
546
+ manner, making changes to the declarations
547
+ in those modules by over-riding Parameter
548
+ Entity contents by redefining the entities
549
+ in the:
550
+ %archivecustom-classes.ent;
551
+ %archivecustom-mixes.ent;
552
+ %archivecustom-models.ent;
553
+ modules, which are called from this DTD file.
554
+ No changes to any of the original JATS DTD
555
+ Suite modules are required in order to
556
+ use this DTD.
557
+ -->
558
+ <!-- ============================================================= -->
559
+ <!-- MODULES OF MODULES INVOKED -->
560
+ <!-- ============================================================= -->
561
+ <!-- MODULE TO NAME DTD-SPECIFIC MODULES -->
562
+ <!-- Names all DTD-specific external modules -->
563
+ <!-- MODULE TO NAME THE MATHML 3.0 MODULES -->
564
+ <!-- Names all DTD-specific external modules -->
565
+ <!-- MODULE TO NAME THE MODULES -->
566
+ <!--
567
+ Declares all the external modules that are
568
+ part of the modular JATS DTD Suite library.
569
+ Thus it does NOT declare itself;
570
+ the DTD-specific module-of-modules;
571
+ any of the DTD-specific class,
572
+ mix, or model over-ride modules; or any
573
+ new content modules specific to this DTD.
574
+ Those are declared in the DTD-specific
575
+ module of modules.
576
+ Since this module declares but does not
577
+ invoke modules, this DTD then invokes any
578
+ modules it uses by referencing the external
579
+ Parameter Entities defined in the Module of
580
+ Modules. To include a set of elements (such
581
+ as all the lists or the table elements) this
582
+ module defines the external Parameter Entity
583
+ for the module(s) that contains the table
584
+ declarations and the DTD references that
585
+ entity.
586
+ -->
587
+ <!-- ============================================================= -->
588
+ <!-- NISO ALI NAMESPACE SETUP -->
589
+ <!-- ============================================================= -->
590
+ <!-- DEFINE ALI NAMESPACE ATTRIBUTE AND PREFIX -->
591
+ <!--
592
+ Names the module defines the NISO Access and
593
+ Indicators Exchange Model namespace, prefix,
594
+ and pseudo-attribute @xmlns.
595
+ -->
596
+ <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
597
+ <include href="JATS-ali-namespace1-3.ent.rng"/>
598
+ <!-- ============================================================= -->
599
+ <!-- SET UP COMMON (ALL ELEMENT) ATTRIBUTES -->
600
+ <!-- ============================================================= -->
601
+ <!-- COMMON ATTRIBUTES MODULE -->
602
+ <!--
603
+ Set up the common attributes, those used on
604
+ nearly all elements.
605
+ Must be called before the custom models
606
+ module.
607
+ -->
608
+ <include href="JATS-common-atts1-3.ent.rng"/>
609
+ <!-- ============================================================= -->
610
+ <!-- CUSTOMIZATION MODULES INVOKED -->
611
+ <!-- Note: These modules must be called after -->
612
+ <!-- all Module of Modules but before any other -->
613
+ <!-- modules. Unlike any other grouping, order -->
614
+ <!-- of these modules matters. -->
615
+ <!-- ============================================================= -->
616
+ <!-- DTD-SPECIFIC CLASS CUSTOMIZATIONS MODULE -->
617
+ <!--
618
+ Names the module that holds the DTD-specific
619
+ class definitions for the Journal Archiving
620
+ and Interchange DTD that over-rides the Suite
621
+ defaults.
622
+ (Defined in %archivecustom-modules.ent; )
623
+ -->
624
+ <include href="JATS-archivecustom-classes1-3.ent.rng"/>
625
+ <!-- DEFAULT ELEMENT CLASSES MODULE -->
626
+ <!--
627
+ Names the module that holds the standard
628
+ class definitions for the JATS DTD Suite.
629
+ -->
630
+ <include href="JATS-default-classes1-3.ent.rng"/>
631
+ <!-- DTD-SPECIFIC MIX CUSTOMIZATIONS MODULE -->
632
+ <!--
633
+ Set up the Parameter Entities and element
634
+ class definitions that will be used to
635
+ over-ride some element mixes in this DTD.
636
+ (Defined in %archivecustom-modules.ent; )
637
+ -->
638
+ <include href="JATS-archivecustom-mixes1-3.ent.rng"/>
639
+ <!-- DEFAULT MIX CUSTOMIZATIONS MODULE -->
640
+ <!--
641
+ Names the module that holds the standard
642
+ mix definitions for the JATS DTD Suite.
643
+ -->
644
+ <include href="JATS-default-mixes1-3.ent.rng"/>
645
+ <!--
646
+ DTD-SPECIFIC MODELS/ATTRIBUTES CUSTOMIZATIONS
647
+ MODULE
648
+ -->
649
+ <!--
650
+ Names the module that holds the over-rides
651
+ of content models, attribute lists, elements
652
+ lists to be used in content models, and
653
+ attribute values. These are DTD-specific.
654
+ (Defined in %archivecustom-modules.ent; )
655
+ -->
656
+ <include href="JATS-archivecustom-models1-3.ent.rng"/>
657
+ <!-- ============================================================= -->
658
+ <!-- COMMON (SHARED) ELEMENTS MODULE INVOKED -->
659
+ <!-- ============================================================= -->
660
+ <!-- COMMON (SHARED) DECLARATIONS -->
661
+ <!--
662
+ Declarations for elements, attributes,
663
+ entities, and Notations that are shared by
664
+ more than one class module. Note: Must be
665
+ called before any of the class modules.
666
+ -->
667
+ <include href="JATS-common1-3.ent.rng"/>
668
+ <!-- ============================================================= -->
669
+ <!-- JOURNAL ARTICLE CLASS ELEMENTS (alpha) -->
670
+ <!-- ============================================================= -->
671
+ <!-- ARTICLE METADATA ELEMENTS -->
672
+ <include href="JATS-articlemeta1-3.ent.rng"/>
673
+ <!-- BACK MATTER ELEMENTS -->
674
+ <include href="JATS-backmatter1-3.ent.rng"/>
675
+ <!-- DISPLAY (GRAPHICAL) ELEMENTS -->
676
+ <include href="JATS-display1-3.ent.rng"/>
677
+ <!-- FORMATTING ELEMENT CLASSES -->
678
+ <!-- Elements that change rendition/display. -->
679
+ <include href="JATS-format1-3.ent.rng"/>
680
+ <!-- FUNDING ELEMENTS -->
681
+ <!--
682
+ Elements that describe the sponsorship or
683
+ open access
684
+ -->
685
+ <include href="JATS-funding1-3.ent.rng"/>
686
+ <!-- JOURNAL METADATA ELEMENTS -->
687
+ <include href="JATS-journalmeta1-3.ent.rng"/>
688
+ <!-- LINK CLASS ELEMENTS -->
689
+ <include href="JATS-link1-3.ent.rng"/>
690
+ <!-- LIST CLASS ELEMENTS -->
691
+ <include href="JATS-list1-3.ent.rng"/>
692
+ <!-- MATH ELEMENTS -->
693
+ <include href="JATS-math1-3.ent.rng"/>
694
+ <!-- NLM CITATION ELEMENT -->
695
+ <include href="JATS-nlmcitation1-3.ent.rng"/>
696
+ <!-- PARAGRAPH-LEVEL ELEMENTS -->
697
+ <include href="JATS-para1-3.ent.rng"/>
698
+ <!-- PHRASE-LEVEL ELEMENTS -->
699
+ <include href="JATS-phrase1-3.ent.rng"/>
700
+ <!--
701
+ BIBLIOGRAPHIC REFERENCE (CITATION)
702
+ CLASS ELEMENTS
703
+ -->
704
+ <include href="JATS-references1-3.ent.rng"/>
705
+ <!-- RELATED OBJECT ELEMENT -->
706
+ <!--
707
+ Defines the <related-object> element to
708
+ describe a related object such as a
709
+ related book or a dataset.
710
+ -->
711
+ <include href="JATS-related-object1-3.ent.rng"/>
712
+ <!-- SECTION ELEMENTS -->
713
+ <include href="JATS-section1-3.ent.rng"/>
714
+ <!-- ============================================================= -->
715
+ <!-- THE REST OF THE EXTERNAL MODULES INVOKED -->
716
+ <!-- ============================================================= -->
717
+ <!-- BITS EMBEDDED INDEX ELEMENTS MODULE -->
718
+ <!--
719
+ Element declarations the index elements
720
+ which are embedded in the article
721
+ narrative.
722
+ -->
723
+ <include href="BITS-embedded-index2.ent.rng"/>
724
+ <!-- BITS QUESTION AND ANSWER MODULE -->
725
+ <!--
726
+ Element declarations for BITS questions
727
+ and answers (not complete tests, but used
728
+ to put build quizzes and tests.
729
+ -->
730
+ <include href="BITS-question-answer2.ent.rng"/>
731
+ <!-- ============================================================= -->
732
+ <!-- THE REST OF THE EXTERNAL MODULES INVOKED -->
733
+ <!-- ============================================================= -->
734
+ <!-- MATHML SETUP MODULE -->
735
+ <!-- Invoke the MathML modules -->
736
+ <include href="JATS-mathml3-mathmlsetup1-3.ent.rng"/>
737
+ <!-- XHTML TABLE SETUP MODULE -->
738
+ <!--
739
+ Set up the necessary Parameter Entity values
740
+ and then invoke XHTML (HTML 4.0) table
741
+ module
742
+ -->
743
+ <include href="JATS-XHTMLtablesetup1-3.ent.rng"/>
744
+ <!-- SPECIAL CHARACTERS DECLARATIONS -->
745
+ <!--
746
+ Standard XML special character entities
747
+ used in this DTD
748
+ -->
749
+ <!-- CUSTOM SPECIAL CHARACTERS DECLARATIONS -->
750
+ <!--
751
+ Custom special character entities created
752
+ specifically for use in this DTD Suite
753
+ -->
754
+ <include href="JATS-chars1-3.ent.rng"/>
755
+ <!-- NOTATION DECLARATIONS MODULE -->
756
+ <!-- ============================================================= -->
757
+ <!-- PARAMETER ENTITIES FOR ATTRIBUTE LISTS -->
758
+ <!-- ============================================================= -->
759
+ <!-- DTD VERSION -->
760
+ <!--
761
+ What version of this DTD was used to make
762
+ the document instance under consideration.
763
+ -->
764
+ <define name="dtd-version">
765
+ <optional>
766
+ <attribute name="dtd-version">
767
+ <choice>
768
+ <value>3.0</value>
769
+ <value>0.4</value>
770
+ <value>1.0</value>
771
+ <value>1.1d1</value>
772
+ <value>1.1d2</value>
773
+ <value>1.1d3</value>
774
+ <value>1.1</value>
775
+ <value>1.2d1</value>
776
+ <value>1.2d2</value>
777
+ <value>1.2</value>
778
+ <value>1.3d1</value>
779
+ <value>1.3d2</value>
780
+ <value>1.3</value>
781
+ </choice>
782
+ </attribute>
783
+ </optional>
784
+ </define>
785
+ <!-- ARTICLE ATTRIBUTES -->
786
+ <!--
787
+ Attributes for the top-level element
788
+ <article>
789
+ -->
790
+ <define name="article-atts">
791
+ <ref name="jats-common-atts"/>
792
+ <optional>
793
+ <attribute name="article-type"/>
794
+ </optional>
795
+ <optional>
796
+ <attribute name="specific-use"/>
797
+ </optional>
798
+ <optional>
799
+ <attribute name="xml:lang" a:defaultValue="en">
800
+ <data type="NMTOKEN"/>
801
+ </attribute>
802
+ </optional>
803
+ <ref name="dtd-version"/>
804
+ <ref name="XLINK.xmlns.attrib"/>
805
+ <ref name="MATHML.xmlns.attrib"/>
806
+ <ref name="ali.xmlns.attrib"/>
807
+ <ref name="Schema.xmlns.attrib"/>
808
+ <optional>
809
+ <attribute name="xsi:noNamespaceSchemaLocation"/>
810
+ </optional>
811
+ </define>
812
+ <!-- BACK ATTRIBUTES -->
813
+ <!-- Attributes for the <back> element -->
814
+ <define name="back-atts">
815
+ <ref name="jats-common-atts"/>
816
+ </define>
817
+ <!-- BODY ATTRIBUTES -->
818
+ <!-- Attributes for the <body> element -->
819
+ <define name="body-atts">
820
+ <ref name="jats-common-atts"/>
821
+ <optional>
822
+ <attribute name="specific-use"/>
823
+ </optional>
824
+ </define>
825
+ <!-- FRONT ATTRIBUTES -->
826
+ <!-- Attributes for the <front> element -->
827
+ <define name="front-atts">
828
+ <ref name="jats-common-atts"/>
829
+ </define>
830
+ <!-- FRONT STUB ATTRIBUTES -->
831
+ <!-- Attributes for the <front-stub> element -->
832
+ <define name="front-stub-atts">
833
+ <ref name="jats-common-atts"/>
834
+ </define>
835
+ <!-- SUB-ARTICLE ATTRIBUTES -->
836
+ <!-- Attributes for the <sub-article> element -->
837
+ <define name="sub-article-atts">
838
+ <ref name="jats-common-atts"/>
839
+ <optional>
840
+ <attribute name="article-type"/>
841
+ </optional>
842
+ <optional>
843
+ <attribute name="specific-use"/>
844
+ </optional>
845
+ <optional>
846
+ <attribute name="xml:lang">
847
+ <data type="NMTOKEN"/>
848
+ </attribute>
849
+ </optional>
850
+ </define>
851
+ <!-- RESPONSE ATTRIBUTES -->
852
+ <!-- Attributes for the <response> element -->
853
+ <define name="response-atts">
854
+ <ref name="jats-common-atts"/>
855
+ <optional>
856
+ <attribute name="response-type"/>
857
+ </optional>
858
+ <optional>
859
+ <attribute name="specific-use"/>
860
+ </optional>
861
+ <optional>
862
+ <attribute name="xml:lang">
863
+ <data type="NMTOKEN"/>
864
+ </attribute>
865
+ </optional>
866
+ </define>
867
+ <!-- ============================================================= -->
868
+ <!-- JOURNAL ARTICLE ELEMENTS -->
869
+ <!-- ============================================================= -->
870
+ <!-- ARTICLE MODEL (LIMITED) -->
871
+ <!--
872
+ Article-like model used for, for example,
873
+ a short sub-article such as a news brief that
874
+ is contained in side a journal article.
875
+ -->
876
+ <define name="article-short-model">
877
+ <optional>
878
+ <ref name="processing-meta"/>
879
+ </optional>
880
+ <choice>
881
+ <ref name="front"/>
882
+ <ref name="front-stub"/>
883
+ </choice>
884
+ <optional>
885
+ <ref name="body"/>
886
+ </optional>
887
+ <optional>
888
+ <ref name="back"/>
889
+ </optional>
890
+ <optional>
891
+ <ref name="floats-group"/>
892
+ </optional>
893
+ </define>
894
+ <!-- ARTICLE MODEL WITH SUB-ARTICLE OR RESPONSE -->
895
+ <!--
896
+ Typical journal article model, which may
897
+ contain extended components, such as
898
+ sub-articles or responses,
899
+ -->
900
+ <define name="article-full-model">
901
+ <optional>
902
+ <ref name="processing-meta"/>
903
+ </optional>
904
+ <ref name="front"/>
905
+ <optional>
906
+ <ref name="body"/>
907
+ </optional>
908
+ <optional>
909
+ <ref name="back"/>
910
+ </optional>
911
+ <optional>
912
+ <ref name="floats-group"/>
913
+ </optional>
914
+ <choice>
915
+ <zeroOrMore>
916
+ <ref name="sub-article"/>
917
+ </zeroOrMore>
918
+ <zeroOrMore>
919
+ <ref name="response"/>
920
+ </zeroOrMore>
921
+ </choice>
922
+ </define>
923
+ <!-- ARTICLE -->
924
+ <!--
925
+ The complete content of a journal article.
926
+ Details at:
927
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=article
928
+ -->
929
+ <define name="article">
930
+ <element name="article">
931
+ <ref name="article-attlist"/>
932
+ <ref name="article-full-model"/>
933
+ </element>
934
+ </define>
935
+ <define name="article-attlist" combine="interleave">
936
+ <ref name="article-atts"/>
937
+ </define>
938
+ <!-- ============================================================= -->
939
+ <!-- FRONT MATTER ELEMENTS -->
940
+ <!-- ============================================================= -->
941
+ <!-- FRONT MATTER MODEL -->
942
+ <!--
943
+ Model for the <front> matter (the header
944
+ metadata) of a journal article)
945
+ -->
946
+ <define name="front-model">
947
+ <optional>
948
+ <ref name="journal-meta"/>
949
+ </optional>
950
+ <ref name="article-meta"/>
951
+ <zeroOrMore>
952
+ <choice>
953
+ <ref name="list.class"/>
954
+ <ref name="front.class"/>
955
+ <ref name="front-back.class"/>
956
+ </choice>
957
+ </zeroOrMore>
958
+ </define>
959
+ <!-- FRONT MATTER -->
960
+ <!--
961
+ The metadata concerning an article, such as
962
+ the name and issue of the journal in which it
963
+ appears and the name and author(s) of the
964
+ article.
965
+ Details at:
966
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=front
967
+ -->
968
+ <define name="front">
969
+ <element name="front">
970
+ <ref name="front-attlist"/>
971
+ <ref name="front-model"/>
972
+ </element>
973
+ </define>
974
+ <define name="front-attlist" combine="interleave">
975
+ <ref name="front-atts"/>
976
+ </define>
977
+ <!-- ============================================================= -->
978
+ <!-- BODY ELEMENTS -->
979
+ <!-- ============================================================= -->
980
+ <!-- BODY MODEL -->
981
+ <!--
982
+ Content model for the Body (main textual
983
+ content) of a journal article.
984
+ -->
985
+ <define name="body-model">
986
+ <zeroOrMore>
987
+ <ref name="para-level"/>
988
+ </zeroOrMore>
989
+ <zeroOrMore>
990
+ <ref name="sec-level"/>
991
+ </zeroOrMore>
992
+ <optional>
993
+ <ref name="sig-block"/>
994
+ </optional>
995
+ </define>
996
+ <!-- BODY OF THE ARTICLE -->
997
+ <!--
998
+ The main textual portion of the article that
999
+ conveys the content.
1000
+ Details at:
1001
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=body
1002
+ -->
1003
+ <define name="body">
1004
+ <element name="body">
1005
+ <ref name="body-attlist"/>
1006
+ <ref name="body-model"/>
1007
+ </element>
1008
+ </define>
1009
+ <define name="body-attlist" combine="interleave">
1010
+ <ref name="body-atts"/>
1011
+ </define>
1012
+ <!-- ============================================================= -->
1013
+ <!-- BACK MATTER ELEMENTS -->
1014
+ <!-- ============================================================= -->
1015
+ <!-- BACK MATTER MODEL -->
1016
+ <!--
1017
+ Content model for the Back Matter (ancillary
1018
+ material such as appendices) of a journal
1019
+ article.
1020
+ -->
1021
+ <define name="back-model">
1022
+ <optional>
1023
+ <ref name="label"/>
1024
+ </optional>
1025
+ <zeroOrMore>
1026
+ <ref name="title"/>
1027
+ </zeroOrMore>
1028
+ <zeroOrMore>
1029
+ <ref name="doc-back-matter-mix"/>
1030
+ </zeroOrMore>
1031
+ </define>
1032
+ <!-- BACK MATTER -->
1033
+ <!--
1034
+ Ancillary or supporting material not included
1035
+ as part of the main textual content of a
1036
+ journal article, for example appendices and
1037
+ acknowledgments.
1038
+ Details at:
1039
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=back
1040
+ -->
1041
+ <define name="back">
1042
+ <element name="back">
1043
+ <ref name="back-attlist"/>
1044
+ <ref name="back-model"/>
1045
+ </element>
1046
+ </define>
1047
+ <define name="back-attlist" combine="interleave">
1048
+ <ref name="back-atts"/>
1049
+ </define>
1050
+ <!-- ============================================================= -->
1051
+ <!-- SUB-ARTICLE -->
1052
+ <!-- ============================================================= -->
1053
+ <!-- SUB-ARTICLE MODEL -->
1054
+ <!-- Content model for the <sub-article> element -->
1055
+ <define name="sub-article-model">
1056
+ <optional>
1057
+ <ref name="processing-meta"/>
1058
+ </optional>
1059
+ <choice>
1060
+ <ref name="front"/>
1061
+ <ref name="front-stub"/>
1062
+ </choice>
1063
+ <optional>
1064
+ <ref name="body"/>
1065
+ </optional>
1066
+ <optional>
1067
+ <ref name="back"/>
1068
+ </optional>
1069
+ <optional>
1070
+ <ref name="floats-group"/>
1071
+ </optional>
1072
+ <choice>
1073
+ <zeroOrMore>
1074
+ <ref name="sub-article"/>
1075
+ </zeroOrMore>
1076
+ <zeroOrMore>
1077
+ <ref name="response"/>
1078
+ </zeroOrMore>
1079
+ </choice>
1080
+ </define>
1081
+ <!-- SUB-ARTICLE -->
1082
+ <!--
1083
+ An article that is completely contained
1084
+ inside another article. Both the article and
1085
+ the sub-article have their own metadata.
1086
+ Details at:
1087
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=sub-article
1088
+ -->
1089
+ <define name="sub-article">
1090
+ <element name="sub-article">
1091
+ <ref name="sub-article-attlist"/>
1092
+ <ref name="sub-article-model"/>
1093
+ </element>
1094
+ </define>
1095
+ <define name="sub-article-attlist" combine="interleave">
1096
+ <ref name="sub-article-atts"/>
1097
+ </define>
1098
+ <!-- FRONT MODEL STUB -->
1099
+ <!--
1100
+ Content model for the <front-stub> element,
1101
+ a reduced metadata set for use in
1102
+ sub-articles and responses.
1103
+ -->
1104
+ <define name="front-stub-model">
1105
+ <zeroOrMore>
1106
+ <ref name="article-id"/>
1107
+ </zeroOrMore>
1108
+ <optional>
1109
+ <ref name="article-version.class"/>
1110
+ </optional>
1111
+ <optional>
1112
+ <ref name="article-categories"/>
1113
+ </optional>
1114
+ <optional>
1115
+ <ref name="title-group"/>
1116
+ </optional>
1117
+ <zeroOrMore>
1118
+ <choice>
1119
+ <ref name="contrib-group.class"/>
1120
+ <ref name="aff-alternatives.class"/>
1121
+ <ref name="x.class"/>
1122
+ </choice>
1123
+ </zeroOrMore>
1124
+ <optional>
1125
+ <ref name="author-notes"/>
1126
+ </optional>
1127
+ <choice>
1128
+ <zeroOrMore>
1129
+ <ref name="pub-date.class"/>
1130
+ </zeroOrMore>
1131
+ <optional>
1132
+ <ref name="pub-date-not-available"/>
1133
+ </optional>
1134
+ </choice>
1135
+ <zeroOrMore>
1136
+ <ref name="volume"/>
1137
+ </zeroOrMore>
1138
+ <zeroOrMore>
1139
+ <ref name="volume-id"/>
1140
+ </zeroOrMore>
1141
+ <optional>
1142
+ <ref name="volume-series"/>
1143
+ </optional>
1144
+ <zeroOrMore>
1145
+ <ref name="issue"/>
1146
+ </zeroOrMore>
1147
+ <zeroOrMore>
1148
+ <ref name="issue-id"/>
1149
+ </zeroOrMore>
1150
+ <zeroOrMore>
1151
+ <ref name="issue-title"/>
1152
+ </zeroOrMore>
1153
+ <zeroOrMore>
1154
+ <ref name="issue-title-group"/>
1155
+ </zeroOrMore>
1156
+ <zeroOrMore>
1157
+ <ref name="issue-sponsor"/>
1158
+ </zeroOrMore>
1159
+ <optional>
1160
+ <ref name="issue-part"/>
1161
+ </optional>
1162
+ <zeroOrMore>
1163
+ <ref name="volume-issue-group"/>
1164
+ </zeroOrMore>
1165
+ <zeroOrMore>
1166
+ <ref name="isbn"/>
1167
+ </zeroOrMore>
1168
+ <optional>
1169
+ <ref name="supplement"/>
1170
+ </optional>
1171
+ <optional>
1172
+ <choice>
1173
+ <group>
1174
+ <optional>
1175
+ <ref name="fpage"/>
1176
+ <optional>
1177
+ <ref name="lpage"/>
1178
+ </optional>
1179
+ </optional>
1180
+ <optional>
1181
+ <ref name="page-range"/>
1182
+ </optional>
1183
+ </group>
1184
+ <ref name="elocation-id"/>
1185
+ </choice>
1186
+ </optional>
1187
+ <zeroOrMore>
1188
+ <choice>
1189
+ <ref name="address-link.class"/>
1190
+ <ref name="product"/>
1191
+ <ref name="supplementary-material"/>
1192
+ </choice>
1193
+ </zeroOrMore>
1194
+ <optional>
1195
+ <ref name="history"/>
1196
+ </optional>
1197
+ <optional>
1198
+ <ref name="pub-history"/>
1199
+ </optional>
1200
+ <optional>
1201
+ <ref name="permissions"/>
1202
+ </optional>
1203
+ <zeroOrMore>
1204
+ <ref name="self-uri"/>
1205
+ </zeroOrMore>
1206
+ <zeroOrMore>
1207
+ <ref name="related-article.class"/>
1208
+ </zeroOrMore>
1209
+ <zeroOrMore>
1210
+ <ref name="abstract.class"/>
1211
+ </zeroOrMore>
1212
+ <zeroOrMore>
1213
+ <ref name="trans-abstract"/>
1214
+ </zeroOrMore>
1215
+ <zeroOrMore>
1216
+ <ref name="kwd-group.class"/>
1217
+ </zeroOrMore>
1218
+ <zeroOrMore>
1219
+ <ref name="funding-group"/>
1220
+ </zeroOrMore>
1221
+ <zeroOrMore>
1222
+ <ref name="support-group"/>
1223
+ </zeroOrMore>
1224
+ <zeroOrMore>
1225
+ <ref name="conference"/>
1226
+ </zeroOrMore>
1227
+ <optional>
1228
+ <ref name="counts"/>
1229
+ </optional>
1230
+ <optional>
1231
+ <ref name="custom-meta-group"/>
1232
+ </optional>
1233
+ </define>
1234
+ <!-- STUB FRONT METADATA -->
1235
+ <!--
1236
+ A reduced metadata set for use in
1237
+ sub-articles and responses, which will
1238
+ inherit metadata not defined in the stub
1239
+ from the enclosing article
1240
+ Details at:
1241
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=front-stub
1242
+ -->
1243
+ <define name="front-stub">
1244
+ <element name="front-stub">
1245
+ <ref name="front-stub-attlist"/>
1246
+ <ref name="front-stub-model"/>
1247
+ </element>
1248
+ </define>
1249
+ <define name="front-stub-attlist" combine="interleave">
1250
+ <ref name="front-stub-atts"/>
1251
+ </define>
1252
+ <!-- ============================================================= -->
1253
+ <!-- RESPONSE ELEMENTS -->
1254
+ <!-- ============================================================= -->
1255
+ <!-- RESPONSE -->
1256
+ <!--
1257
+ Reply, response, or commentary concerning the
1258
+ journal article.
1259
+ Details at:
1260
+ http://jats.nlm.nih.gov/archiving/tag-library/1.3/index.html?elem=response
1261
+ -->
1262
+ <define name="response">
1263
+ <element name="response">
1264
+ <ref name="response-attlist"/>
1265
+ <ref name="article-short-model"/>
1266
+ </element>
1267
+ </define>
1268
+ <define name="response-attlist" combine="interleave">
1269
+ <ref name="response-atts"/>
1270
+ </define>
1271
+ <start>
1272
+ <choice>
1273
+ <ref name="article"/>
1274
+ </choice>
1275
+ </start>
1276
+ </grammar>
1277
+ <!-- ================== End Journal Archiving and Interchange DTD -->