-
Notifications
You must be signed in to change notification settings - Fork 53
/
ParlaMint.odd.rnc
3202 lines (2960 loc) · 98.4 KB
/
ParlaMint.odd.rnc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace eg = "http://www.tei-c.org/ns/Examples"
namespace egXML = "http://www.tei-c.org/ns/Examples"
namespace ns1 = "http://www.w3.org/1999/xhtml"
namespace pm = "ParlaMint"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace sch = "http://purl.oclc.org/dsdl/schematron"
default namespace tei = "http://www.tei-c.org/ns/1.0"
namespace teix = "http://www.tei-c.org/ns/Examples"
namespace xi = "http://www.w3.org/2001/XInclude"
namespace xlink = "http://www.w3.org/1999/xlink"
namespace xsl = "http://www.w3.org/1999/XSL/Transform"
# Schema generated from ODD source 2024-10-05T08:48:34Z. 2024-05-14.
# TEI Edition: Version 4.6.0a. Last updated on
# 5th January 2023, revision 9074b9038
# TEI Edition Location: https://www.tei-c.org/Vault/P5/Version 4.6.0a./
#
# This file is freely available and you are hereby authorised to copy, modify, and redistribute it in any way without further reference or permissions.
tei_att.ascribed.attributes = tei_att.ascribed.attribute.who
tei_att.ascribed.attribute.who =
## indicates the person, or group of people, to whom the element content is ascribed.
attribute who {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
tei_att.canonical.attributes =
tei_att.canonical.attribute.key, tei_att.canonical.attribute.ref
tei_att.canonical.attribute.key =
## provides an externally-defined means of identifying the entity (or entities) being named, using a coded value of some kind.
attribute key { xsd:string }?
tei_att.canonical.attribute.ref =
## (reference) provides an explicit means of locating a full definition or identity for the entity being named by means of one or more URIs.
attribute ref {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
tei_att.ranging.attribute.atLeast =
## gives a minimum estimated value for the approximate measurement.
attribute atLeast {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
tei_att.ranging.attribute.atMost =
## gives a maximum estimated value for the approximate measurement.
attribute atMost {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
tei_att.ranging.attribute.min =
## where the measurement summarizes more than one observation or a range, supplies the minimum value observed.
attribute min {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
tei_att.ranging.attribute.max =
## where the measurement summarizes more than one observation or a range, supplies the maximum value observed.
attribute max {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
tei_att.ranging.attribute.confidence =
[
a:documentation [
"specifies the degree of statistical confidence (between zero and one) that a value falls within the range specified by "
ns1:code [ "@min" ]
" and "
ns1:code [ "@max" ]
", or the proportion of observed values that fall within that range."
]
]
attribute confidence { xsd:double }?
tei_att.datable.w3c.attribute.when =
## supplies the value of the date or time in a standard form, e.g. yyyy-mm-dd.
attribute when {
xsd:date
| xsd:gYear
| xsd:gMonth
| xsd:gDay
| xsd:gYearMonth
| xsd:gMonthDay
| xsd:time
| xsd:dateTime
}?
tei_att.datable.w3c.attribute.notBefore =
## specifies the earliest possible date for the event in standard form, e.g. yyyy-mm-dd.
attribute notBefore {
xsd:date
| xsd:gYear
| xsd:gMonth
| xsd:gDay
| xsd:gYearMonth
| xsd:gMonthDay
| xsd:time
| xsd:dateTime
}?
tei_att.datable.w3c.attribute.notAfter =
## specifies the latest possible date for the event in standard form, e.g. yyyy-mm-dd.
attribute notAfter {
xsd:date
| xsd:gYear
| xsd:gMonth
| xsd:gDay
| xsd:gYearMonth
| xsd:gMonthDay
| xsd:time
| xsd:dateTime
}?
tei_att.datable.w3c.attribute.from =
## indicates the starting point of the period in standard form, e.g. yyyy-mm-dd.
attribute from {
xsd:date
| xsd:gYear
| xsd:gMonth
| xsd:gDay
| xsd:gYearMonth
| xsd:gMonthDay
| xsd:time
| xsd:dateTime
}?
tei_att.datable.w3c.attribute.to =
## indicates the ending point of the period in standard form, e.g. yyyy-mm-dd.
attribute to {
xsd:date
| xsd:gYear
| xsd:gMonth
| xsd:gDay
| xsd:gYearMonth
| xsd:gMonthDay
| xsd:time
| xsd:dateTime
}?
sch:pattern [
id =
"parlamint-att.datable.w3c-att-datable-w3c-when-constraint-rule-1"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@when]"
"\x{a}" ~
" "
sch:report [
test = "@notBefore|@notAfter|@from|@to"
role = "nonfatal"
"The @when attribute cannot be used with any other att.datable.w3c attributes."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
sch:pattern [
id =
"parlamint-att.datable.w3c-att-datable-w3c-from-constraint-rule-2"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@from]"
"\x{a}" ~
" "
sch:report [
test = "@notBefore"
role = "nonfatal"
"The @from and @notBefore attributes cannot be used together."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
sch:pattern [
id = "parlamint-att.datable.w3c-att-datable-w3c-to-constraint-rule-3"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@to]"
"\x{a}" ~
" "
sch:report [
test = "@notAfter"
role = "nonfatal"
"The @to and @notAfter attributes cannot be used together."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
sch:pattern [
id = "parlamint-att.datable-calendar-calendar-constraint-rule-4"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@calendar]"
"\x{a}" ~
" "
sch:assert [
test = "string-length( normalize-space(.) ) gt 0"
" @calendar indicates one or more\x{a}" ~
" systems or calendars to which the date represented by the content of this element belongs,\x{a}" ~
" but this "
sch:name [ ]
" element has no textual content."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
tei_att.datcat.attribute.datcat =
[
a:documentation [
"provides a pointer to a definition of, and/or general information about, (a) an information container (element or attribute) or (b) a value of an information container (element content or attribute value), by referencing an external taxonomy or ontology. If "
ns1:code [ "@valueDatcat" ]
" is present in the immediate context, this attribute takes on role (a), while "
ns1:code [ "@valueDatcat" ]
" performs role (b)."
]
]
attribute datcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
tei_att.datcat.attribute.valueDatcat =
[
a:documentation [
"provides a definition of, and/or general information about a value of an information container (element content or attribute value), by reference to an external taxonomy or ontology. Used especially where a contrast with "
ns1:code [ "@datcat" ]
" is needed."
]
]
attribute valueDatcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
tei_att.datcat.attribute.targetDatcat =
[
a:documentation [
"provides a definition of, and/or general information about, information structure of an object referenced or modeled by the containing element, by reference to an external taxonomy or ontology. This attribute has the characteristics of the "
ns1:code [ "@datcat" ]
" attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element."
]
]
attribute targetDatcat {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
tei_att.declarable.attribute.default =
## indicates whether or not this element is selected by default when its parent is selected.
[ a:defaultValue = "false" ]
attribute default {
## This element is selected if its parent is selected
"true"
|
## This element can only be selected explicitly, unless it is the only one of its kind, in which case it is selected if its parent is selected.
"false"
}?
tei_att.fragmentable.attribute.part =
## specifies whether or not its parent element is fragmented in some way, typically by some other overlapping structure: for example a speech which is divided between two or more verse stanzas, a paragraph which is split across a page division, a verse line which is divided between two speakers.
[ a:defaultValue = "N" ]
attribute part {
## (yes) the element is fragmented in some (unspecified) respect
"Y"
|
## (no) the element is not fragmented, or no claim is made as to its completeness
"N"
|
## (initial) this is the initial part of a fragmented element
"I"
|
## (medial) this is a medial part of a fragmented element
"M"
|
## (final) this is the final part of a fragmented element
"F"
}?
tei_att.duration.w3c.attributes = tei_att.duration.w3c.attribute.dur
tei_att.duration.w3c.attribute.dur =
## (duration) indicates the length of this element in time.
attribute dur { xsd:duration }?
tei_att.global.rendition.attributes =
tei_att.global.rendition.attribute.rend,
tei_att.global.rendition.attribute.style,
tei_att.global.rendition.attribute.rendition
tei_att.global.rendition.attribute.rend =
## (rendition) indicates how the element in question was rendered or presented in the source text.
attribute rend {
list {
xsd:token { pattern = "[^\p{C}\p{Z}]+" }+
}
}?
tei_att.global.rendition.attribute.style =
## contains an expression in some formal style definition language which defines the rendering or presentation used for this element in the source text
attribute style { xsd:string }?
tei_att.global.rendition.attribute.rendition =
## points to a description of the rendering or presentation used for this element in the source text.
attribute rendition {
list {
xsd:anyURI { pattern = "\S+" }+
}
}?
tei_att.media.attribute.scale =
## Where the media are displayed, indicates a scale factor to be applied when generating the desired display size
attribute scale {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
tei_att.segLike.attribute.function =
## (function) characterizes the function of the segment.
attribute function {
xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?
sch:pattern [
id =
"parlamint-att.spanning-spanTo-spanTo-points-to-following-constraint-rule-5"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@spanTo]"
"\x{a}" ~
" "
sch:assert [
test =
"id(substring(@spanTo,2)) and following::*[@xml:id=substring(current()/@spanTo,2)]"
"\x{a}" ~
"The element indicated by @spanTo ("
sch:value-of [ select = "@spanTo" ]
") must follow the current element "
sch:name [ ]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
tei_model.nameLike.agent = tei_name | tei_orgName | tei_persName
tei_model.nameLike.agent_alternation =
tei_name | tei_orgName | tei_persName
tei_model.nameLike.agent_sequence = tei_name, tei_orgName, tei_persName
tei_model.nameLike.agent_sequenceOptional =
tei_name?, tei_orgName?, tei_persName?
tei_model.nameLike.agent_sequenceOptionalRepeatable =
tei_name*, tei_orgName*, tei_persName*
tei_model.nameLike.agent_sequenceRepeatable =
tei_name+, tei_orgName+, tei_persName+
tei_model.segLike = tei_seg | tei_s | tei_phr | tei_w | tei_pc
tei_model.segLike_alternation =
tei_seg | tei_s | tei_phr | tei_w | tei_pc
tei_model.segLike_sequence = tei_seg, tei_s, tei_phr, tei_w, tei_pc
tei_model.segLike_sequenceOptional =
tei_seg?, tei_s?, tei_phr?, tei_w?, tei_pc?
tei_model.segLike_sequenceOptionalRepeatable =
tei_seg*, tei_s*, tei_phr*, tei_w*, tei_pc*
tei_model.segLike_sequenceRepeatable =
tei_seg+, tei_s+, tei_phr+, tei_w+, tei_pc+
tei_model.hiLike = notAllowed
tei_model.hiLike_alternation = notAllowed
tei_model.hiLike_sequence = empty
tei_model.hiLike_sequenceOptional = empty
tei_model.hiLike_sequenceOptionalRepeatable = empty
tei_model.hiLike_sequenceRepeatable = notAllowed
tei_model.emphLike = tei_term | tei_title
tei_model.emphLike_alternation = tei_term | tei_title
tei_model.emphLike_sequence = tei_term, tei_title
tei_model.emphLike_sequenceOptional = tei_term?, tei_title?
tei_model.emphLike_sequenceOptionalRepeatable = tei_term*, tei_title*
tei_model.emphLike_sequenceRepeatable = tei_term+, tei_title+
tei_model.highlighted = tei_model.hiLike | tei_model.emphLike
tei_model.highlighted_alternation =
tei_model.hiLike_alternation | tei_model.emphLike_alternation
tei_model.highlighted_sequence =
tei_model.hiLike_sequence, tei_model.emphLike_sequence
tei_model.highlighted_sequenceOptional =
tei_model.hiLike_sequenceOptional?,
tei_model.emphLike_sequenceOptional?
tei_model.highlighted_sequenceOptionalRepeatable =
tei_model.hiLike_sequenceOptionalRepeatable*,
tei_model.emphLike_sequenceOptionalRepeatable*
tei_model.highlighted_sequenceRepeatable =
tei_model.hiLike_sequenceRepeatable+,
tei_model.emphLike_sequenceRepeatable+
tei_model.dateLike = tei_date | tei_time
tei_model.dateLike_alternation = tei_date | tei_time
tei_model.dateLike_sequence = tei_date, tei_time
tei_model.dateLike_sequenceOptional = tei_date?, tei_time?
tei_model.dateLike_sequenceOptionalRepeatable = tei_date*, tei_time*
tei_model.dateLike_sequenceRepeatable = tei_date+, tei_time+
tei_model.measureLike = tei_num | tei_measure | tei_unit
tei_model.measureLike_alternation = tei_num | tei_measure | tei_unit
tei_model.measureLike_sequence = tei_num, tei_measure, tei_unit
tei_model.measureLike_sequenceOptional =
tei_num?, tei_measure?, tei_unit?
tei_model.measureLike_sequenceOptionalRepeatable =
tei_num*, tei_measure*, tei_unit*
tei_model.measureLike_sequenceRepeatable =
tei_num+, tei_measure+, tei_unit+
tei_model.egLike = notAllowed
tei_model.egLike_alternation = notAllowed
tei_model.egLike_sequence = empty
tei_model.egLike_sequenceOptional = empty
tei_model.egLike_sequenceOptionalRepeatable = empty
tei_model.egLike_sequenceRepeatable = notAllowed
tei_model.graphicLike = tei_media | tei_graphic
tei_model.graphicLike_alternation = tei_media | tei_graphic
tei_model.graphicLike_sequence = tei_media, tei_graphic
tei_model.graphicLike_sequenceOptional = tei_media?, tei_graphic?
tei_model.graphicLike_sequenceOptionalRepeatable =
tei_media*, tei_graphic*
tei_model.graphicLike_sequenceRepeatable = tei_media+, tei_graphic+
tei_model.offsetLike = notAllowed
tei_model.offsetLike_alternation = notAllowed
tei_model.offsetLike_sequence = empty
tei_model.offsetLike_sequenceOptional = empty
tei_model.offsetLike_sequenceOptionalRepeatable = empty
tei_model.offsetLike_sequenceRepeatable = notAllowed
tei_model.pPart.msdesc = notAllowed
tei_model.pPart.msdesc_alternation = notAllowed
tei_model.pPart.msdesc_sequence = empty
tei_model.pPart.msdesc_sequenceOptional = empty
tei_model.pPart.msdesc_sequenceOptionalRepeatable = empty
tei_model.pPart.msdesc_sequenceRepeatable = notAllowed
tei_model.pPart.editorial = notAllowed
tei_model.pPart.editorial_alternation = notAllowed
tei_model.pPart.editorial_sequence = empty
tei_model.pPart.editorial_sequenceOptional = empty
tei_model.pPart.editorial_sequenceOptionalRepeatable = empty
tei_model.pPart.editorial_sequenceRepeatable = notAllowed
tei_model.pPart.transcriptional = notAllowed
tei_model.pPart.transcriptional_alternation = notAllowed
tei_model.pPart.transcriptional_sequence = empty
tei_model.pPart.transcriptional_sequenceOptional = empty
tei_model.pPart.transcriptional_sequenceOptionalRepeatable = empty
tei_model.pPart.transcriptional_sequenceRepeatable = notAllowed
tei_model.pPart.edit =
tei_model.pPart.editorial | tei_model.pPart.transcriptional
tei_model.pPart.edit_alternation =
tei_model.pPart.editorial_alternation
| tei_model.pPart.transcriptional_alternation
tei_model.pPart.edit_sequence =
tei_model.pPart.editorial_sequence,
tei_model.pPart.transcriptional_sequence
tei_model.pPart.edit_sequenceOptional =
tei_model.pPart.editorial_sequenceOptional?,
tei_model.pPart.transcriptional_sequenceOptional?
tei_model.pPart.edit_sequenceOptionalRepeatable =
tei_model.pPart.editorial_sequenceOptionalRepeatable*,
tei_model.pPart.transcriptional_sequenceOptionalRepeatable*
tei_model.pPart.edit_sequenceRepeatable =
tei_model.pPart.editorial_sequenceRepeatable+,
tei_model.pPart.transcriptional_sequenceRepeatable+
tei_model.ptrLike = tei_ref
tei_model.ptrLike_alternation = tei_ref
tei_model.ptrLike_sequence = tei_ref
tei_model.ptrLike_sequenceOptional = tei_ref?
tei_model.ptrLike_sequenceOptionalRepeatable = tei_ref*
tei_model.ptrLike_sequenceRepeatable = tei_ref+
tei_model.lPart = notAllowed
tei_model.lPart_alternation = notAllowed
tei_model.lPart_sequence = empty
tei_model.lPart_sequenceOptional = empty
tei_model.lPart_sequenceOptionalRepeatable = empty
tei_model.lPart_sequenceRepeatable = notAllowed
tei_model.global.meta = tei_link | tei_linkGrp
tei_model.global.meta_alternation = tei_link | tei_linkGrp
tei_model.global.meta_sequence = tei_link, tei_linkGrp
tei_model.global.meta_sequenceOptional = tei_link?, tei_linkGrp?
tei_model.global.meta_sequenceOptionalRepeatable =
tei_link*, tei_linkGrp*
tei_model.global.meta_sequenceRepeatable = tei_link+, tei_linkGrp+
tei_model.milestoneLike = tei_pb
tei_model.milestoneLike_alternation = tei_pb
tei_model.milestoneLike_sequence = tei_pb
tei_model.milestoneLike_sequenceOptional = tei_pb?
tei_model.milestoneLike_sequenceOptionalRepeatable = tei_pb*
tei_model.milestoneLike_sequenceRepeatable = tei_pb+
tei_model.oddDecl = notAllowed
tei_model.oddDecl_alternation = notAllowed
tei_model.oddDecl_sequence = empty
tei_model.oddDecl_sequenceOptional = empty
tei_model.oddDecl_sequenceOptionalRepeatable = empty
tei_model.oddDecl_sequenceRepeatable = notAllowed
tei_model.phrase.xml = notAllowed
tei_model.phrase.xml_alternation = notAllowed
tei_model.phrase.xml_sequence = empty
tei_model.phrase.xml_sequenceOptional = empty
tei_model.phrase.xml_sequenceOptionalRepeatable = empty
tei_model.phrase.xml_sequenceRepeatable = notAllowed
tei_model.specDescLike = notAllowed
tei_model.specDescLike_alternation = notAllowed
tei_model.specDescLike_sequence = empty
tei_model.specDescLike_sequenceOptional = empty
tei_model.specDescLike_sequenceOptionalRepeatable = empty
tei_model.specDescLike_sequenceRepeatable = notAllowed
tei_model.biblLike = tei_bibl
tei_model.biblLike_alternation = tei_bibl
tei_model.biblLike_sequence = tei_bibl
tei_model.biblLike_sequenceOptional = tei_bibl?
tei_model.biblLike_sequenceOptionalRepeatable = tei_bibl*
tei_model.biblLike_sequenceRepeatable = tei_bibl+
tei_model.labelLike = tei_desc | tei_label
tei_model.labelLike_alternation = tei_desc | tei_label
tei_model.labelLike_sequence = tei_desc, tei_label
tei_model.labelLike_sequenceOptional = tei_desc?, tei_label?
tei_model.labelLike_sequenceOptionalRepeatable = tei_desc*, tei_label*
tei_model.labelLike_sequenceRepeatable = tei_desc+, tei_label+
tei_model.listLike =
tei_listOrg | tei_listEvent | tei_listPerson | tei_listRelation
tei_model.listLike_alternation =
tei_listOrg | tei_listEvent | tei_listPerson | tei_listRelation
tei_model.listLike_sequence =
tei_listOrg, tei_listEvent, tei_listPerson, tei_listRelation
tei_model.listLike_sequenceOptional =
tei_listOrg?, tei_listEvent?, tei_listPerson?, tei_listRelation?
tei_model.listLike_sequenceOptionalRepeatable =
tei_listOrg*, tei_listEvent*, tei_listPerson*, tei_listRelation*
tei_model.listLike_sequenceRepeatable =
tei_listOrg+, tei_listEvent+, tei_listPerson+, tei_listRelation+
tei_model.noteLike = tei_note
tei_model.noteLike_alternation = tei_note
tei_model.noteLike_sequence = tei_note
tei_model.noteLike_sequenceOptional = tei_note?
tei_model.noteLike_sequenceOptionalRepeatable = tei_note*
tei_model.noteLike_sequenceRepeatable = tei_note+
tei_model.stageLike = notAllowed
tei_model.stageLike_alternation = notAllowed
tei_model.stageLike_sequence = empty
tei_model.stageLike_sequenceOptional = empty
tei_model.stageLike_sequenceOptionalRepeatable = empty
tei_model.stageLike_sequenceRepeatable = notAllowed
tei_model.global.edit = tei_gap
tei_model.global.edit_alternation = tei_gap
tei_model.global.edit_sequence = tei_gap
tei_model.global.edit_sequenceOptional = tei_gap?
tei_model.global.edit_sequenceOptionalRepeatable = tei_gap*
tei_model.global.edit_sequenceRepeatable = tei_gap+
tei_model.placeNamePart = tei_placeName
tei_model.placeNamePart_alternation = tei_placeName
tei_model.placeNamePart_sequence = tei_placeName
tei_model.placeNamePart_sequenceOptional = tei_placeName?
tei_model.placeNamePart_sequenceOptionalRepeatable = tei_placeName*
tei_model.placeNamePart_sequenceRepeatable = tei_placeName+
tei_model.placeStateLike = tei_model.placeNamePart | tei_state
tei_model.placeStateLike_alternation =
tei_model.placeNamePart_alternation | tei_state
tei_model.placeStateLike_sequence =
tei_model.placeNamePart_sequence, tei_state
tei_model.placeStateLike_sequenceOptional =
tei_model.placeNamePart_sequenceOptional?, tei_state?
tei_model.placeStateLike_sequenceOptionalRepeatable =
tei_model.placeNamePart_sequenceOptionalRepeatable*, tei_state*
tei_model.placeStateLike_sequenceRepeatable =
tei_model.placeNamePart_sequenceRepeatable+, tei_state+
tei_model.quoteLike = notAllowed
tei_model.quoteLike_alternation = notAllowed
tei_model.quoteLike_sequence = empty
tei_model.quoteLike_sequenceOptional = empty
tei_model.quoteLike_sequenceOptionalRepeatable = empty
tei_model.quoteLike_sequenceRepeatable = notAllowed
tei_model.attributable = tei_model.quoteLike
tei_model.attributable_alternation = tei_model.quoteLike_alternation
tei_model.attributable_sequence = tei_model.quoteLike_sequence
tei_model.attributable_sequenceOptional =
tei_model.quoteLike_sequenceOptional?
tei_model.attributable_sequenceOptionalRepeatable =
tei_model.quoteLike_sequenceOptionalRepeatable*
tei_model.attributable_sequenceRepeatable =
tei_model.quoteLike_sequenceRepeatable+
tei_model.addressLike = tei_email | tei_affiliation
tei_model.addressLike_alternation = tei_email | tei_affiliation
tei_model.addressLike_sequence = tei_email, tei_affiliation
tei_model.addressLike_sequenceOptional = tei_email?, tei_affiliation?
tei_model.addressLike_sequenceOptionalRepeatable =
tei_email*, tei_affiliation*
tei_model.addressLike_sequenceRepeatable = tei_email+, tei_affiliation+
tei_model.nameLike =
tei_model.nameLike.agent
| tei_model.offsetLike
| tei_model.placeStateLike
| tei_idno
| tei_model.persNamePart
tei_model.nameLike_alternation =
tei_model.nameLike.agent_alternation
| tei_model.offsetLike_alternation
| tei_model.placeStateLike_alternation
| tei_idno
| tei_model.persNamePart_alternation
tei_model.nameLike_sequence =
tei_model.nameLike.agent_sequence,
tei_model.offsetLike_sequence,
tei_model.placeStateLike_sequence,
tei_idno,
tei_model.persNamePart_sequence
tei_model.nameLike_sequenceOptional =
tei_model.nameLike.agent_sequenceOptional?,
tei_model.offsetLike_sequenceOptional?,
tei_model.placeStateLike_sequenceOptional?,
tei_idno?,
tei_model.persNamePart_sequenceOptional?
tei_model.nameLike_sequenceOptionalRepeatable =
tei_model.nameLike.agent_sequenceOptionalRepeatable*,
tei_model.offsetLike_sequenceOptionalRepeatable*,
tei_model.placeStateLike_sequenceOptionalRepeatable*,
tei_idno*,
tei_model.persNamePart_sequenceOptionalRepeatable*
tei_model.nameLike_sequenceRepeatable =
tei_model.nameLike.agent_sequenceRepeatable+,
tei_model.offsetLike_sequenceRepeatable+,
tei_model.placeStateLike_sequenceRepeatable+,
tei_idno+,
tei_model.persNamePart_sequenceRepeatable+
tei_model.pPart.data =
tei_model.dateLike
| tei_model.measureLike
| tei_model.addressLike
| tei_model.nameLike
tei_model.pPart.data_alternation =
tei_model.dateLike_alternation
| tei_model.measureLike_alternation
| tei_model.addressLike_alternation
| tei_model.nameLike_alternation
tei_model.pPart.data_sequence =
tei_model.dateLike_sequence,
tei_model.measureLike_sequence,
tei_model.addressLike_sequence,
tei_model.nameLike_sequence
tei_model.pPart.data_sequenceOptional =
tei_model.dateLike_sequenceOptional?,
tei_model.measureLike_sequenceOptional?,
tei_model.addressLike_sequenceOptional?,
tei_model.nameLike_sequenceOptional?
tei_model.pPart.data_sequenceOptionalRepeatable =
tei_model.dateLike_sequenceOptionalRepeatable*,
tei_model.measureLike_sequenceOptionalRepeatable*,
tei_model.addressLike_sequenceOptionalRepeatable*,
tei_model.nameLike_sequenceOptionalRepeatable*
tei_model.pPart.data_sequenceRepeatable =
tei_model.dateLike_sequenceRepeatable+,
tei_model.measureLike_sequenceRepeatable+,
tei_model.addressLike_sequenceRepeatable+,
tei_model.nameLike_sequenceRepeatable+
tei_att.duration.iso.attributes = tei_att.duration.iso.attribute.dur-iso
tei_att.duration.iso.attribute.dur-iso =
## (duration) indicates the length of this element in time.
attribute dur-iso {
xsd:token { pattern = "[0-9.,DHMPRSTWYZ/:+\-]+" }
}?
tei_p =
## (paragraph) marks paragraphs in prose. [3.1. Paragraphs 7.2.5. Speech Contents]
element p {
((tei_ref | text)+)
>> sch:pattern [
id =
"parlamint-p-abstractModel-structure-p-in-ab-or-p-constraint-report-4"
"\x{a}" ~
" "
sch:rule [
context = "tei:p"
"\x{a}" ~
" "
sch:report [
test =
"(ancestor::tei:ab or ancestor::tei:p) and not( ancestor::tei:floatingText |parent::tei:exemplum |parent::tei:item |parent::tei:note |parent::tei:q |parent::tei:quote |parent::tei:remarks |parent::tei:said |parent::tei:sp |parent::tei:stage |parent::tei:cell |parent::tei:figure )"
"\x{a}" ~
" Abstract model violation: Paragraphs may not occur inside other paragraphs or ab elements.\x{a}" ~
" "
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
>> sch:pattern [
id =
"parlamint-p-abstractModel-structure-p-in-l-or-lg-constraint-report-5"
"\x{a}" ~
" "
sch:rule [
context = "tei:p"
"\x{a}" ~
" "
sch:report [
test =
"(ancestor::tei:l or ancestor::tei:lg) and not( ancestor::tei:floatingText |parent::tei:figure |parent::tei:note )"
"\x{a}" ~
" Abstract model violation: Lines may not contain higher-level structural elements such as div, p, or ab, unless p is a child of figure or note, or is a descendant of floatingText.\x{a}" ~
" "
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
],
tei_att.global.attribute.xmllang,
empty
}
tei_desc =
## (description) contains a short description of the purpose, function, or use of its parent element, or when the parent is a documentation element, describes or defines the object being documented. [22.4.1. Description of Components]
element desc {
(tei_term?, (text | tei_ref)+)
>> sch:pattern [
id =
"parlamint-desc-deprecationInfo-only-in-deprecated-constraint-rule-6"
"\x{a}" ~
" "
sch:rule [
context = "tei:desc[ @type eq 'deprecationInfo']"
"\x{a}" ~
" "
sch:assert [
test = "../@validUntil"
"Information about a\x{a}" ~
" deprecation should only be present in a specification element\x{a}" ~
" that is being deprecated: that is, only an element that has a\x{a}" ~
" @validUntil attribute should have a child <desc\x{a}" ~
' type="deprecationInfo">.'
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
],
tei_att.global.attribute.xmllang,
empty
}
tei_term =
## (term) contains a single-word, multi-word, or symbolic designation which is regarded as a technical term. [3.4.1. Terms and Glosses]
element term { text }
tei_gap =
## (gap) indicates a point where material has been omitted in a transcription, whether for editorial reasons described in the TEI header, as part of sampling practice, or because the material is illegible, invisible, or inaudible. [3.5.3. Additions, Deletions, and Omissions]
element gap {
tei_desc+,
tei_att.global.attribute.xmlid,
tei_att.global.attribute.n,
tei_att.global.attribute.xmllang,
tei_att.global.linking.attribute.corresp,
##
attribute reason {
##
"inaudible"
|
##
"editorial"
|
##
"foreign"
}?,
empty
}
tei_name =
## (name, proper noun) contains a proper noun or noun phrase. [3.6.1. Referring Strings]
element name {
(tei_w
| tei_pc
| tei_name
| tei_date
| tei_num
| tei_time
| tei_note
| tei_vocal
| tei_kinesic
| tei_incident
| tei_gap
| tei_pb
| text)+,
tei_att.global.attribute.xmlid,
tei_att.global.attribute.xmllang,
tei_att.global.analytic.attribute.ana,
tei_att.personal.attribute.full,
tei_att.canonical.attribute.key,
tei_att.canonical.attribute.ref,
tei_att.typed.attribute.subtype,
##
attribute type {
##
"PER"
|
##
"LOC"
|
##
"ORG"
|
##
"MISC"
|
##
"city"
|
##
"country"
|
##
"address"
|
##
"org"
|
##
"place"
}?,
empty
}
tei_email =
## (electronic mail address) contains an email address identifying a location to which email messages can be delivered. [3.6.2. Addresses]
element email {
(tei_w | tei_pc | text)+,
tei_att.global.attribute.xmlid,
tei_att.global.attribute.xmllang,
tei_att.global.analytic.attribute.ana,
empty
}
tei_num =
## (number) contains a number, written in any form. [3.6.3. Numbers and
## Measures]
element num {
(tei_w | tei_pc | text)+,
tei_att.global.attribute.xmlid,
tei_att.global.attribute.xmllang,
tei_att.global.analytic.attribute.ana,
tei_att.typed.attribute.subtype,
## indicates the type of numeric value.
## Suggested values include: 1] cardinal; 2] ordinal; 3] fraction; 4] percentage
attribute type {
## absolute number, e.g. 21, 21.5
"cardinal"
|
## ordinal number, e.g. 21st
"ordinal"
|
## fraction, e.g. one half or three-quarters
"fraction"
|
## a percentage
"percentage"
| xsd:token { pattern = "[^\p{C}\p{Z}]+" }
}?,
empty
}
tei_measure =
## (measure) contains a word or phrase referring to some quantity of an object or commodity, usually comprising a number, a unit, and a commodity name. [3.6.3. Numbers and
## Measures]
element measure {
text,
tei_att.global.attribute.xmllang,
##
attribute unit {
##
"speeches"
|
##
"words"
|
## optional value
"tokens"
},
## (quantity) specifies the number of the specified units that comprise the measurement
attribute quantity {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
},
empty
}
tei_unit =
## contains a symbol, a word or a phrase referring to a unit of measurement in any kind of formal or informal system. [3.6.3. Numbers and
## Measures]
element unit {
(tei_w
| tei_pc
| tei_name
| tei_date
| tei_time
| tei_num
| tei_unit
| tei_email
| tei_ref
| tei_note
| tei_gap
| tei_kinesic
| tei_incident
| tei_vocal)+,
tei_att.global.attribute.xmlid,
tei_att.global.attribute.n,
tei_att.global.attribute.xmllang,
tei_att.global.analytic.attribute.ana,
empty
}
tei_date =
## (date) contains a date in any format. [3.6.4. Dates and Times 2.2.4. Publication, Distribution, Licensing, etc. 2.6. The Revision Description 3.12.2.4. Imprint, Size of a Document, and Reprint Information 15.2.3. The Setting Description 13.4. Dates]
element date {
(tei_w | tei_pc | tei_date | text)+,
tei_att.global.attribute.xmlid,
tei_att.global.attribute.xmllang,
tei_att.global.analytic.attribute.ana,
tei_att.datable.w3c.attribute.when,
tei_att.datable.w3c.attribute.from,
tei_att.datable.w3c.attribute.to,
tei_att.typed.attributes,
empty
}
tei_time =
## (time) contains a phrase defining a time of day in any format. [3.6.4. Dates and Times]
element time {
(tei_w | tei_pc | text)+,
tei_att.global.attribute.xmlid,
tei_att.global.attribute.xmllang,
tei_att.global.analytic.attribute.ana,
tei_att.datable.w3c.attribute.when,
tei_att.datable.w3c.attribute.from,
tei_att.datable.w3c.attribute.to,
tei_att.typed.attributes,
empty
}
tei_ref =
## (reference) defines a reference to another location, possibly modified by additional text or comment. [3.7. Simple Links and Cross-References 16.1. Links]
element ref {
text
>> sch:pattern [
id = "parlamint-ref-refAtts-constraint-report-6"
"\x{a}" ~
" "
sch:rule [
context = "tei:ref"
"\x{a}" ~
" "
sch:report [
test = "@target and @cRef"
"Only one of the\x{a}" ~
" attributes @target' and @cRef' may be supplied on "
sch:name [ ]
"\x{a}" ~
" "
]
"\x{a}" ~
" "