@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,614 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ============================================================= -->
3
+ <!-- MODULE: XHTML Table Setup Module -->
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 XHTML Table Setup Module v1.3 20210610//EN"
13
+ Delivered as file "JATS-XHTMLtablesetup1-3.ent"
14
+ -->
15
+ <!-- ============================================================= -->
16
+ <!-- ============================================================= -->
17
+ <!-- SYSTEM: JATS DTD Suite -->
18
+ <!---->
19
+ <!-- PURPOSE: Provides the organization for using the XHTML 1.1 -->
20
+ <!-- table model -->
21
+ <!---->
22
+ <!-- CONTAINS: 1) Invokes the inline style attribute module -->
23
+ <!-- to pick up the "style" attribute -->
24
+ <!-- 2) Overrides to standard parameter entities used -->
25
+ <!-- in the XHTML 1.1 table model -->
26
+ <!-- 3) Invokes the XHTML 1.1 table model -->
27
+ <!---->
28
+ <!-- MODULES REQUIRED: -->
29
+ <!-- 1) XHTML inline style module -->
30
+ <!-- (-%xhtml-inlstyle-1.mod;) -->
31
+ <!-- 2) XHTML 1.1 table model (-%xhtml-table-1.mod;) -->
32
+ <!---->
33
+ <!-- TAG SET SPONSOR -->
34
+ <!-- National Center for Biotechnology -->
35
+ <!-- Information (NCBI) -->
36
+ <!-- National Library of Medicine (NLM) -->
37
+ <!---->
38
+ <!-- CREATED FOR: -->
39
+ <!-- This module was created for the JATS DTD Suite. -->
40
+ <!-- Digital archives and publishers may use the -->
41
+ <!-- DTD as is for markup of journal literature or -->
42
+ <!-- related material for archiving and transferring -->
43
+ <!-- such material between archives or create a -->
44
+ <!-- custom XML DTD from the Suite for -->
45
+ <!-- these purposes. -->
46
+ <!---->
47
+ <!-- This DTD is in the public domain. An organization -->
48
+ <!-- that wishes to create its own DTD from the suite -->
49
+ <!-- may do so without permission from NLM. -->
50
+ <!---->
51
+ <!-- The suite has been set up to be extended using a -->
52
+ <!-- new DTD file and a new DTD-specific customization -->
53
+ <!-- module to redefine the many Parameter Entities. -->
54
+ <!-- Do not modify the suite directly or redistribute -->
55
+ <!-- modified versions of the suite. -->
56
+ <!---->
57
+ <!-- In the interest of maintaining consistency and -->
58
+ <!-- clarity for potential users, NLM requests: -->
59
+ <!---->
60
+ <!-- 1. If you create a DTD from the JATS DTD Suite -->
61
+ <!-- and intend to stay compatible with the suite, -->
62
+ <!-- then please include the following statement -->
63
+ <!-- as a comment in all of your DTD modules: -->
64
+ <!-- "Created from, and fully compatible with, -->
65
+ <!-- the ANSI/NISO Z39.96 Journal Article Tag -->
66
+ <!-- Suite (JATS)." -->
67
+ <!---->
68
+ <!-- 2. If you alter one or more modules of the suite, -->
69
+ <!-- then please rename your version and all its -->
70
+ <!-- modules to avoid any confusion with the -->
71
+ <!-- original suite. Also, please include the -->
72
+ <!-- following statement as a comment in all your -->
73
+ <!-- DTD modules: -->
74
+ <!-- "Based in part on, but not fully compatible -->
75
+ <!-- with, the ANSI/NISO Z39.96 Journal Article -->
76
+ <!-- Tag Suite (JATS)." -->
77
+ <!---->
78
+ <!-- ORIGINAL CREATION DATE: -->
79
+ <!-- December 2002 -->
80
+ <!---->
81
+ <!-- CREATED BY: Mulberry Technologies, Inc. for the NISO Z39.96 -->
82
+ <!-- Working Group. Mulberry Technologies was -->
83
+ <!-- supported by National Center for Biotechnology -->
84
+ <!-- Information (NCBI), a center of the US National -->
85
+ <!-- Library of Medicine (NLM). -->
86
+ <!---->
87
+ <!-- This module is part of the JATS DTD Suite. The -->
88
+ <!-- Suite is a continuation of work done by NCBI, -->
89
+ <!-- Mulberry Technologies, and Inera Inc. on the NLM -->
90
+ <!-- Journal Archiving and Interchange DTD Suite, which -->
91
+ <!-- was originally released in December, 2002. -->
92
+ <!---->
93
+ <!-- NLM thanks the Harvard University Libraries, both -->
94
+ <!-- for proposing that a draft archiving NLM DTD for -->
95
+ <!-- life sciences journals be extended to accommodate -->
96
+ <!-- journals in all disciplines and for sponsoring -->
97
+ <!-- Inera Inc.'s collaboration with other DTD -->
98
+ <!-- authors in completing NLM Version 1.0. The -->
99
+ <!-- Andrew W. Mellon Foundation provided support for -->
100
+ <!-- these important contributions. -->
101
+ <!---->
102
+ <!-- Suggestions for refinements and enhancements to -->
103
+ <!-- this DTD should be sent in email to: -->
104
+ <!-- jats@ncbi.nlm.nih.gov -->
105
+ <!-- ============================================================= -->
106
+ <!-- ============================================================= -->
107
+ <!-- DTD VERSION/CHANGE HISTORY -->
108
+ <!-- ============================================================= -->
109
+ <!--
110
+ Version Reason/Occasion (who) vx.x (yyyy-mm-dd)
111
+ ==============================================================
112
+ JATS Version 1.3 (ANSI/NISO Z39.96-2021)
113
+ (DAL/BTU) v1.3 (2021-06-10)
114
+
115
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
116
+ which requires voting by both the NISO and ANSI memberships
117
+ to be changed. This version of the NISO JATS was approved
118
+ by ANSI vote on June 10, 2021, so it supersedes all Committee
119
+ Drafts as well as the draft version JATS 1.3 2021 (the version
120
+ submitted for vote), becoming NISO JATS v1.3 20210610
121
+ (ANSI/NISO Z39.96-2019).
122
+
123
+ The file names and formal public identifiers have been
124
+ changed in the modules and the catalogs.
125
+
126
+ 23. JATS 'v1.3d2 20201130' becomes 'v1.3 20210610'
127
+ (final ANSI vote date)
128
+ 'ANSI/NISO Z39.96-2019' becomes 'ANSI/NISO Z39.96-2021'
129
+
130
+ ==============================================================
131
+ JATS Version 1.3d2 (ANSI/NISO Z39.96-2021)
132
+ (DAL/BTU) v1.3d2 (2020-11-30)
133
+
134
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
135
+ which requires voting by the NISO and ANSI memberships
136
+ to be changed.
137
+
138
+ This draft DTD represents an interim version of the
139
+ non-normative JATS DTD Suite, as an indication to JATS users
140
+ of the decisions that have been made by the JATS Standing
141
+ Committee. This draft has not yet been given public review
142
+ or voting; it is for Standing Committee review and
143
+ testing. The formal public identifiers have been changed
144
+ in the modules and the catalogs.
145
+
146
+ 22. JATS "v1.3d2 20201130" becomes 'v1.3 20210610' (second
147
+ committee draft following the final ANSI/NISO 1.2 vote)
148
+
149
+ ==============================================================
150
+ JATS Version 1.3d1 (ANSI/NISO Z39.96-2021)
151
+ (DAL/BTU) v1.3.d1 (2019-08-31)
152
+
153
+ ANSI NISO JATS is a continuing maintenance NISO Standard,
154
+ which requires voting by the NISO and ANSI memberships
155
+ to be changed.
156
+
157
+ This draft DTD represents an interim version of the
158
+ non-normative JATS DTD Suite, as an indication to JATS users
159
+ of the decisions that have been made by the JATS Standing
160
+ Committee. This draft has not yet been given public review
161
+ or voting. The formal public identifiers were changed in the
162
+ modules and the catalogs.
163
+
164
+ 21. JATS "1.2" becomes "v1.3d1 20190831" (first committee
165
+ draft following the final ANSI/NISO vote)
166
+
167
+ ==============================================================
168
+ JATS Version 1.2 (ANSI/NISO Z39.96-2021)
169
+ (DAL/BTU) v1.2 (2019-02-08)
170
+
171
+ NISO JATS is a continuing maintenance NISO Standard, which
172
+ requires voting by the both the NISO and ANSI membership
173
+ to be changed. This version of the NISO JATS was approved
174
+ by ANSI vote on Feb 08, 2019, so it supersedes all Committee
175
+ Drafts as well as the draft version JATS 1.2 2018 (the version
176
+ submitted for vote), becoming NISO JATS v1.2 20190208
177
+ (ANSI/NISO Z39.96-2021).
178
+
179
+ 20. JATS "1.2" becomes "v1.2 20190208" (final ANSI vote date)
180
+ "ANSI/NISO Z39.96-2015" becomes "ANSI/NISO Z39.96-2019"
181
+
182
+ ==============================================================
183
+ JATS Version 1.2 (ANSI/NISO Z39.96-2018)
184
+ (DAL/BTU) v1.2 (2018-11-30)
185
+
186
+ NISO JATS is a continuing maintenance NISO Standard, which
187
+ requires voting by the both the NISO and ANSI membership
188
+ to be changed. This version of the NISO JATS was approved
189
+ by ANSI and NISO vote, so it supersedes all Committee Drafts
190
+ and becoming NISO JATS 1.2 (ANSI/NISO Z39.96-2018).
191
+
192
+ 19. JATS "1.2d2" and "v1.2d2 20180401" became
193
+ JATS "1.2" and "v1.2 20181130"
194
+
195
+ =============================================================
196
+ JATS Version 1.2d2 (DAL/BTU) v1.2d2 (2018-04-01)
197
+
198
+ JATS is a continuing maintenance NISO Standard, which
199
+ requires voting by the ANSI and NISO memberships to be changed.
200
+ BITS is under continuous maintenance, and is modified at the
201
+ discretion of the working group.
202
+
203
+ This draft DTD represents an interim version of the
204
+ non-normative JATS DTD Suite, as an indication to JATS users
205
+ the decisions that have been made by the JATS Standing
206
+ Committee. This draft has not yet been given public review
207
+ or voting. The formal public identifiers were changed in the
208
+ modules and the catalogs.
209
+
210
+ 18. BITS remains "2.0" and "v2.0 20151225"
211
+
212
+ JATS "1.2d1" and "v1.2d1 20171231" became
213
+ JATS "1.2d2" and "v1.2d2 20180401".
214
+
215
+ No module names were changed.
216
+
217
+ =============================================================
218
+ JATS Version 1.2d1 (ANSI/NISO Z39.96-2015)
219
+ (DAL/BTU) v1.2d1 (2017-12-31)
220
+
221
+ NISO JATS is a continuing maintenance NISO Standard, which
222
+ requires voting by the ANSI and NISO memberships to be changed.
223
+
224
+ This draft DTD represents an interim version of the
225
+ non-normative JATS DTD Suite, as an indication to JATS users
226
+ the decisions that have been made by the JATS Standing
227
+ Committee. This draft has not yet been given public review
228
+ or voting. The formal public identifiers were changed in the
229
+ modules and the catalogs.
230
+
231
+ 17. JATS "1.2d1" and "v1.2d1 20170631" became
232
+ JATS "1.2d1" and "v1.2d1 20171231".
233
+
234
+ =============================================================
235
+ JATS Version 1.2d1 (DAL/BTU) v1.2d1 (2017-06-31)
236
+
237
+ NISO JATS is a continuing maintenance NISO Standard, which
238
+ requires voting by the ANSI and NISO memberships to be changed.
239
+
240
+ This draft DTD represents an interim version of the
241
+ non-normative JATS DTD Suite, as an indication to JATS users
242
+ the decisions that have been made by the JATS Standing
243
+ Committee. This draft has not yet been given public review
244
+ or voting. The formal public identifiers were changed in the
245
+ modules and the catalogs.
246
+
247
+ 16. JATS became version "1.2d1" and "v1.2d1 20170631"
248
+
249
+ =============================================================
250
+ JATS Version 1.1 (DAL/BTU) v1.1 (2015-12-15)
251
+
252
+ JATS is a continuing maintenance NISO Standard, which
253
+ requires voting by the ANSI and NISO memberships to be changed.
254
+ JATS 1.1 was approved in late 2015, so the formal public
255
+ identifiers were changed in the modules and the catalogs.
256
+ No model or attribute changes were made at this time.
257
+
258
+ 15. JATS became version "1.1" and "v1.1 20151215"
259
+ BITS remained version "2.0" but becomes "v2.0 20151225"
260
+
261
+ =============================================================
262
+ JATS Version 1.1d3 (DAL/BTU) v1.1d3 (2015-03-01)
263
+
264
+ The changes in this release are in response to NISO
265
+ License and Indicators Recommended Practice.
266
+
267
+ NISO JATS is a continuing maintenance NISO Standard, which
268
+ requires voting by the NISO membership to be changed. This
269
+ Committee Draft 1.1d3 will be sent to the NISO voting
270
+ membership, to become (if approved) NISO JATS 1.1.
271
+
272
+ This draft DTD represents an interim version of the
273
+ non-normative JATS DTD Suite, as an indication to JATS users
274
+ the decisions that have been made by the JATS Standing
275
+ Committee.
276
+
277
+ 14. JATS became version "1.1d3" and "v1.1d3 20150301"
278
+
279
+ =============================================================
280
+ JATS Version 1.1d2 (DAL/BTU) v1.1d2 (2014-09-30)
281
+
282
+ NISO JATS is a continuing maintenance NISO Standard, which
283
+ requires voting by the NISO membership to be changed. This
284
+ Committee Draft 1.1d2 will be sent to the NISO voting
285
+ membership, to become (if approved) NISO JATS 1.1.
286
+
287
+ This catalog represents an interim version of the
288
+ non-normative JATS DTD Suite, as an indication to JATS users
289
+ the decisions that have been made by the JATS Standing
290
+ Committee.
291
+
292
+ 13. TABLE ATTRIBUTES
293
+ - Added @specific-use to the attributes for <table>,
294
+ primarily for use when <table> is used inside <alternatives>.
295
+ - This entailed creating a new PE "additional-table-atts",
296
+ which is defined and called AFTER the full table setup,
297
+ so that XML tools that do not recognize a 2nd ATTLIST for
298
+ an element will lose only the @specific-use. This new PE
299
+ could also be sued to add other attributes to an XHTML-
300
+ inspired <table>.
301
+
302
+ 12. JATS became version "1.1d2" and "v1.1d2 20140930//EN"
303
+
304
+ =============================================================
305
+ NISO JATS Version 1.1d1 (DAL/BTU) v1.1 (2013-11-15)
306
+
307
+ ANSI/NISO Z39.96-2012 (pre-release for V1.0 BITS; Version 1.1d1)
308
+
309
+ NISO JATS Standing Committee met and answered the requests and
310
+ suggestions from the NISO request forms.
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.1d2/
315
+
316
+ 11. CAPTION ATTRIBUTES - This module has been changed to alter
317
+ the mechanism by which the @style attribute is associated
318
+ with the element <caption>.
319
+ Previously, the <caption> element's base attributes
320
+ were declared in the JATS-display.ent module and additional
321
+ attributes (in the published XHTML, only @style) for it
322
+ were declared in the XHTML Table Module. The @style
323
+ attribute is now declared with all the other <caption>
324
+ attributes in the JATS-display.ent module, and the caption
325
+ attributes in the XHTML table model have been set to IGNORE.
326
+ This was done to prevent duplicate (harmless but annoying)
327
+ attribute warning messages.
328
+
329
+ CAUTION: If your XHTML customization has added attributes
330
+ by redefining the parameter entity
331
+ "Core.extra.attrib"
332
+ you will need to uncomment the lines in this
333
+ module that add that parameter entity to the
334
+ contents of the <caption> attribute list.
335
+ Otherwise, your new attributes will not be
336
+ added to <caption>. When you uncomment this
337
+ line, you will get a duplicative attribute
338
+ warning message on the @style attribute,
339
+ which you may ignore.
340
+
341
+ 10. GLOBAL ATTRIBUTES - Added the new parameter entity
342
+ %jats-common-atts;
343
+ to every element in this module. This PE adds (for now) the
344
+ @id attribute and the @xml:base attribute to every element,
345
+ whether metadata or narrative.
346
+ Since the @id in this parameter entity is optional, a second
347
+ parameter entity jats-common-atts-id-required was also added.
348
+ The two are kept in sync with the jats-base-atts parameter
349
+ entity.
350
+ This added an attribute list to the parameter entity
351
+ "Common.attrib".
352
+
353
+ =============================================================
354
+ NISO JATS Version 1.0 (DAL/BTU) v1.0 (2012-xx-xx)
355
+
356
+ ANSI/NISO Z39.96-2012 (Version 1.0)
357
+
358
+ Details concerning ANSI/NISO Z39.96-2012 JATS-based DTDs,
359
+ XSDs, RNGs and supporting documentation are available at
360
+ http://jats.nlm.nih.gov/1.3d2/
361
+
362
+ 5. OASIS NAMESPACE - Added the OASIS table namespace handling,
363
+ which, by default, places a namespace prefix of "oasis" on
364
+ the OASIS CALS Exchange Table Model.
365
+ - Added call to JATS-oasis-namespace.ent (which sets up
366
+ the OASIS namespace URI and the prefix "oasis")
367
+ - Added %oasis.xmlns.attrib; attribute to <article>
368
+ - Altered the custom classes module to use the new
369
+ namespaced OASIS element names for <table> and <tbody>
370
+ (%otable.qname; and %otbody.qname;)
371
+ NOTE: The XHTML table material was not removed, so both table
372
+ models still work (using <table> and <oasis:table> respectively.
373
+
374
+ 4. Updated the DTD-version attribute to "1.0" and the formal
375
+ public identifier to the date: "v1.0 20120330//EN".
376
+
377
+ =============================================================
378
+ Version 0.4 (DAL/BTU) v0.4 (2011-01-31)
379
+
380
+ This Tag Set is in the process of becoming a NISO standard.
381
+ The version numbers are starting over from 0.4", as a Trial
382
+ Use Draft, to be made into "Version 1.0" when the Tag Suite
383
+ becomes a NISO standard. Thus, the version number that would
384
+ have been "NLM Version 3.1 Draft" has become NISO JATS
385
+ "Version 0.4".
386
+
387
+ Details on NISO Trial Use Draft Version 0.4 are available at
388
+ http://jats.nlm.nih.gov/JATS-0.4.
389
+
390
+ 3. Updated the DTD-version attribute to "0.4"
391
+
392
+ 2. Updated the public identifier to "v0.4 20110131",
393
+ modified the formal public identifier to include "JATS (Z39.96)",
394
+ and the filename as delivered to include "JATS" and the
395
+ new version number "0".
396
+
397
+ =============================================================
398
+ Version 3.0 (DAL/BTU) v3.0 (2007-10-31)
399
+
400
+ Version 3.0 is the first non-backward-compatible release.
401
+ In addition to the usual incremental changes, some
402
+ elements and attributes have been renamed and/or remodeled
403
+ to better meet user needs and to increase tag set consistency.
404
+ All module change histories are available through the Tag Suite
405
+ web site at http://dtd.nlm.nih.gov.
406
+
407
+ Details on version 3.0 are available at
408
+ http://dtd.nlm.nih.gov/3.0.
409
+
410
+ 1. Updated public identifier to "v3.0 20071031//EN"
411
+ -->
412
+ <!-- ============================================================= -->
413
+ <!--
414
+ Details concerning
415
+ ANSI/NISO Z39.96-2015 JATS-based DTDs, XSDs,
416
+ RNGs and supporting documentation are available at
417
+ http://jats.nlm.nih.gov/1.1/
418
+ -->
419
+ <!-- ============================================================= -->
420
+ <!-- SET UP FOR THE XHTML 1.1 TABLE MODULE -->
421
+ <!-- ============================================================= -->
422
+ <!-- ============================================================= -->
423
+ <!-- THE XHTML TABLE STYLE ATTRIBUTE MODULE -->
424
+ <!-- ============================================================= -->
425
+ <!-- XHTML TABLE INLINE STYLE MODULE -->
426
+ <!--
427
+ This module declares the 'style' attribute,
428
+ used to support inline style markup for the
429
+ <td> and <tr> elements. Copyright 1998-2005
430
+ W3C (MIT, ERCIM, Keio), All Rights Reserved.
431
+ Revision: $Id: xhtml-inlstyle-1.mod,v 4.0
432
+ 2001/04/02 22:42:49 altheim Exp $
433
+ PUBLIC identifier
434
+ "-//W3C//ENTITIES XHTML Inline Style 1.0//EN"
435
+ SYSTEM identifier
436
+ "http://www.w3.org/MarkUp/DTD/xhtml-inlstyle-1.mod"
437
+ -->
438
+ <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="">
439
+ <include href="xhtml-inlstyle-1.mod.rng"/>
440
+ <!-- ============================================================= -->
441
+ <!-- DEFAULTS FOR TABLE ELEMENT NAMES -->
442
+ <!-- ============================================================= -->
443
+ <define name="caption.qname">
444
+ <ref name="caption"/>
445
+ </define>
446
+ <!-- ============================================================= -->
447
+ <!-- DEFAULTS FOR DATATYPE PARAMETER ENTITIES -->
448
+ <!-- ============================================================= -->
449
+ <define name="Text.datatype">
450
+ <data type="string"/>
451
+ </define>
452
+ <define name="Number.datatype">
453
+ <data type="string"/>
454
+ </define>
455
+ <define name="MultiLength.datatype">
456
+ <data type="string"/>
457
+ </define>
458
+ <define name="Length.datatype">
459
+ <data type="string"/>
460
+ </define>
461
+ <define name="Pixels.datatype">
462
+ <data type="string"/>
463
+ </define>
464
+ <define name="Character.datatype">
465
+ <data type="string"/>
466
+ </define>
467
+ <!-- ============================================================= -->
468
+ <!-- DEFAULTS FOR ATTRIBUTE PARAMETER ENTITIES -->
469
+ <!-- ============================================================= -->
470
+ <!-- COMMON ATTRIBUTES (used all over) -->
471
+ <!--
472
+ style Defined in the PE -%Core.extra.attrib; and
473
+ used to support inline style markup. This
474
+ attribute is defined in the XHTML Table
475
+ Inline Style Module called in with the PE:
476
+ -%xhtml-inlstyle-1.mod
477
+ which must be invoked before the attribute
478
+ PE is used.
479
+ Warning: The definitions below will lead to
480
+ the element <caption> having the attributes
481
+ @id and @content-type defined twice. This is
482
+ just a validity warning, not an error and
483
+ should be ignored.
484
+ -->
485
+ <define name="Common.attrib">
486
+ <ref name="jats-common-atts"/>
487
+ <optional>
488
+ <attribute name="content-type"/>
489
+ </optional>
490
+ <ref name="Core.extra.attrib"/>
491
+ </define>
492
+ <!-- ============================================================= -->
493
+ <!-- OVER-RIDES TO REMOVE CAPTION -->
494
+ <!-- ============================================================= -->
495
+ <!-- CAPTION FOR A TABLE -->
496
+ <!--
497
+ Modification of the standard XHMTL model
498
+ Removed the definition of caption, so the
499
+ element would not be multiply defined
500
+ -->
501
+ <!-- CAPTION ATTRIBUTES -->
502
+ <!-- Attributes for <caption> element -->
503
+ <!--
504
+ In the lines directly above this declaration,
505
+ the attribute list for caption, as defined
506
+ in the XHTML Table Model, has been removed
507
+ using the IGNORE mechanism. This was done
508
+ to prevent duplicate (harmless but annoying)
509
+ attribute warning messages.
510
+
511
+ CAUTION: If your XHTML customization has
512
+ redefined the parameter entity
513
+ "Core.extra.attrib"
514
+ you will need to uncomment the lines
515
+ below. You will get a duplicative attribute
516
+ warning message on the @style attribute,
517
+ which you may ignore.
518
+ -->
519
+ <!--
520
+ <!ENTITY % caption-atts
521
+ "%Core.extra.attrib; >
522
+ -->
523
+ <!-- ============================================================= -->
524
+ <!-- OVER-RIDES FOR CONTENT PARAMETER ENTITIES -->
525
+ <!-- ============================================================= -->
526
+ <!-- INLINE ELEMENTS -->
527
+ <!--
528
+ Modification of the standard XHMTL model
529
+ for inline elements used in the <caption>
530
+ Set to the null because the <caption>
531
+ element is now inside the table wrapper,
532
+ not inside the table, as the original XHTML
533
+ table intended
534
+ -->
535
+ <!-- CONTENTS OF A TABLE CELL -->
536
+ <!--
537
+ Modification of the standard XHMTL model
538
+ used for the content of tables cells <th>
539
+ and <td>
540
+ -->
541
+ <define name="Flow.mix">
542
+ <ref name="inside-cell"/>
543
+ </define>
544
+ <!-- CONTENTS OF A TABLE -->
545
+ <!--
546
+ Modification of the standard XHMTL model
547
+ This has been modified from the XHTML model
548
+ to remove the <caption> element from the
549
+ <table> model, since in the JATS DTD Suite
550
+ modular library, the <caption> element is part
551
+ of the Table Wrapper <table-wrap> element.
552
+ No other changes were made to the XHTML table
553
+ content model.
554
+ -->
555
+ <define name="table.content">
556
+ <choice>
557
+ <zeroOrMore>
558
+ <ref name="col"/>
559
+ </zeroOrMore>
560
+ <zeroOrMore>
561
+ <ref name="colgroup"/>
562
+ </zeroOrMore>
563
+ </choice>
564
+ <choice>
565
+ <group>
566
+ <optional>
567
+ <ref name="thead"/>
568
+ </optional>
569
+ <optional>
570
+ <ref name="tfoot"/>
571
+ </optional>
572
+ <oneOrMore>
573
+ <ref name="tbody"/>
574
+ </oneOrMore>
575
+ </group>
576
+ <oneOrMore>
577
+ <ref name="tr"/>
578
+ </oneOrMore>
579
+ </choice>
580
+ </define>
581
+ <!-- ============================================================= -->
582
+ <!-- THE XHTML V1.1 TABLE INVOCATION -->
583
+ <!-- ============================================================= -->
584
+ <!-- XHTML TABLE MODEL -->
585
+ <!--
586
+ This module declares element types and
587
+ attributes used to provide table markup
588
+ similar to HTML 4, including features that
589
+ enable better accessibility for non-visual
590
+ user agents. This is the XHTML reformulation
591
+ of HTML as a modular XML application.
592
+ Copyright 1998-2005 W3C (MIT, ERCIM, Keio),
593
+ All Rights Reserved.
594
+ Revision: $Id: xhtml-table-1.mod,v 4.1
595
+ 2001/04/10 09:42:30 altheim Exp $ SMI
596
+ PUBLIC identifier
597
+ "-//W3C//ELEMENTS XHTML Tables 1.0//EN"
598
+ SYSTEM identifier:
599
+ "http://www.w3.org/MarkUp/DTD/xhtml-table-1.mod"
600
+ -->
601
+ <include href="xhtml-table-1.mod.rng"/>
602
+ <!-- ============================================================= -->
603
+ <!-- ADDITIONAL ATTRIBUTE(S) FOR TABLE -->
604
+ <!-- ============================================================= -->
605
+ <define name="additional-table-atts">
606
+ <optional>
607
+ <attribute name="specific-use"/>
608
+ </optional>
609
+ </define>
610
+ <define name="table-attlist" combine="interleave">
611
+ <ref name="additional-table-atts"/>
612
+ </define>
613
+ </grammar>
614
+ <!-- ================== End XHTML Table Setup Module ============= -->