pro-editor-schema 0.1.16 → 0.1.18

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.
package/dist/index.mjs CHANGED
@@ -5,7 +5,9 @@ var createSchema = ({
5
5
  tag,
6
6
  requiredAttributes,
7
7
  optionalAttributes,
8
- allowedChildTagNames
8
+ defaultChildTagName,
9
+ allowedChildTagNames,
10
+ canBeWrappedByInsertOrDelete
9
11
  }) => {
10
12
  return {
11
13
  code,
@@ -13,7 +15,9 @@ var createSchema = ({
13
15
  tag,
14
16
  requiredAttributes,
15
17
  optionalAttributes,
16
- allowedChildTagNames: new Set(allowedChildTagNames)
18
+ defaultChildTagName,
19
+ allowedChildTagNames: new Set(allowedChildTagNames),
20
+ canBeWrappedByInsertOrDelete
17
21
  };
18
22
  };
19
23
 
@@ -75,7 +79,17 @@ var COMMENT_TAG = "COMMENT";
75
79
  var QUERY_TAG = "QUERY";
76
80
  var CONTENT_TAG = "CONTENT";
77
81
  var REPLY_TAG = "REPLY";
82
+ var INDEXTERM_TAG = "INDEXTERM";
83
+ var PRIMARY_TAG = "PRIMARY";
84
+ var SECONDARY_TAG = "SECONDARY";
85
+ var TERTIARY_TAG = "TERTIARY";
86
+ var QUATERNARY_TAG = "QUATERNARY";
87
+ var BOOKMARK_TAG = "BOOKMARK";
88
+ var SEE_TAG = "SEE";
89
+
90
+ // src/schema/shared/allowedAtomsChildren.ts
78
91
  var ATOM_TAGS_ALLOWED_CHILDREN = [
92
+ { tagName: INDEXTERM_TAG, required: false },
79
93
  { tagName: B_TAG, required: false },
80
94
  { tagName: I_TAG, required: false },
81
95
  { tagName: U_TAG, required: false },
@@ -115,6 +129,8 @@ var FOOTNOTE_LINK_TAG = "FOOTNOTE1";
115
129
  var INLINEEQUATION_TAG = "INLINEEQUATION";
116
130
  var LINK_TAG = "LINK1";
117
131
  var URI_TAG = "URI";
132
+
133
+ // src/schema/shared/allowedInlineChildren.ts
118
134
  var INLINE_ELEMENT_TAGS_ALLOWED_CHILDREN = [
119
135
  { tagName: FOOTNOTE_LINK_TAG, required: false },
120
136
  { tagName: INLINEEQUATION_TAG, required: false },
@@ -320,26 +336,170 @@ var REPLY_SCHEMA = createSchema({
320
336
  allowedChildTagNames: [{ tagName: CONTENT_TAG, required: true }]
321
337
  });
322
338
 
323
- // src/schema/elementSchemas/atoms/index.ts
324
- var ATOM_SCHEMAS = [
325
- B_SCHEMA,
326
- I_SCHEMA,
327
- U_SCHEMA,
328
- SC_SCHEMA,
329
- EMPHASIS_SCHEMA,
330
- STRIKE_SCHEMA,
331
- SUB_SCHEMA,
332
- SUP_SCHEMA,
333
- HIGHLIGHTMARK_SCHEMA,
334
- COMMENT_QUERY_SECTION_SCHEMA,
335
- INSERTION_SCHEMA,
336
- DELETION_SCHEMA,
337
- CONTENT_SCHEMA,
338
- COMMENT_SCHEMA,
339
- QUERY_SCHEMA,
340
- REPLY_SCHEMA
339
+ // src/schema/elementSchemas/atoms/indexing/indexTermAttributes.ts
340
+ var INDEX_TERM_ENTRY_REQUIRED_ATTRIBUTES = [
341
+ "data-date",
342
+ "data-user",
343
+ "firstEntry",
344
+ "secondEntry",
345
+ "thirdEntry",
346
+ "entry",
347
+ STORE_ATTRIBUTE,
348
+ "linkend"
349
+ ];
350
+ var BOOKMARK_INDEX_POSITION_ATTRIBUTE = {
351
+ name: "index-position",
352
+ values: ["start", "end"],
353
+ defaultValue: ""
354
+ };
355
+ var SEE_REQUIRED_ATTRIBUTES = [
356
+ "linkend",
357
+ "data-user",
358
+ "crossref-pageNumber",
359
+ {
360
+ name: "role",
361
+ values: ["see", "see-also"],
362
+ defaultValue: ""
363
+ },
364
+ STORE_ATTRIBUTE,
365
+ "data-date",
366
+ "crossref-firstEntry",
367
+ "crossref-secondEntry",
368
+ "crossref-thirdEntry",
369
+ "crossref-fourthEntry"
341
370
  ];
342
371
 
372
+ // src/schema/elementSchemas/atoms/indexing/bookmark.ts
373
+ var BOOKMARK_SCHEMA = createSchema({
374
+ code: "bookmark",
375
+ kind: "atom",
376
+ tag: BOOKMARK_TAG,
377
+ requiredAttributes: [
378
+ ...INDEX_TERM_ENTRY_REQUIRED_ATTRIBUTES,
379
+ BOOKMARK_INDEX_POSITION_ATTRIBUTE
380
+ ],
381
+ optionalAttributes: [],
382
+ allowedChildTagNames: [
383
+ {
384
+ tagName: SEE_TAG,
385
+ required: false
386
+ }
387
+ ]
388
+ });
389
+
390
+ // src/schema/elementSchemas/atoms/indexing/indexterm.ts
391
+ var INDEXTERM_SCHEMA = createSchema({
392
+ code: "indexterm",
393
+ kind: "atom",
394
+ tag: INDEXTERM_TAG,
395
+ requiredAttributes: [
396
+ "linkend",
397
+ {
398
+ name: "index-level",
399
+ values: ["PRIMARY", "SECONDARY", "TERTIARY", "QUATERNARY"],
400
+ defaultValue: "PRIMARY"
401
+ },
402
+ STORE_ATTRIBUTE
403
+ ],
404
+ optionalAttributes: [],
405
+ allowedChildTagNames: [
406
+ { tagName: PRIMARY_TAG, required: false },
407
+ { tagName: SECONDARY_TAG, required: false },
408
+ { tagName: TERTIARY_TAG, required: false },
409
+ { tagName: QUATERNARY_TAG, required: false },
410
+ { tagName: BOOKMARK_TAG, required: false }
411
+ ]
412
+ });
413
+
414
+ // src/schema/elementSchemas/atoms/indexing/primary.ts
415
+ var PRIMARY_SCHEMA = createSchema({
416
+ code: "primary",
417
+ kind: "atom",
418
+ tag: PRIMARY_TAG,
419
+ requiredAttributes: [...INDEX_TERM_ENTRY_REQUIRED_ATTRIBUTES],
420
+ optionalAttributes: [],
421
+ allowedChildTagNames: [
422
+ ...ATOM_TAGS_ALLOWED_CHILDREN,
423
+ { tagName: SEE_TAG, required: false }
424
+ ]
425
+ });
426
+
427
+ // src/schema/elementSchemas/atoms/indexing/quaternary.ts
428
+ var QUATERNARY_SCHEMA = createSchema({
429
+ code: "quaternary",
430
+ kind: "atom",
431
+ tag: QUATERNARY_TAG,
432
+ requiredAttributes: [...INDEX_TERM_ENTRY_REQUIRED_ATTRIBUTES],
433
+ optionalAttributes: [],
434
+ allowedChildTagNames: [
435
+ ...ATOM_TAGS_ALLOWED_CHILDREN,
436
+ { tagName: SEE_TAG, required: false }
437
+ ]
438
+ });
439
+
440
+ // src/schema/elementSchemas/atoms/indexing/secondary.ts
441
+ var SECONDARY_SCHEMA = createSchema({
442
+ code: "secondary",
443
+ kind: "atom",
444
+ tag: SECONDARY_TAG,
445
+ requiredAttributes: [...INDEX_TERM_ENTRY_REQUIRED_ATTRIBUTES],
446
+ optionalAttributes: [],
447
+ allowedChildTagNames: [
448
+ ...ATOM_TAGS_ALLOWED_CHILDREN,
449
+ { tagName: SEE_TAG, required: false }
450
+ ]
451
+ });
452
+
453
+ // src/schema/elementSchemas/atoms/indexing/see.ts
454
+ var SEE_SCHEMA = createSchema({
455
+ code: "see",
456
+ kind: "atom",
457
+ tag: SEE_TAG,
458
+ requiredAttributes: [...SEE_REQUIRED_ATTRIBUTES],
459
+ optionalAttributes: [],
460
+ allowedChildTagNames: []
461
+ });
462
+
463
+ // src/schema/elementSchemas/atoms/indexing/tertiary.ts
464
+ var TERTIARY_SCHEMA = createSchema({
465
+ code: "tertiary",
466
+ kind: "atom",
467
+ tag: TERTIARY_TAG,
468
+ requiredAttributes: [...INDEX_TERM_ENTRY_REQUIRED_ATTRIBUTES],
469
+ optionalAttributes: [],
470
+ allowedChildTagNames: [
471
+ ...ATOM_TAGS_ALLOWED_CHILDREN,
472
+ { tagName: SEE_TAG, required: false }
473
+ ]
474
+ });
475
+
476
+ // src/schema/elementSchemas/atoms/index.ts
477
+ var ATOM_SCHEMAS = {
478
+ indexterm: INDEXTERM_SCHEMA,
479
+ primary: PRIMARY_SCHEMA,
480
+ secondary: SECONDARY_SCHEMA,
481
+ tertiary: TERTIARY_SCHEMA,
482
+ quaternary: QUATERNARY_SCHEMA,
483
+ bookmark: BOOKMARK_SCHEMA,
484
+ see: SEE_SCHEMA,
485
+ b: B_SCHEMA,
486
+ i: I_SCHEMA,
487
+ u: U_SCHEMA,
488
+ sc: SC_SCHEMA,
489
+ emphasis: EMPHASIS_SCHEMA,
490
+ strike: STRIKE_SCHEMA,
491
+ sub: SUB_SCHEMA,
492
+ sup: SUP_SCHEMA,
493
+ highlightmark: HIGHLIGHTMARK_SCHEMA,
494
+ commentQuerySection: COMMENT_QUERY_SECTION_SCHEMA,
495
+ insertion: INSERTION_SCHEMA,
496
+ deletion: DELETION_SCHEMA,
497
+ content: CONTENT_SCHEMA,
498
+ comment: COMMENT_SCHEMA,
499
+ query: QUERY_SCHEMA,
500
+ reply: REPLY_SCHEMA
501
+ };
502
+
343
503
  // src/schema/elementSchemas/elements/elementsTags.ts
344
504
  var PARA_TAG = "PARA";
345
505
  var TITLE_TAG = "TITLE1";
@@ -349,7 +509,6 @@ var OLINK_TAG = "OLINK";
349
509
  var FIRSTNAME_TAG = "FIRSTNAME";
350
510
  var SURNAME_TAG = "SURNAME";
351
511
  var HONORIFIC_TAG = "HONORIFIC";
352
- var POSTNOMINALS_TAG = "POSTNOMINALS";
353
512
  var ORGNAME_TAG = "ORGNAME";
354
513
  var EMAIL_TAG = "EMAIL";
355
514
  var ORG_TAG = "ORG";
@@ -390,59 +549,6 @@ var TBLFN_TAG = "TBLFN";
390
549
  var TBLSOURCE_TAG = "TBLSOURCE";
391
550
  var TAG_TAG = "TAG";
392
551
  var PUNC_TAG = "PUNC";
393
- var ELEMENT_TAGS = [
394
- PARA_TAG,
395
- TITLE_TAG,
396
- FOOTNOTE_TAG,
397
- FOOTNOTE_NUMBER_TAG,
398
- OLINK_TAG,
399
- FIRSTNAME_TAG,
400
- SURNAME_TAG,
401
- HONORIFIC_TAG,
402
- POSTNOMINALS_TAG,
403
- ORGNAME_TAG,
404
- EMAIL_TAG,
405
- ORG_TAG,
406
- DEGREES_TAG,
407
- DIALOGUE_TAG,
408
- LINE_TAG,
409
- SPEAKER_TAG,
410
- EQUATION_TAG,
411
- FIGURE_TAG,
412
- IMG_TAG,
413
- ALTTEXT_TAG,
414
- IMAGEOBJECT_TAG,
415
- MEDIAOBJECT_TAG,
416
- LABEL_TAG,
417
- CAPTION_TAG,
418
- FIGSOURCE_TAG,
419
- FIGNOTE_TAG,
420
- INFORMALFIGURE_TAG,
421
- KEYWORDSET_TAG,
422
- KEYWORD_TAG,
423
- LI_TAG,
424
- OL_TAG,
425
- UL_TAG,
426
- TOKEN_TAG,
427
- LRH_TAG,
428
- RRH_TAG,
429
- SOURCE_TAG,
430
- SUBTITLE_TAG,
431
- TABLE_TAG,
432
- TGROUP_TAG,
433
- HTML_TABLE_TAG,
434
- THEAD_TAG,
435
- TBODY_TAG,
436
- TR_TAG,
437
- TD_TAG,
438
- TP_TAG,
439
- TBLFN_TAG,
440
- TBLSOURCE_TAG,
441
- TAG_TAG,
442
- PUNC_TAG
443
- ];
444
-
445
- // src/schema/elementSchemas/groupElements/groupElementsTags.ts
446
552
  var SECTION_TAG = "SECTION1";
447
553
  var ABSTRACT_TAG = "ABSTRACT1";
448
554
  var AFFILIATION_TAG = "AFFILIATION";
@@ -456,26 +562,38 @@ var CHAPTER_TAG = "CHAPTER";
456
562
  var EPIGRAPH_TAG = "EPIGRAPH";
457
563
  var INFO_TAG = "INFO1";
458
564
  var POEM_TAG = "POEM";
459
- var GROUP_ELEMENTS_TAGS = [
460
- SECTION_TAG,
461
- ABSTRACT_TAG,
462
- AFFILIATION_TAG,
463
- APPENDIX_TAG,
464
- AUTHORGROUP_TAG,
465
- AUTHOR_TAG,
466
- PERSONNAME_TAG,
467
- BLOCKQUOTE_TAG,
468
- SIDEBAR_TAG,
469
- CHAPTER_TAG,
470
- EPIGRAPH_TAG,
471
- INFO_TAG,
472
- POEM_TAG
473
- ];
565
+ var MATHPHRASE_TAG = "MATHPHRASE";
566
+ var MATH_TAG = "MATH";
567
+ var MERROR_TAG = "MERROR";
568
+ var MFRAC_TAG = "MFRAC";
569
+ var MI_TAG = "MI";
570
+ var MMULTISCRIPTS_TAG = "MMULTISCRIPTS";
571
+ var MN_TAG = "MN";
572
+ var MO_TAG = "MO";
573
+ var MOVER_TAG = "MOVER";
574
+ var MPADDED_TAG = "MPADDED";
575
+ var MPHANTOM_TAG = "MPHANTOM";
576
+ var MPRESCRIPTS_TAG = "MPRESCRIPTS";
577
+ var MROOT_TAG = "MROOT";
578
+ var MROW_TAG = "MROW";
579
+ var MS_TAG = "MS";
580
+ var MSPACE_TAG = "MSPACE";
581
+ var MSQRT_TAG = "MSQRT";
582
+ var MSTYLE_TAG = "MSTYLE";
583
+ var MSUB_TAG = "MSUB";
584
+ var MSUBSUP_TAG = "MSUBSUP";
585
+ var MSUP_TAG = "MSUP";
586
+ var MTABLE_TAG = "MTABLE";
587
+ var MTD_TAG = "MTD";
588
+ var MTEXT_TAG = "MTEXT";
589
+ var MTR_TAG = "MTR";
590
+ var MUNDER_TAG = "MUNDER";
591
+ var MUNDEROVER_TAG = "MUNDEROVER";
474
592
 
475
593
  // src/schema/elementSchemas/elements/authors/authorgroup.ts
476
594
  var AUTHORGROUP_SCHEMA = createSchema({
477
595
  code: "authorgroup",
478
- kind: "group",
596
+ kind: "element",
479
597
  tag: AUTHORGROUP_TAG,
480
598
  requiredAttributes: [...ID_ATTRS],
481
599
  optionalAttributes: [],
@@ -488,7 +606,7 @@ var AUTHORGROUP_SCHEMA = createSchema({
488
606
  // src/schema/elementSchemas/elements/authors/author.ts
489
607
  var AUTHOR_SCHEMA = createSchema({
490
608
  code: "author",
491
- kind: "group",
609
+ kind: "element",
492
610
  tag: AUTHOR_TAG,
493
611
  requiredAttributes: [...ID_ATTRS],
494
612
  optionalAttributes: [],
@@ -515,7 +633,7 @@ var OLINK_SCHEMA = createSchema({
515
633
  // src/schema/elementSchemas/elements/authors/personname.ts
516
634
  var PERSONNAME_SCHEMA = createSchema({
517
635
  code: "personname",
518
- kind: "group",
636
+ kind: "element",
519
637
  tag: PERSONNAME_TAG,
520
638
  requiredAttributes: [...ID_ATTRS],
521
639
  optionalAttributes: [],
@@ -589,7 +707,7 @@ var ORG_SCHEMA = createSchema({
589
707
  // src/schema/elementSchemas/elements/authors/affiliation.ts
590
708
  var AFFILIATION_SCHEMA = createSchema({
591
709
  code: "affiliation",
592
- kind: "group",
710
+ kind: "element",
593
711
  tag: AFFILIATION_TAG,
594
712
  requiredAttributes: [...ID_ATTRS],
595
713
  optionalAttributes: [],
@@ -641,7 +759,7 @@ var SPEAKER_SCHEMA = createSchema({
641
759
  // src/schema/elementSchemas/elements/dialogue/dialogue.ts
642
760
  var DIALOGUE_SCHEMA = createSchema({
643
761
  code: "dialogue",
644
- kind: "group",
762
+ kind: "element",
645
763
  tag: DIALOGUE_TAG,
646
764
  requiredAttributes: [...ID_ATTRS],
647
765
  optionalAttributes: [
@@ -658,16 +776,363 @@ var DIALOGUE_SCHEMA = createSchema({
658
776
  ]
659
777
  });
660
778
 
661
- // src/schema/elementSchemas/elements/equation.ts
779
+ // src/schema/elementSchemas/elements/equation/equation.ts
662
780
  var EQUATION_SCHEMA = createSchema({
663
781
  code: "equation",
664
782
  kind: "element",
665
783
  tag: EQUATION_TAG,
784
+ requiredAttributes: [...ID_ATTRS],
785
+ optionalAttributes: [
786
+ ...TRACK_CHANGES_ATTRS,
787
+ {
788
+ name: "eqn-data",
789
+ values: ["new", "updated"],
790
+ defaultValue: "new"
791
+ },
792
+ {
793
+ name: "element-status",
794
+ values: ["added", "changed"],
795
+ defaultValue: "added"
796
+ }
797
+ ],
798
+ allowedChildTagNames: [{ tagName: MATHPHRASE_TAG, required: true }]
799
+ });
800
+
801
+ // src/schema/shared/allowedMathChildren.ts
802
+ var MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN = [
803
+ { tagName: MERROR_TAG, required: false },
804
+ { tagName: MFRAC_TAG, required: false },
805
+ { tagName: MI_TAG, required: false },
806
+ { tagName: MMULTISCRIPTS_TAG, required: false },
807
+ { tagName: MN_TAG, required: false },
808
+ { tagName: MO_TAG, required: false },
809
+ { tagName: MOVER_TAG, required: false },
810
+ { tagName: MPADDED_TAG, required: false },
811
+ { tagName: MPHANTOM_TAG, required: false },
812
+ { tagName: MPRESCRIPTS_TAG, required: false },
813
+ { tagName: MROOT_TAG, required: false },
814
+ { tagName: MROW_TAG, required: false },
815
+ { tagName: MS_TAG, required: false },
816
+ { tagName: MSPACE_TAG, required: false },
817
+ { tagName: MSQRT_TAG, required: false },
818
+ { tagName: MSTYLE_TAG, required: false },
819
+ { tagName: MSUB_TAG, required: false },
820
+ { tagName: MSUBSUP_TAG, required: false },
821
+ { tagName: MSUP_TAG, required: false },
822
+ { tagName: MTABLE_TAG, required: false },
823
+ { tagName: MTD_TAG, required: false },
824
+ { tagName: MTEXT_TAG, required: false },
825
+ { tagName: MTR_TAG, required: false },
826
+ { tagName: MUNDER_TAG, required: false },
827
+ { tagName: MUNDEROVER_TAG, required: false }
828
+ ];
829
+
830
+ // src/schema/elementSchemas/elements/equation/math.ts
831
+ var MATH_SCHEMA = createSchema({
832
+ code: "math",
833
+ kind: "element",
834
+ tag: MATH_TAG,
835
+ requiredAttributes: [],
836
+ optionalAttributes: ["xmlns"],
837
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN],
838
+ canBeWrappedByInsertOrDelete: true
839
+ });
840
+
841
+ // src/schema/elementSchemas/elements/equation/merror.ts
842
+ var MERROR_SCHEMA = createSchema({
843
+ code: "merror",
844
+ kind: "element",
845
+ tag: MERROR_TAG,
666
846
  requiredAttributes: [],
667
847
  optionalAttributes: [],
848
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
849
+ });
850
+
851
+ // src/schema/elementSchemas/elements/equation/mfrac.ts
852
+ var MFRAC_SCHEMA = createSchema({
853
+ code: "mfrac",
854
+ kind: "element",
855
+ tag: MFRAC_TAG,
856
+ requiredAttributes: [],
857
+ optionalAttributes: ["denomalign", "linethickness", "numalign"],
858
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
859
+ });
860
+
861
+ // src/schema/elementSchemas/elements/equation/mi.ts
862
+ var MI_SCHEMA = createSchema({
863
+ code: "mi",
864
+ kind: "element",
865
+ tag: MI_TAG,
866
+ requiredAttributes: [],
867
+ optionalAttributes: ["mathvariant"],
868
+ allowedChildTagNames: []
869
+ });
870
+
871
+ // src/schema/elementSchemas/elements/equation/mmultiscripts.ts
872
+ var MMULTISCRIPTS_SCHEMA = createSchema({
873
+ code: "mmultiscripts",
874
+ kind: "element",
875
+ tag: MMULTISCRIPTS_TAG,
876
+ requiredAttributes: [],
877
+ optionalAttributes: ["subscriptshift", "superscriptshift"],
878
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
879
+ });
880
+
881
+ // src/schema/elementSchemas/elements/equation/mn.ts
882
+ var MN_SCHEMA = createSchema({
883
+ code: "mn",
884
+ kind: "element",
885
+ tag: MN_TAG,
886
+ requiredAttributes: [],
887
+ optionalAttributes: [],
888
+ allowedChildTagNames: []
889
+ });
890
+
891
+ // src/schema/elementSchemas/elements/equation/mo.ts
892
+ var MO_SCHEMA = createSchema({
893
+ code: "mo",
894
+ kind: "element",
895
+ tag: MO_TAG,
896
+ requiredAttributes: [],
897
+ optionalAttributes: [
898
+ "accent",
899
+ "fence",
900
+ "form",
901
+ "largeop",
902
+ "lspace",
903
+ "maxsize",
904
+ "minsize",
905
+ "movablelimits",
906
+ "rspace",
907
+ "separator",
908
+ "stretchy",
909
+ "symmetric"
910
+ ],
911
+ allowedChildTagNames: []
912
+ });
913
+
914
+ // src/schema/elementSchemas/elements/equation/mover.ts
915
+ var MOVER_SCHEMA = createSchema({
916
+ code: "mover",
917
+ kind: "element",
918
+ tag: MOVER_TAG,
919
+ requiredAttributes: [],
920
+ optionalAttributes: ["accent"],
921
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
922
+ });
923
+
924
+ // src/schema/elementSchemas/elements/equation/mpadded.ts
925
+ var MPADDED_SCHEMA = createSchema({
926
+ code: "mpadded",
927
+ kind: "element",
928
+ tag: MPADDED_TAG,
929
+ requiredAttributes: [],
930
+ optionalAttributes: [
931
+ "depth",
932
+ "height",
933
+ "lspace",
934
+ "voffset",
935
+ "width"
936
+ ],
937
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
938
+ });
939
+
940
+ // src/schema/elementSchemas/elements/equation/mphantom.ts
941
+ var MPHANTOM_SCHEMA = createSchema({
942
+ code: "mphantom",
943
+ kind: "element",
944
+ tag: MPHANTOM_TAG,
945
+ requiredAttributes: [],
946
+ optionalAttributes: [],
947
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
948
+ });
949
+
950
+ // src/schema/elementSchemas/elements/equation/mprescripts.ts
951
+ var MPRESCRIPTS_SCHEMA = createSchema({
952
+ code: "mprescripts",
953
+ kind: "element",
954
+ tag: MPRESCRIPTS_TAG,
955
+ requiredAttributes: [],
956
+ optionalAttributes: [],
957
+ allowedChildTagNames: []
958
+ });
959
+
960
+ // src/schema/elementSchemas/elements/equation/mroot.ts
961
+ var MROOT_SCHEMA = createSchema({
962
+ code: "mroot",
963
+ kind: "element",
964
+ tag: MROOT_TAG,
965
+ requiredAttributes: [],
966
+ optionalAttributes: [],
967
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
968
+ });
969
+
970
+ // src/schema/elementSchemas/elements/equation/mrow.ts
971
+ var MROW_SCHEMA = createSchema({
972
+ code: "mrow",
973
+ kind: "element",
974
+ tag: MROW_TAG,
975
+ requiredAttributes: [],
976
+ optionalAttributes: [],
977
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
978
+ });
979
+
980
+ // src/schema/elementSchemas/elements/equation/ms.ts
981
+ var MS_SCHEMA = createSchema({
982
+ code: "ms",
983
+ kind: "element",
984
+ tag: MS_TAG,
985
+ requiredAttributes: [],
986
+ optionalAttributes: ["lquote", "rquote"],
987
+ allowedChildTagNames: []
988
+ });
989
+
990
+ // src/schema/elementSchemas/elements/equation/mspace.ts
991
+ var MSPACE_SCHEMA = createSchema({
992
+ code: "mspace",
993
+ kind: "element",
994
+ tag: MSPACE_TAG,
995
+ requiredAttributes: [],
996
+ optionalAttributes: ["depth", "height", "width"],
997
+ allowedChildTagNames: []
998
+ });
999
+
1000
+ // src/schema/elementSchemas/elements/equation/msqrt.ts
1001
+ var MSQRT_SCHEMA = createSchema({
1002
+ code: "msqrt",
1003
+ kind: "element",
1004
+ tag: MSQRT_TAG,
1005
+ requiredAttributes: [],
1006
+ optionalAttributes: [],
1007
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
1008
+ });
1009
+
1010
+ // src/schema/elementSchemas/elements/equation/mstyle.ts
1011
+ var MSTYLE_SCHEMA = createSchema({
1012
+ code: "mstyle",
1013
+ kind: "element",
1014
+ tag: MSTYLE_TAG,
1015
+ requiredAttributes: [],
1016
+ optionalAttributes: [
1017
+ "displaystyle",
1018
+ "mathbackground",
1019
+ "mathcolor",
1020
+ "mathsize",
1021
+ "scriptlevel",
1022
+ "scriptminsize",
1023
+ "scriptsizemultiplier"
1024
+ ],
1025
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
1026
+ });
1027
+
1028
+ // src/schema/elementSchemas/elements/equation/msub.ts
1029
+ var MSUB_SCHEMA = createSchema({
1030
+ code: "msub",
1031
+ kind: "element",
1032
+ tag: MSUB_TAG,
1033
+ requiredAttributes: [],
1034
+ optionalAttributes: ["subscriptshift"],
1035
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
1036
+ });
1037
+
1038
+ // src/schema/elementSchemas/elements/equation/msubsup.ts
1039
+ var MSUBSUP_SCHEMA = createSchema({
1040
+ code: "msubsup",
1041
+ kind: "element",
1042
+ tag: MSUBSUP_TAG,
1043
+ requiredAttributes: [],
1044
+ optionalAttributes: ["subscriptshift", "superscriptshift"],
1045
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
1046
+ });
1047
+
1048
+ // src/schema/elementSchemas/elements/equation/msup.ts
1049
+ var MSUP_SCHEMA = createSchema({
1050
+ code: "msup",
1051
+ kind: "element",
1052
+ tag: MSUP_TAG,
1053
+ requiredAttributes: [],
1054
+ optionalAttributes: ["superscriptshift"],
1055
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
1056
+ });
1057
+
1058
+ // src/schema/elementSchemas/elements/equation/mtable.ts
1059
+ var MTABLE_SCHEMA = createSchema({
1060
+ code: "mtable",
1061
+ kind: "element",
1062
+ tag: MTABLE_TAG,
1063
+ requiredAttributes: [],
1064
+ optionalAttributes: [
1065
+ "align",
1066
+ "columnalign",
1067
+ "columnlines",
1068
+ "columnspacing",
1069
+ "displaystyle",
1070
+ "equalcolumns",
1071
+ "equalrows",
1072
+ "frame",
1073
+ "rowalign",
1074
+ "rowlines",
1075
+ "rowspacing",
1076
+ "width"
1077
+ ],
1078
+ allowedChildTagNames: [{ tagName: MTR_TAG, required: false }]
1079
+ });
1080
+
1081
+ // src/schema/elementSchemas/elements/equation/mtd.ts
1082
+ var MTD_SCHEMA = createSchema({
1083
+ code: "mtd",
1084
+ kind: "element",
1085
+ tag: MTD_TAG,
1086
+ requiredAttributes: [],
1087
+ optionalAttributes: [
1088
+ "columnalign",
1089
+ "columnspan",
1090
+ "rowalign",
1091
+ "rowspan"
1092
+ ],
1093
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
1094
+ });
1095
+
1096
+ // src/schema/elementSchemas/elements/equation/mtext.ts
1097
+ var MTEXT_SCHEMA = createSchema({
1098
+ code: "mtext",
1099
+ kind: "element",
1100
+ tag: MTEXT_TAG,
1101
+ requiredAttributes: [],
1102
+ optionalAttributes: ["mathvariant"],
668
1103
  allowedChildTagNames: []
669
1104
  });
670
1105
 
1106
+ // src/schema/elementSchemas/elements/equation/mtr.ts
1107
+ var MTR_SCHEMA = createSchema({
1108
+ code: "mtr",
1109
+ kind: "element",
1110
+ tag: MTR_TAG,
1111
+ requiredAttributes: [],
1112
+ optionalAttributes: ["columnalign", "rowalign"],
1113
+ allowedChildTagNames: [{ tagName: MTD_TAG, required: false }]
1114
+ });
1115
+
1116
+ // src/schema/elementSchemas/elements/equation/munder.ts
1117
+ var MUNDER_SCHEMA = createSchema({
1118
+ code: "munder",
1119
+ kind: "element",
1120
+ tag: MUNDER_TAG,
1121
+ requiredAttributes: [],
1122
+ optionalAttributes: ["accentunder"],
1123
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
1124
+ });
1125
+
1126
+ // src/schema/elementSchemas/elements/equation/munderover.ts
1127
+ var MUNDEROVER_SCHEMA = createSchema({
1128
+ code: "munderover",
1129
+ kind: "element",
1130
+ tag: MUNDEROVER_TAG,
1131
+ requiredAttributes: [],
1132
+ optionalAttributes: ["accent", "accentunder"],
1133
+ allowedChildTagNames: [...MATH_PRESENTATION_TAGS_ALLOWED_CHILDREN]
1134
+ });
1135
+
671
1136
  // src/schema/elementSchemas/elements/figure/img.ts
672
1137
  var IMG_SCHEMA = createSchema({
673
1138
  code: "img",
@@ -692,7 +1157,7 @@ var IMG_SCHEMA = createSchema({
692
1157
  // src/schema/elementSchemas/elements/figure/alttext.ts
693
1158
  var ALTTEXT_SCHEMA = createSchema({
694
1159
  code: "alttext",
695
- kind: "group",
1160
+ kind: "element",
696
1161
  tag: ALTTEXT_TAG,
697
1162
  requiredAttributes: [],
698
1163
  optionalAttributes: [],
@@ -702,7 +1167,7 @@ var ALTTEXT_SCHEMA = createSchema({
702
1167
  // src/schema/elementSchemas/elements/figure/imageobject.ts
703
1168
  var IMAGEOBJECT_SCHEMA = createSchema({
704
1169
  code: "imageobject",
705
- kind: "group",
1170
+ kind: "element",
706
1171
  tag: IMAGEOBJECT_TAG,
707
1172
  requiredAttributes: [...ID_ATTRS],
708
1173
  optionalAttributes: [],
@@ -715,7 +1180,7 @@ var IMAGEOBJECT_SCHEMA = createSchema({
715
1180
  // src/schema/elementSchemas/elements/figure/mediaobject.ts
716
1181
  var MEDIAOBJECT_SCHEMA = createSchema({
717
1182
  code: "mediaobject",
718
- kind: "group",
1183
+ kind: "element",
719
1184
  tag: MEDIAOBJECT_TAG,
720
1185
  requiredAttributes: [...ID_ATTRS],
721
1186
  optionalAttributes: [...TRACK_CHANGES_ATTRS],
@@ -725,7 +1190,7 @@ var MEDIAOBJECT_SCHEMA = createSchema({
725
1190
  // src/schema/elementSchemas/elements/figure/caption1.ts
726
1191
  var CAPTION_SCHEMA = createSchema({
727
1192
  code: "caption1",
728
- kind: "group",
1193
+ kind: "element",
729
1194
  tag: CAPTION_TAG,
730
1195
  requiredAttributes: [...ID_ATTRS],
731
1196
  optionalAttributes: [],
@@ -761,7 +1226,7 @@ var FIGNOTE_SCHEMA = createSchema({
761
1226
  // src/schema/elementSchemas/elements/figure/figure.ts
762
1227
  var FIGURE_SCHEMA = createSchema({
763
1228
  code: "figure1",
764
- kind: "group",
1229
+ kind: "element",
765
1230
  tag: FIGURE_TAG,
766
1231
  requiredAttributes: [...ID_ATTRS, "xmlid"],
767
1232
  optionalAttributes: [
@@ -827,7 +1292,7 @@ var INFORMALFIGURE_SCHEMA = createSchema({
827
1292
  // src/schema/elementSchemas/elements/keywords/keywordset.ts
828
1293
  var KEYWORDSET_SCHEMA = createSchema({
829
1294
  code: "keywordset",
830
- kind: "group",
1295
+ kind: "element",
831
1296
  tag: KEYWORDSET_TAG,
832
1297
  requiredAttributes: [
833
1298
  ...ID_ATTRS,
@@ -865,63 +1330,6 @@ var PUNC_SCHEMA = createSchema({
865
1330
  allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
866
1331
  });
867
1332
 
868
- // src/schema/elementSchemas/inlineElements/footnoteLink.ts
869
- var FOOTNOTE_LINK_SCHEMA = createSchema({
870
- code: "footnote1",
871
- kind: "inline",
872
- tag: FOOTNOTE_LINK_TAG,
873
- requiredAttributes: [...ID_ATTRS],
874
- optionalAttributes: ["linkend"],
875
- allowedChildTagNames: [{ tagName: SUP_TAG, required: true }]
876
- });
877
-
878
- // src/schema/elementSchemas/inlineElements/inlineequation.ts
879
- var INLINEEQUATION_SCHEMA = createSchema({
880
- code: "inlineequation",
881
- kind: "inline",
882
- tag: INLINEEQUATION_TAG,
883
- requiredAttributes: [...ID_ATTRS],
884
- optionalAttributes: ["linkend"],
885
- allowedChildTagNames: []
886
- });
887
-
888
- // src/schema/elementSchemas/inlineElements/link.ts
889
- var LINK_SCHEMA = createSchema({
890
- code: "link",
891
- kind: "inline",
892
- tag: LINK_TAG,
893
- requiredAttributes: [
894
- ...ID_ATTRS,
895
- "linkend",
896
- "data-target-id",
897
- {
898
- name: "role",
899
- values: ["table", "figure", "equation", "footnote", "bibr"],
900
- defaultValue: ""
901
- }
902
- ],
903
- optionalAttributes: [],
904
- allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
905
- });
906
-
907
- // src/schema/elementSchemas/inlineElements/uri.ts
908
- var URI_SCHEMA = createSchema({
909
- code: "uri",
910
- kind: "inline",
911
- tag: URI_TAG,
912
- requiredAttributes: [...ID_ATTRS],
913
- optionalAttributes: ["linkend"],
914
- allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
915
- });
916
-
917
- // src/schema/elementSchemas/inlineElements/index.ts
918
- var INLINE_ELEMENT_SCHEMAS = [
919
- URI_SCHEMA,
920
- FOOTNOTE_LINK_SCHEMA,
921
- LINK_SCHEMA,
922
- INLINEEQUATION_SCHEMA
923
- ];
924
-
925
1333
  // src/schema/elementSchemas/elements/label.ts
926
1334
  var LABEL_SCHEMA = createSchema({
927
1335
  code: "label1",
@@ -987,7 +1395,7 @@ var LI_SCHEMA = createSchema({
987
1395
  // src/schema/elementSchemas/elements/list/ol.ts
988
1396
  var OL_SCHEMA = createSchema({
989
1397
  code: "ol",
990
- kind: "group",
1398
+ kind: "element",
991
1399
  tag: OL_TAG,
992
1400
  requiredAttributes: [...ID_ATTRS],
993
1401
  optionalAttributes: [
@@ -1024,7 +1432,7 @@ var OL_SCHEMA = createSchema({
1024
1432
  // src/schema/elementSchemas/elements/list/ul.ts
1025
1433
  var UL_SCHEMA = createSchema({
1026
1434
  code: "ul",
1027
- kind: "group",
1435
+ kind: "element",
1028
1436
  tag: UL_TAG,
1029
1437
  requiredAttributes: [...ID_ATTRS],
1030
1438
  optionalAttributes: [
@@ -1167,7 +1575,7 @@ var TP_SCHEMA = createSchema({
1167
1575
  // src/schema/elementSchemas/elements/table/td.ts
1168
1576
  var TD_SCHEMA = createSchema({
1169
1577
  code: "td",
1170
- kind: "group",
1578
+ kind: "element",
1171
1579
  tag: TD_TAG,
1172
1580
  requiredAttributes: [...ID_ATTRS],
1173
1581
  optionalAttributes: [...TRACK_CHANGES_ATTRS, "data-cell-width"],
@@ -1181,7 +1589,7 @@ var TD_SCHEMA = createSchema({
1181
1589
  // src/schema/elementSchemas/elements/table/tr.ts
1182
1590
  var TR_SCHEMA = createSchema({
1183
1591
  code: "tr",
1184
- kind: "group",
1592
+ kind: "element",
1185
1593
  tag: TR_TAG,
1186
1594
  requiredAttributes: [],
1187
1595
  optionalAttributes: [...LAYOUT_ATTRIBUTES, ...ID_ATTRS, "width"],
@@ -1201,7 +1609,7 @@ var THEAD_SCHEMA = createSchema({
1201
1609
  // src/schema/elementSchemas/elements/table/tbody.ts
1202
1610
  var TBODY_SCHEMA = createSchema({
1203
1611
  code: "tbody",
1204
- kind: "group",
1612
+ kind: "element",
1205
1613
  tag: TBODY_TAG,
1206
1614
  requiredAttributes: [],
1207
1615
  optionalAttributes: [...ID_ATTRS],
@@ -1211,7 +1619,7 @@ var TBODY_SCHEMA = createSchema({
1211
1619
  // src/schema/elementSchemas/elements/table/htmlTable.ts
1212
1620
  var HTML_TABLE_SCHEMA = createSchema({
1213
1621
  code: "table",
1214
- kind: "group",
1622
+ kind: "element",
1215
1623
  tag: HTML_TABLE_TAG,
1216
1624
  requiredAttributes: [],
1217
1625
  optionalAttributes: [...ID_ATTRS],
@@ -1224,7 +1632,7 @@ var HTML_TABLE_SCHEMA = createSchema({
1224
1632
  // src/schema/elementSchemas/elements/table/tgroup.ts
1225
1633
  var TGROUP_SCHEMA = createSchema({
1226
1634
  code: "tgroup",
1227
- kind: "group",
1635
+ kind: "element",
1228
1636
  tag: TGROUP_TAG,
1229
1637
  requiredAttributes: [...ID_ATTRS, "cols"],
1230
1638
  optionalAttributes: [],
@@ -1257,7 +1665,7 @@ var TBLSOURCE_SCHEMA = createSchema({
1257
1665
  // src/schema/elementSchemas/elements/table/table1.ts
1258
1666
  var TABLE_SCHEMA = createSchema({
1259
1667
  code: "table1",
1260
- kind: "group",
1668
+ kind: "element",
1261
1669
  tag: TABLE_TAG,
1262
1670
  requiredAttributes: [...ID_ATTRS, "xmlid", "role"],
1263
1671
  optionalAttributes: [
@@ -1301,62 +1709,10 @@ var TITLE_SCHEMA = createSchema({
1301
1709
  allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
1302
1710
  });
1303
1711
 
1304
- // src/schema/elementSchemas/elements/index.ts
1305
- var ELEMENT_SCHEMAS = [
1306
- PARA_SCHEMA,
1307
- TITLE_SCHEMA,
1308
- FOOTNOTE_SCHEMA,
1309
- FOOTNOTE_NUMBER_SCHEMA,
1310
- OLINK_SCHEMA,
1311
- FIRSTNAME_SCHEMA,
1312
- SURNAME_SCHEMA,
1313
- HONORIFIC_SCHEMA,
1314
- ORGNAME_SCHEMA,
1315
- EMAIL_SCHEMA,
1316
- ORG_SCHEMA,
1317
- DEGREES_SCHEMA,
1318
- DIALOGUE_SCHEMA,
1319
- LINE_SCHEMA,
1320
- SPEAKER_SCHEMA,
1321
- EQUATION_SCHEMA,
1322
- IMG_SCHEMA,
1323
- ALTTEXT_SCHEMA,
1324
- IMAGEOBJECT_SCHEMA,
1325
- MEDIAOBJECT_SCHEMA,
1326
- CAPTION_SCHEMA,
1327
- FIGSOURCE_SCHEMA,
1328
- FIGNOTE_SCHEMA,
1329
- FIGURE_SCHEMA,
1330
- INFORMALFIGURE_SCHEMA,
1331
- KEYWORDSET_SCHEMA,
1332
- KEYWORD_SCHEMA,
1333
- PUNC_SCHEMA,
1334
- LABEL_SCHEMA,
1335
- LI_SCHEMA,
1336
- OL_SCHEMA,
1337
- UL_SCHEMA,
1338
- TOKEN_SCHEMA,
1339
- TAG_SCHEMA,
1340
- LRH_SCHEMA,
1341
- RRH_SCHEMA,
1342
- SOURCE_SCHEMA,
1343
- SUBTITLE_SCHEMA,
1344
- TABLE_SCHEMA,
1345
- TGROUP_SCHEMA,
1346
- HTML_TABLE_SCHEMA,
1347
- THEAD_SCHEMA,
1348
- TBODY_SCHEMA,
1349
- TR_SCHEMA,
1350
- TD_SCHEMA,
1351
- TP_SCHEMA,
1352
- TBLFN_SCHEMA,
1353
- TBLSOURCE_SCHEMA
1354
- ];
1355
-
1356
- // src/schema/elementSchemas/groupElements/abstract.ts
1712
+ // src/schema/elementSchemas/elements/abstract.ts
1357
1713
  var ABSTRACT_SCHEMA = createSchema({
1358
1714
  code: "abstract1",
1359
- kind: "group",
1715
+ kind: "element",
1360
1716
  tag: ABSTRACT_TAG,
1361
1717
  requiredAttributes: [
1362
1718
  ...ID_ATTRS,
@@ -1374,6 +1730,7 @@ var ABSTRACT_SCHEMA = createSchema({
1374
1730
  defaultValue: "blurb"
1375
1731
  }
1376
1732
  ],
1733
+ defaultChildTagName: PARA_TAG,
1377
1734
  allowedChildTagNames: [
1378
1735
  { tagName: PARA_TAG, required: false },
1379
1736
  { tagName: TITLE_TAG, required: false },
@@ -1382,13 +1739,14 @@ var ABSTRACT_SCHEMA = createSchema({
1382
1739
  ]
1383
1740
  });
1384
1741
 
1385
- // src/schema/elementSchemas/groupElements/appendix.ts
1742
+ // src/schema/elementSchemas/elements/appendix.ts
1386
1743
  var APPENDIX_SCHEMA = createSchema({
1387
1744
  code: "appendix",
1388
- kind: "group",
1745
+ kind: "element",
1389
1746
  tag: APPENDIX_TAG,
1390
1747
  requiredAttributes: [...ID_ATTRS, "id", "xmlid"],
1391
1748
  optionalAttributes: [...TRACK_CHANGES_ATTRS],
1749
+ defaultChildTagName: PARA_TAG,
1392
1750
  allowedChildTagNames: [
1393
1751
  { tagName: PARA_TAG, required: false },
1394
1752
  { tagName: TITLE_TAG, required: false },
@@ -1396,10 +1754,10 @@ var APPENDIX_SCHEMA = createSchema({
1396
1754
  ]
1397
1755
  });
1398
1756
 
1399
- // src/schema/elementSchemas/groupElements/blockquote.ts
1757
+ // src/schema/elementSchemas/elements/blockquote.ts
1400
1758
  var BLOCKQUOTE_SCHEMA = createSchema({
1401
1759
  code: "blockquote",
1402
- kind: "group",
1760
+ kind: "element",
1403
1761
  tag: BLOCKQUOTE_TAG,
1404
1762
  requiredAttributes: [...ID_ATTRS],
1405
1763
  optionalAttributes: [
@@ -1413,6 +1771,7 @@ var BLOCKQUOTE_SCHEMA = createSchema({
1413
1771
  defaultValue: "add-element"
1414
1772
  }
1415
1773
  ],
1774
+ defaultChildTagName: PARA_TAG,
1416
1775
  allowedChildTagNames: [
1417
1776
  { tagName: PARA_TAG, required: false },
1418
1777
  { tagName: UL_TAG, required: false },
@@ -1422,10 +1781,10 @@ var BLOCKQUOTE_SCHEMA = createSchema({
1422
1781
  ]
1423
1782
  });
1424
1783
 
1425
- // src/schema/elementSchemas/groupElements/box.ts
1784
+ // src/schema/elementSchemas/elements/box.ts
1426
1785
  var BOX_SCHEMA = createSchema({
1427
1786
  code: "sidebar",
1428
- kind: "group",
1787
+ kind: "element",
1429
1788
  tag: SIDEBAR_TAG,
1430
1789
  requiredAttributes: [
1431
1790
  ...ID_ATTRS,
@@ -1444,16 +1803,17 @@ var BOX_SCHEMA = createSchema({
1444
1803
  defaultValue: "add-element"
1445
1804
  }
1446
1805
  ],
1806
+ defaultChildTagName: PARA_TAG,
1447
1807
  allowedChildTagNames: [
1448
1808
  { tagName: PARA_TAG, required: false },
1449
1809
  { tagName: TITLE_TAG, required: false }
1450
1810
  ]
1451
1811
  });
1452
1812
 
1453
- // src/schema/elementSchemas/groupElements/chapter.ts
1813
+ // src/schema/elementSchemas/elements/chapter.ts
1454
1814
  var CHAPTER_SCHEMA = createSchema({
1455
1815
  code: "chapter",
1456
- kind: "group",
1816
+ kind: "element",
1457
1817
  tag: CHAPTER_TAG,
1458
1818
  requiredAttributes: [...ID_ATTRS, "xmlid"],
1459
1819
  optionalAttributes: [
@@ -1463,6 +1823,7 @@ var CHAPTER_SCHEMA = createSchema({
1463
1823
  "data-paragraph-numbering-elements",
1464
1824
  "data-paragraph-numbering-chapters"
1465
1825
  ],
1826
+ defaultChildTagName: PARA_TAG,
1466
1827
  allowedChildTagNames: [
1467
1828
  { tagName: LRH_TAG, required: false },
1468
1829
  { tagName: RRH_TAG, required: false },
@@ -1484,10 +1845,10 @@ var CHAPTER_SCHEMA = createSchema({
1484
1845
  ]
1485
1846
  });
1486
1847
 
1487
- // src/schema/elementSchemas/groupElements/epigraph.ts
1848
+ // src/schema/elementSchemas/elements/epigraph.ts
1488
1849
  var EPIGRAPH_SCHEMA = createSchema({
1489
1850
  code: "epigraph",
1490
- kind: "group",
1851
+ kind: "element",
1491
1852
  tag: EPIGRAPH_TAG,
1492
1853
  requiredAttributes: [...ID_ATTRS],
1493
1854
  optionalAttributes: [
@@ -1499,13 +1860,14 @@ var EPIGRAPH_SCHEMA = createSchema({
1499
1860
  defaultValue: "add-element"
1500
1861
  }
1501
1862
  ],
1863
+ defaultChildTagName: PARA_TAG,
1502
1864
  allowedChildTagNames: [{ tagName: PARA_TAG, required: false }]
1503
1865
  });
1504
1866
 
1505
- // src/schema/elementSchemas/groupElements/footnoteSection.ts
1867
+ // src/schema/elementSchemas/elements/footnoteSection.ts
1506
1868
  var FOOTNOTE_SECTION_SCHEMA = createSchema({
1507
1869
  code: "footnoteSection",
1508
- kind: "group",
1870
+ kind: "element",
1509
1871
  tag: SECTION_TAG,
1510
1872
  requiredAttributes: [
1511
1873
  ...ID_ATTRS,
@@ -1516,16 +1878,17 @@ var FOOTNOTE_SECTION_SCHEMA = createSchema({
1516
1878
  }
1517
1879
  ],
1518
1880
  optionalAttributes: [...TRACK_CHANGES_ATTRS],
1881
+ defaultChildTagName: PARA_TAG,
1519
1882
  allowedChildTagNames: [
1520
1883
  { tagName: FOOTNOTE_TAG, required: true },
1521
1884
  { tagName: TITLE_TAG, required: true }
1522
1885
  ]
1523
1886
  });
1524
1887
 
1525
- // src/schema/elementSchemas/groupElements/heading.ts
1888
+ // src/schema/elementSchemas/elements/heading.ts
1526
1889
  var HEADING_SCHEMA = createSchema({
1527
1890
  code: "heading",
1528
- kind: "group",
1891
+ kind: "element",
1529
1892
  tag: SECTION_TAG,
1530
1893
  requiredAttributes: [
1531
1894
  ...ID_ATTRS,
@@ -1537,6 +1900,7 @@ var HEADING_SCHEMA = createSchema({
1537
1900
  }
1538
1901
  ],
1539
1902
  optionalAttributes: [...TRACK_CHANGES_ATTRS],
1903
+ defaultChildTagName: PARA_TAG,
1540
1904
  allowedChildTagNames: [
1541
1905
  { tagName: TITLE_TAG, required: false },
1542
1906
  { tagName: LABEL_TAG, required: false },
@@ -1557,64 +1921,217 @@ var HEADING_SCHEMA = createSchema({
1557
1921
  ]
1558
1922
  });
1559
1923
 
1560
- // src/schema/elementSchemas/groupElements/info.ts
1924
+ // src/schema/elementSchemas/elements/info.ts
1561
1925
  var INFO_SCHEMA = createSchema({
1562
1926
  code: "info1",
1563
- kind: "group",
1927
+ kind: "element",
1564
1928
  tag: INFO_TAG,
1565
1929
  requiredAttributes: [...ID_ATTRS],
1566
1930
  optionalAttributes: [],
1931
+ defaultChildTagName: SUBTITLE_TAG,
1567
1932
  allowedChildTagNames: [
1568
- { tagName: AUTHORGROUP_TAG, required: false },
1569
1933
  { tagName: LABEL_TAG, required: true },
1570
1934
  { tagName: TITLE_TAG, required: true },
1571
1935
  { tagName: SUBTITLE_TAG, required: false },
1572
1936
  { tagName: ABSTRACT_TAG, required: false },
1573
- { tagName: KEYWORDSET_TAG, required: false }
1937
+ { tagName: KEYWORDSET_TAG, required: false },
1938
+ { tagName: AUTHORGROUP_TAG, required: false }
1574
1939
  ]
1575
1940
  });
1576
1941
 
1577
- // src/schema/elementSchemas/groupElements/poem.ts
1942
+ // src/schema/elementSchemas/elements/poem.ts
1578
1943
  var POEM_SCHEMA = createSchema({
1579
1944
  code: "poem",
1580
- kind: "group",
1945
+ kind: "element",
1581
1946
  tag: POEM_TAG,
1582
1947
  requiredAttributes: [...ID_ATTRS],
1583
1948
  optionalAttributes: [...TRACK_CHANGES_ATTRS, "role"],
1949
+ defaultChildTagName: LINE_TAG,
1584
1950
  allowedChildTagNames: [
1585
1951
  { tagName: LINE_TAG, required: false },
1586
1952
  { tagName: SOURCE_TAG, required: false }
1587
1953
  ]
1588
1954
  });
1589
1955
 
1590
- // src/schema/elementSchemas/groupElements/index.ts
1591
- var GROUP_ELEMENT_SCHEMAS = [
1592
- HEADING_SCHEMA,
1593
- FOOTNOTE_SECTION_SCHEMA,
1594
- CHAPTER_SCHEMA,
1595
- INFO_SCHEMA,
1596
- ABSTRACT_SCHEMA,
1597
- EPIGRAPH_SCHEMA,
1598
- POEM_SCHEMA,
1599
- BLOCKQUOTE_SCHEMA,
1600
- BOX_SCHEMA,
1601
- APPENDIX_SCHEMA,
1602
- AUTHORGROUP_SCHEMA,
1603
- AUTHOR_SCHEMA,
1604
- PERSONNAME_SCHEMA,
1605
- AFFILIATION_SCHEMA
1606
- ];
1956
+ // src/schema/elementSchemas/elements/equation/mathphrase.ts
1957
+ var MATHPHRASE_SCHEMA = createSchema({
1958
+ code: "mathphrase",
1959
+ kind: "element",
1960
+ tag: MATHPHRASE_TAG,
1961
+ requiredAttributes: [ELE_ID_ATTRIBUTE],
1962
+ optionalAttributes: [],
1963
+ allowedChildTagNames: [{ tagName: MATH_TAG, required: true }]
1964
+ });
1965
+
1966
+ // src/schema/elementSchemas/elements/index.ts
1967
+ var ELEMENT_SCHEMAS = {
1968
+ para: PARA_SCHEMA,
1969
+ title1: TITLE_SCHEMA,
1970
+ footnote: FOOTNOTE_SCHEMA,
1971
+ footnoteno: FOOTNOTE_NUMBER_SCHEMA,
1972
+ olink: OLINK_SCHEMA,
1973
+ firstname: FIRSTNAME_SCHEMA,
1974
+ surname: SURNAME_SCHEMA,
1975
+ honorific: HONORIFIC_SCHEMA,
1976
+ orgname: ORGNAME_SCHEMA,
1977
+ email: EMAIL_SCHEMA,
1978
+ org: ORG_SCHEMA,
1979
+ degrees: DEGREES_SCHEMA,
1980
+ dialogue: DIALOGUE_SCHEMA,
1981
+ line: LINE_SCHEMA,
1982
+ speaker: SPEAKER_SCHEMA,
1983
+ equation: EQUATION_SCHEMA,
1984
+ math: MATH_SCHEMA,
1985
+ mathphrase: MATHPHRASE_SCHEMA,
1986
+ merror: MERROR_SCHEMA,
1987
+ mfrac: MFRAC_SCHEMA,
1988
+ mi: MI_SCHEMA,
1989
+ mmultiscripts: MMULTISCRIPTS_SCHEMA,
1990
+ mn: MN_SCHEMA,
1991
+ mo: MO_SCHEMA,
1992
+ mover: MOVER_SCHEMA,
1993
+ mpadded: MPADDED_SCHEMA,
1994
+ mphantom: MPHANTOM_SCHEMA,
1995
+ mprescripts: MPRESCRIPTS_SCHEMA,
1996
+ mroot: MROOT_SCHEMA,
1997
+ mrow: MROW_SCHEMA,
1998
+ ms: MS_SCHEMA,
1999
+ mspace: MSPACE_SCHEMA,
2000
+ msqrt: MSQRT_SCHEMA,
2001
+ mstyle: MSTYLE_SCHEMA,
2002
+ msub: MSUB_SCHEMA,
2003
+ msubsup: MSUBSUP_SCHEMA,
2004
+ msup: MSUP_SCHEMA,
2005
+ mtable: MTABLE_SCHEMA,
2006
+ mtd: MTD_SCHEMA,
2007
+ mtext: MTEXT_SCHEMA,
2008
+ mtr: MTR_SCHEMA,
2009
+ munder: MUNDER_SCHEMA,
2010
+ munderover: MUNDEROVER_SCHEMA,
2011
+ img: IMG_SCHEMA,
2012
+ alttext: ALTTEXT_SCHEMA,
2013
+ imageobject: IMAGEOBJECT_SCHEMA,
2014
+ mediaobject: MEDIAOBJECT_SCHEMA,
2015
+ caption1: CAPTION_SCHEMA,
2016
+ figsource: FIGSOURCE_SCHEMA,
2017
+ fignote: FIGNOTE_SCHEMA,
2018
+ figure1: FIGURE_SCHEMA,
2019
+ informalfigure: INFORMALFIGURE_SCHEMA,
2020
+ keywordset: KEYWORDSET_SCHEMA,
2021
+ keyword: KEYWORD_SCHEMA,
2022
+ punc: PUNC_SCHEMA,
2023
+ label1: LABEL_SCHEMA,
2024
+ li: LI_SCHEMA,
2025
+ ol: OL_SCHEMA,
2026
+ ul: UL_SCHEMA,
2027
+ token: TOKEN_SCHEMA,
2028
+ tag: TAG_SCHEMA,
2029
+ lrh: LRH_SCHEMA,
2030
+ rrh: RRH_SCHEMA,
2031
+ source1: SOURCE_SCHEMA,
2032
+ subtitle1: SUBTITLE_SCHEMA,
2033
+ table1: TABLE_SCHEMA,
2034
+ tgroup: TGROUP_SCHEMA,
2035
+ table: HTML_TABLE_SCHEMA,
2036
+ thead: THEAD_SCHEMA,
2037
+ tbody: TBODY_SCHEMA,
2038
+ tr: TR_SCHEMA,
2039
+ td: TD_SCHEMA,
2040
+ tp: TP_SCHEMA,
2041
+ tblfn: TBLFN_SCHEMA,
2042
+ tblsource: TBLSOURCE_SCHEMA,
2043
+ heading: HEADING_SCHEMA,
2044
+ footnoteSection: FOOTNOTE_SECTION_SCHEMA,
2045
+ chapter: CHAPTER_SCHEMA,
2046
+ info1: INFO_SCHEMA,
2047
+ abstract1: ABSTRACT_SCHEMA,
2048
+ epigraph: EPIGRAPH_SCHEMA,
2049
+ poem: POEM_SCHEMA,
2050
+ blockquote: BLOCKQUOTE_SCHEMA,
2051
+ sidebar: BOX_SCHEMA,
2052
+ appendix: APPENDIX_SCHEMA,
2053
+ authorgroup: AUTHORGROUP_SCHEMA,
2054
+ author: AUTHOR_SCHEMA,
2055
+ personname: PERSONNAME_SCHEMA,
2056
+ affiliation: AFFILIATION_SCHEMA
2057
+ };
2058
+
2059
+ // src/schema/elementSchemas/inlineElements/footnoteLink.ts
2060
+ var FOOTNOTE_LINK_SCHEMA = createSchema({
2061
+ code: "footnote1",
2062
+ kind: "inline",
2063
+ tag: FOOTNOTE_LINK_TAG,
2064
+ requiredAttributes: [...ID_ATTRS],
2065
+ optionalAttributes: ["linkend"],
2066
+ defaultChildTagName: SUP_TAG,
2067
+ allowedChildTagNames: [{ tagName: SUP_TAG, required: true }]
2068
+ });
2069
+
2070
+ // src/schema/elementSchemas/inlineElements/inlineequation.ts
2071
+ var INLINEEQUATION_SCHEMA = createSchema({
2072
+ code: "inlineequation",
2073
+ kind: "inline",
2074
+ tag: INLINEEQUATION_TAG,
2075
+ requiredAttributes: [...ID_ATTRS],
2076
+ optionalAttributes: [
2077
+ ...TRACK_CHANGES_ATTRS,
2078
+ {
2079
+ name: "eqn-data",
2080
+ values: ["new", "updated"],
2081
+ defaultValue: "new"
2082
+ },
2083
+ {
2084
+ name: "element-status",
2085
+ values: ["added", "changed"],
2086
+ defaultValue: "added"
2087
+ }
2088
+ ],
2089
+ allowedChildTagNames: [{ tagName: MATHPHRASE_TAG, required: true }]
2090
+ });
2091
+
2092
+ // src/schema/elementSchemas/inlineElements/link.ts
2093
+ var LINK_SCHEMA = createSchema({
2094
+ code: "link",
2095
+ kind: "inline",
2096
+ tag: LINK_TAG,
2097
+ requiredAttributes: [
2098
+ ...ID_ATTRS,
2099
+ "linkend",
2100
+ "data-target-id",
2101
+ {
2102
+ name: "role",
2103
+ values: ["table", "figure", "equation", "footnote", "bibr"],
2104
+ defaultValue: ""
2105
+ }
2106
+ ],
2107
+ optionalAttributes: [],
2108
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
2109
+ });
2110
+
2111
+ // src/schema/elementSchemas/inlineElements/uri.ts
2112
+ var URI_SCHEMA = createSchema({
2113
+ code: "uri",
2114
+ kind: "inline",
2115
+ tag: URI_TAG,
2116
+ requiredAttributes: [...ID_ATTRS],
2117
+ optionalAttributes: ["linkend"],
2118
+ allowedChildTagNames: [...ATOM_TAGS_ALLOWED_CHILDREN]
2119
+ });
2120
+
2121
+ // src/schema/elementSchemas/inlineElements/index.ts
2122
+ var INLINE_ELEMENT_SCHEMAS = {
2123
+ uri: URI_SCHEMA,
2124
+ footnote1: FOOTNOTE_LINK_SCHEMA,
2125
+ link: LINK_SCHEMA,
2126
+ inlineequation: INLINEEQUATION_SCHEMA
2127
+ };
1607
2128
 
1608
2129
  // src/schema/schemas.ts
1609
- var SCHEMAS = [
2130
+ var SCHEMAS = {
1610
2131
  ...ATOM_SCHEMAS,
1611
2132
  ...ELEMENT_SCHEMAS,
1612
- ...GROUP_ELEMENT_SCHEMAS,
1613
2133
  ...INLINE_ELEMENT_SCHEMAS
1614
- ];
1615
- var SCHEMA_MAP = new Map(
1616
- SCHEMAS.map((schema) => [schema.code, schema])
1617
- );
2134
+ };
1618
2135
 
1619
2136
  // src/schema/shared/ignoredElements.ts
1620
2137
  var IGNORED_ELEMENT_SELECTORS = [
@@ -1641,29 +2158,30 @@ var IGNORED_ATTRIBUTES = [
1641
2158
  "dir",
1642
2159
  "hidden"
1643
2160
  ];
1644
- var IGNORED_ATTRIBUTES_STARTS_WITH = ["er-"];
2161
+ var IGNORED_ATTRIBUTES_STARTS_WITH = ["er-", "er_"];
1645
2162
 
1646
2163
  // src/schema/utils/utils.ts
1647
2164
  var isIgnoredAttribute = (attribute) => IGNORED_ATTRIBUTES.includes(attribute) || IGNORED_ATTRIBUTES_STARTS_WITH.some(
1648
2165
  (startsWith) => attribute.startsWith(startsWith)
1649
2166
  );
1650
2167
  var isIgnoredElement = (element) => IGNORED_ELEMENT_SELECTORS.some((selector) => element.matches(selector));
1651
- var findSchemaByCode = (code) => SCHEMA_MAP.get(code);
2168
+ var findSchemaByCode = (code) => SCHEMAS[code];
1652
2169
  var findSchemaByElement = (element) => {
2170
+ const tagName = element.tagName.toUpperCase();
1653
2171
  const isInsertion = element.classList.contains("ins");
1654
2172
  const isDeletion = element.classList.contains("del");
1655
2173
  const isQueryComment = element.classList.contains("cmtQurySection");
1656
2174
  const role = element.getAttribute("role");
1657
- if (isQueryComment) {
2175
+ if (isQueryComment && tagName === SPAN_TAG) {
1658
2176
  return findSchemaByCode("commentQuerySection");
1659
2177
  }
1660
- if (isInsertion) {
2178
+ if (isInsertion && tagName === SPAN_TAG) {
1661
2179
  return findSchemaByCode("insertion");
1662
2180
  }
1663
- if (isDeletion) {
2181
+ if (isDeletion && tagName === SPAN_TAG) {
1664
2182
  return findSchemaByCode("deletion");
1665
2183
  }
1666
- if (role) {
2184
+ if (role && tagName === SECTION_TAG) {
1667
2185
  if (role.startsWith("H")) {
1668
2186
  return findSchemaByCode("heading");
1669
2187
  }
@@ -1671,7 +2189,7 @@ var findSchemaByElement = (element) => {
1671
2189
  return findSchemaByCode("footnoteSection");
1672
2190
  }
1673
2191
  }
1674
- const candidates = [...SCHEMA_MAP.values()].filter(
2192
+ const candidates = Object.values(SCHEMAS).filter(
1675
2193
  (schema) => schema.tag === element.tagName.toUpperCase()
1676
2194
  );
1677
2195
  if (candidates.length > 0) {
@@ -1692,9 +2210,13 @@ var findAttributeDefinitionByName = (definitions, name) => {
1692
2210
 
1693
2211
  // src/schema/utils/createElement.ts
1694
2212
  var createElement = ({
1695
- schema,
2213
+ schemaCode,
1696
2214
  attributes
1697
2215
  }) => {
2216
+ const schema = findSchemaByCode(schemaCode);
2217
+ if (!schema) {
2218
+ throw new Error(`Schema not found for code: ${schemaCode}`);
2219
+ }
1698
2220
  const element = document.createElement(schema.tag.toLowerCase());
1699
2221
  for (const [name, value] of Object.entries(attributes)) {
1700
2222
  if (value === void 0) {
@@ -1721,6 +2243,8 @@ var createValidationIssue = (issue) => ({
1721
2243
  var addValidationIssue = (errors, issue) => {
1722
2244
  errors.push(createValidationIssue(issue));
1723
2245
  };
2246
+
2247
+ // src/validation/utils/getStore.ts
1724
2248
  var getStore = (element) => {
1725
2249
  return element.getAttribute("store") || "";
1726
2250
  };
@@ -1829,21 +2353,12 @@ var validateConsecutiveFootnoteCues = (root) => {
1829
2353
  }
1830
2354
  return [];
1831
2355
  };
1832
- var validateFootnotes = (root) => {
1833
- const errors = [];
1834
- for (const footnote of root.querySelectorAll(FOOTNOTE_SCHEMA.tag)) {
1835
- errors.push(...validateFootnoteCue(footnote, root));
1836
- }
1837
- errors.push(...validateConsecutiveFootnotes(root));
1838
- errors.push(...validateConsecutiveFootnoteCues(root));
1839
- return errors;
1840
- };
1841
2356
 
1842
2357
  // src/validation/validateLinkend.ts
1843
2358
  var findElementLinkedTo = (linkend, elementsLinkedTo) => {
1844
2359
  return elementsLinkedTo.includes(linkend);
1845
2360
  };
1846
- var validateLinkend = (linkElement, elementsLinkedTo = []) => {
2361
+ var validateLinkend = (linkElement, elementsLinkedTo) => {
1847
2362
  const linkend = linkElement.getAttribute("linkend");
1848
2363
  if (!linkend) {
1849
2364
  return [];
@@ -2037,7 +2552,7 @@ var validateChildren = (element, schema) => {
2037
2552
  return errors;
2038
2553
  };
2039
2554
 
2040
- // src/validation/validateXml.ts
2555
+ // src/validation/utils/getLinkableRoles.ts
2041
2556
  var getLinkableRoles = () => {
2042
2557
  const linkRoleDefinition = findAttributeDefinitionByName(
2043
2558
  LINK_SCHEMA.requiredAttributes,
@@ -2051,14 +2566,18 @@ var getLinkableRoles = () => {
2051
2566
  }
2052
2567
  return [];
2053
2568
  };
2054
- var validateElement = (element, root, elementsLinkedTo) => {
2569
+
2570
+ // src/validation/validateXml.ts
2571
+ var validateElement = (element, root, elementsLinkedTo, shouldValidateAgainstSchema = false) => {
2055
2572
  if (isIgnoredElement(element)) {
2056
2573
  return [];
2057
2574
  }
2058
2575
  const errors = [];
2059
2576
  const schema = findSchemaByElement(element);
2060
2577
  if (schema) {
2061
- errors.push(...validateElementAgainstSchema(element, schema));
2578
+ if (shouldValidateAgainstSchema) {
2579
+ errors.push(...validateElementAgainstSchema(element, schema));
2580
+ }
2062
2581
  const role = element.getAttribute("role") || "";
2063
2582
  const linkableRoles = getLinkableRoles();
2064
2583
  if (schema.tag === LINK_SCHEMA.tag && linkableRoles.includes(role) || schema.tag === FOOTNOTE_LINK_SCHEMA.tag) {
@@ -2073,198 +2592,52 @@ var validateElement = (element, root, elementsLinkedTo) => {
2073
2592
  }
2074
2593
  return errors;
2075
2594
  };
2076
- var validateXml = (xml, elementsLinkedTo) => {
2595
+ var validateXml = (xml, elementsLinkedTo, shouldValidateAgainstSchema) => {
2077
2596
  const errors = [];
2078
2597
  errors.push(...validateConsecutiveFootnotes(xml));
2079
2598
  errors.push(...validateConsecutiveFootnoteCues(xml));
2080
2599
  for (const child of Array.from(xml.children)) {
2081
- errors.push(...validateElement(child, xml, elementsLinkedTo));
2600
+ errors.push(
2601
+ ...validateElement(
2602
+ child,
2603
+ xml,
2604
+ elementsLinkedTo,
2605
+ shouldValidateAgainstSchema
2606
+ )
2607
+ );
2082
2608
  }
2083
2609
  return errors;
2084
2610
  };
2085
2611
  export {
2086
- ABSTRACT_SCHEMA,
2087
- ABSTRACT_TAG,
2088
- AFFILIATION_SCHEMA,
2089
- AFFILIATION_TAG,
2090
2612
  ALIGNMENT_ATTRIBUTE,
2091
- ALTTEXT_SCHEMA,
2092
- ALTTEXT_TAG,
2093
- APPENDIX_SCHEMA,
2094
- APPENDIX_TAG,
2095
2613
  ATOM_SCHEMAS,
2096
- AUTHORGROUP_SCHEMA,
2097
- AUTHORGROUP_TAG,
2098
- AUTHOR_SCHEMA,
2099
- AUTHOR_TAG,
2100
- BLOCKQUOTE_SCHEMA,
2101
- BLOCKQUOTE_TAG,
2102
- BOX_SCHEMA,
2103
- B_SCHEMA,
2104
- CAPTION_SCHEMA,
2105
- CAPTION_TAG,
2106
- CHAPTER_SCHEMA,
2107
- CHAPTER_TAG,
2108
- COMMENT_QUERY_SECTION_SCHEMA,
2109
- COMMENT_SCHEMA,
2110
- CONTENT_SCHEMA,
2111
- DEGREES_SCHEMA,
2112
- DEGREES_TAG,
2113
- DELETION_SCHEMA,
2114
- DIALOGUE_SCHEMA,
2115
- DIALOGUE_TAG,
2116
2614
  ELEMENT_SCHEMAS,
2117
- ELEMENT_TAGS,
2118
2615
  ELE_ID_ATTRIBUTE,
2119
- EMAIL_SCHEMA,
2120
- EMAIL_TAG,
2121
- EMPHASIS_SCHEMA,
2122
- EPIGRAPH_SCHEMA,
2123
- EPIGRAPH_TAG,
2124
- EQUATION_SCHEMA,
2125
- EQUATION_TAG,
2126
- FIGNOTE_SCHEMA,
2127
- FIGNOTE_TAG,
2128
- FIGSOURCE_SCHEMA,
2129
- FIGSOURCE_TAG,
2130
2616
  FIGURE_PLACEMENT_ATTRIBUTE,
2131
- FIGURE_SCHEMA,
2132
- FIGURE_TAG,
2133
- FIRSTNAME_SCHEMA,
2134
- FIRSTNAME_TAG,
2135
- FOOTNOTE_LINK_SCHEMA,
2136
- FOOTNOTE_LINK_TAG,
2137
- FOOTNOTE_NUMBER_SCHEMA,
2138
- FOOTNOTE_NUMBER_TAG,
2139
- FOOTNOTE_SCHEMA,
2140
- FOOTNOTE_SECTION_SCHEMA,
2141
- FOOTNOTE_TAG,
2142
- GROUP_ELEMENTS_TAGS,
2143
- GROUP_ELEMENT_SCHEMAS,
2144
- HEADING_SCHEMA,
2145
- HIGHLIGHTMARK_SCHEMA,
2146
- HONORIFIC_SCHEMA,
2147
- HONORIFIC_TAG,
2148
- HTML_TABLE_SCHEMA,
2149
- HTML_TABLE_TAG,
2150
2617
  ID_ATTRS,
2151
2618
  IGNORED_ATTRIBUTES,
2152
2619
  IGNORED_ATTRIBUTES_STARTS_WITH,
2153
2620
  IGNORED_ELEMENT_SELECTORS,
2154
- IMAGEOBJECT_SCHEMA,
2155
- IMAGEOBJECT_TAG,
2156
- IMG_SCHEMA,
2157
- IMG_TAG,
2158
2621
  INDENT_TYPE_ATTRIBUTE,
2159
- INFORMALFIGURE_SCHEMA,
2160
- INFORMALFIGURE_TAG,
2161
- INFO_SCHEMA,
2162
- INFO_TAG,
2163
- INLINEEQUATION_SCHEMA,
2164
- INLINEEQUATION_TAG,
2165
2622
  INLINE_ELEMENT_SCHEMAS,
2166
- INLINE_ELEMENT_TAGS_ALLOWED_CHILDREN,
2167
- INSERTION_SCHEMA,
2168
- I_SCHEMA,
2169
- KEYWORDSET_SCHEMA,
2170
- KEYWORDSET_TAG,
2171
- KEYWORD_SCHEMA,
2172
- KEYWORD_TAG,
2173
- LABEL_SCHEMA,
2174
- LABEL_TAG,
2175
2623
  LAYOUT_ATTRIBUTES,
2176
2624
  LAYOUT_CELL_WIDTH,
2177
2625
  LAYOUT_USER_ATTRIBUTE,
2178
2626
  LEFT_INDENT_ATTRIBUTE,
2179
- LINE_SCHEMA,
2180
- LINE_TAG,
2181
- LINK_SCHEMA,
2182
- LINK_TAG,
2183
- LI_SCHEMA,
2184
- LI_TAG,
2185
- LRH_SCHEMA,
2186
- LRH_TAG,
2187
- MEDIAOBJECT_SCHEMA,
2188
- MEDIAOBJECT_TAG,
2189
- OLINK_SCHEMA,
2190
- OLINK_TAG,
2191
- OL_SCHEMA,
2192
- OL_TAG,
2193
- ORGNAME_SCHEMA,
2194
- ORGNAME_TAG,
2195
- ORG_SCHEMA,
2196
- ORG_TAG,
2197
2627
  ORIENTATION_ATTRIBUTE,
2198
- PARA_SCHEMA,
2199
- PARA_TAG,
2200
- PERSONNAME_SCHEMA,
2201
- PERSONNAME_TAG,
2202
2628
  PLACEMENT_ATTRIBUTE,
2203
- POEM_SCHEMA,
2204
- POEM_TAG,
2205
- POSTNOMINALS_TAG,
2206
- PUNC_SCHEMA,
2207
- PUNC_TAG,
2208
- QUERY_SCHEMA,
2209
- REPLY_SCHEMA,
2210
2629
  RIGHT_INDENT_ATTRIBUTE,
2211
- RRH_SCHEMA,
2212
- RRH_TAG,
2213
2630
  SCHEMAS,
2214
- SCHEMA_MAP,
2215
- SC_SCHEMA,
2216
- SECTION_TAG,
2217
- SIDEBAR_TAG,
2218
- SOURCE_SCHEMA,
2219
- SOURCE_TAG,
2220
2631
  SPACE_ABOVE_ATTRIBUTE,
2221
2632
  SPACE_BELOW_ATTRIBUTE,
2222
- SPEAKER_SCHEMA,
2223
- SPEAKER_TAG,
2224
2633
  SPECIAL_INDENT_ATTRIBUTE,
2225
2634
  STORE_ATTRIBUTE,
2226
- STRIKE_SCHEMA,
2227
2635
  STYLE_NAME_ATTRIBUTE,
2228
- SUBTITLE_SCHEMA,
2229
- SUBTITLE_TAG,
2230
- SUB_SCHEMA,
2231
- SUP_SCHEMA,
2232
- SURNAME_SCHEMA,
2233
- SURNAME_TAG,
2234
- TABLE_SCHEMA,
2235
- TABLE_TAG,
2236
- TAG_SCHEMA,
2237
- TAG_TAG,
2238
- TBLFN_SCHEMA,
2239
- TBLFN_TAG,
2240
- TBLSOURCE_SCHEMA,
2241
- TBLSOURCE_TAG,
2242
- TBODY_SCHEMA,
2243
- TBODY_TAG,
2244
- TD_SCHEMA,
2245
- TD_TAG,
2246
- TGROUP_SCHEMA,
2247
- TGROUP_TAG,
2248
- THEAD_SCHEMA,
2249
- THEAD_TAG,
2250
- TITLE_SCHEMA,
2251
- TITLE_TAG,
2252
- TOKEN_SCHEMA,
2253
- TOKEN_TAG,
2254
- TP_SCHEMA,
2255
- TP_TAG,
2256
2636
  TRACK_CHANGES_ATTRS,
2257
2637
  TRACK_CHANGES_ATTR_DATA_DATE,
2258
2638
  TRACK_CHANGES_ATTR_DATA_TIME,
2259
2639
  TRACK_CHANGES_ATTR_DATA_USERID,
2260
2640
  TRACK_CHANGES_ATTR_DATA_USERNAME,
2261
- TR_SCHEMA,
2262
- TR_TAG,
2263
- UL_SCHEMA,
2264
- UL_TAG,
2265
- URI_SCHEMA,
2266
- URI_TAG,
2267
- U_SCHEMA,
2268
2641
  createElement,
2269
2642
  findAttributeDefinitionByName,
2270
2643
  findSchemaByCode,
@@ -2273,13 +2646,5 @@ export {
2273
2646
  isAttributeRestricted,
2274
2647
  isIgnoredAttribute,
2275
2648
  isIgnoredElement,
2276
- validateAttributes,
2277
- validateConsecutiveFootnoteCues,
2278
- validateConsecutiveFootnotes,
2279
- validateElement,
2280
- validateElementAgainstSchema,
2281
- validateFootnoteCue,
2282
- validateFootnotes,
2283
- validateLinkend,
2284
2649
  validateXml
2285
2650
  };