-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtei-pta_linguistic.odd
More file actions
1328 lines (1325 loc) · 66.9 KB
/
tei-pta_linguistic.odd
File metadata and controls
1328 lines (1325 loc) · 66.9 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0"
xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:rng="http://relaxng.org/ns/structure/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Encoding Critical Editions for the Patristic Text Archive (PTA) –
linuistic annotation added</title>
<funder>BBAW</funder>
<author xml:id="AvS">Annette von Stockhausen</author>
</titleStmt>
<editionStmt>
<edition>Version 1.1. Last updated on 2025-06-13.</edition>
</editionStmt>
<publicationStmt>
<publisher>Berlin-Brandenburgische Akademie der
Wissenschaften</publisher>
<date>2020</date>
<availability>
<licence target="https://www.gnu.org/licenses/agpl.html">Distributed
under a GNU Affero General Public License.</licence>
<p>This program is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.</p>
<p>This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.</p>
<p>You should have received a copy of the GNU Affero General Public
License along with this program. If not, see <ptr
target="https://www.gnu.org/licenses/"/>.</p>
</availability>
</publicationStmt>
<sourceDesc>
<p>born digital</p>
</sourceDesc>
</fileDesc>
<revisionDesc>
<change who="#AvS" when="2025-11-24">Updated to current tei-pta</change>
<change who="#AvS" when="2025-05-27">Copied tei-pta (version 4.1) into new
schema for dependency annotated PTA files (add new attributes not extant
in TEI: not TEI-conformant)</change>
</revisionDesc>
</teiHeader>
<text>
<body>
<div xml:id="elemente">
<schemaSpec ident="tei-pta_linguistic" docLang="en" prefix="pta_"
start="TEI" xml:lang="en">
<!-- MODULES AND ELEMENTS USED BY THE PTA SCHEMA -->
<moduleRef key="tei"/>
<moduleRef key="header"
include="authority availability cRefPattern catDesc category change classDecl correction creation distributor edition editionStmt editorialDecl encodingDesc extent fileDesc funder handNote hyphenation idno interpretation keywords language langUsage licence normalization principal profileDesc publicationStmt punctuation refsDecl revisionDesc schemaRef scriptNote seriesStmt sourceDesc sponsor taxonomy teiHeader textClass titleStmt"/>
<moduleRef key="core"
include="abbr add analytic author bibl biblScope biblStruct cb choice cit date del editor emph expan foreign gap gb head hi imprint item l label lb lg list listBibl mentioned milestone monogr name note num p pb ptr pubPlace publisher quote ref resp respStmt rs said series sic sp speaker term title unclear unit"/>
<moduleRef key="textstructure" include="TEI body div text"/>
<moduleRef key="gaiji" include="g"/>
<moduleRef key="msdescription"
include="altIdentifier handDesc history layout layoutDesc locus locusGrp msDesc msIdentifier objectDesc origDate origin provenance physDesc repository scriptDesc stamp supportDesc"/>
<moduleRef key="namesdates"
include="forename listPerson orgName persName person placeName roleName settlement surname"/>
<moduleRef key="transcr"
include="damage ex handNotes handShift retrace space subst supplied surplus"/>
<moduleRef key="textcrit"
include="app lacunaEnd lacunaStart lem listApp listWit rdg rdgGrp variantEncoding witEnd witStart witness"/>
<moduleRef key="figures" include="cell row table"/>
<moduleRef key="linking" include="ab anchor seg"/>
<moduleRef key="analysis" include="pc s w"/>
<!-- CHANGED ELEMENT SPECS -->
<!-- header -->
<elementSpec ident="teiHeader" module="header" mode="change">
<constraintSpec scheme="schematron" xml:lang="eng" ident="teiHeader">
<constraint>
<sch:rule context="tei:teiHeader">
<sch:assert
test="child::tei:fileDesc and child::tei:encodingDesc and child::tei:profileDesc and child::tei:revisionDesc"
> Needs fileDesc, encodingDesc, profileDesc and revisionDesc
</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="fileDesc" module="header" mode="change">
<constraintSpec scheme="schematron" xml:lang="eng" ident="fileDesc">
<constraint>
<sch:rule context="tei:fileDesc">
<sch:assert
test="child::tei:titleStmt and child::tei:publicationStmt and child::tei:sourceDesc">
Needs titleStmt, publicationStmt and sourceDesc
</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="sourceDesc" module="header" mode="change">
<constraintSpec scheme="schematron" xml:lang="eng" ident="sourceDesc">
<constraint>
<sch:rule context="tei:sourceDesc">
<sch:assert
test="child::tei:msDesc or child::tei:listWit or child::tei:listBibl or child::tei:p"
> Needs msDesc (in a ms transcription) or listWit/listBibl
(in an edition) or p (in a translation) as child
</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="witness" module="header" mode="change">
<classes mode="change">
<memberOf key="att.sortable" mode="delete"/>
</classes>
<constraintSpec scheme="schematron" xml:lang="eng" ident="witness">
<constraint>
<sch:rule context="tei:witness">
<sch:assert
test="child::tei:abbr and child::tei:name and child::tei:origDate and child::tei:locus"
> Needs abbr, name, origDate and locus as children
</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="xml:id" mode="change" usage="req"/>
<attDef ident="corresp" mode="change" usage="rec"/>
<attDef ident="source" mode="change" usage="opt"/>
<attDef ident="ana" mode="delete"/>
<attDef ident="change" mode="delete"/>
<attDef ident="facs" mode="delete"/>
<attDef ident="rend" mode="delete"/>
<attDef ident="style" mode="delete"/>
<attDef ident="rendition" mode="delete"/>
<attDef ident="cert" mode="delete"/>
<attDef ident="resp" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="encodingDesc" module="header" mode="change">
<constraintSpec scheme="schematron" xml:lang="eng" ident="encodingDesc">
<constraint>
<sch:rule context="tei:encodingDesc">
<sch:assert
test="child::tei:refsDecl[@n='CTS'] and child::tei:refsDecl[@xml:id='biblical'] and child::tei:refsDecl[@xml:id='pta'] and child::tei:refsDecl[@xml:id='perseus'] and child::tei:editorialDecl and child::tei:classDecl and child::tei:schemaRef"
> Needs refDecl for CTS, biblical, PTA and Perseus library
references, editorialDecl, classDecl and schemaRef
</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="revisionDesc" module="header" mode="change">
<classes mode="change">
<memberOf key="att.global" mode="delete"/>
</classes>
<constraintSpec scheme="schematron" xml:lang="eng" ident="witness">
<constraint>
<sch:rule context="tei:revisionDesc">
<sch:assert test="count(child::tei:change) > 0"> Needs at
least one change element as child </sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="status" mode="change" usage="req">
<valList type="closed" mode="replace">
<valItem ident="intern">
<desc>Internal version, not published</desc>
</valItem>
<valItem ident="draft">
<desc>Draft version: work in progress</desc>
</valItem>
<valItem ident="unfinished">
<desc>Work not yet finished: for example annotations need to
be done</desc>
</valItem>
<valItem ident="final">
<desc>Final Version, not (yet) approved</desc>
</valItem>
<valItem ident="approved">
<desc>Approved (final) version</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="profileDesc" module="header" mode="change">
<constraintSpec ident="profileDesc" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:profileDesc">
<sch:assert
test="child::tei:creation and child::tei:textClass"> Needs
creation and textClass as children </sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="creation" module="header" mode="change">
<constraintSpec ident="creation" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:creation">
<sch:assert test="child::tei:date and child::tei:placeName">
Needs date and placeName as children </sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="textClass" module="header" mode="change">
<constraintSpec ident="textClass" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:textClass">
<sch:report
test="count(tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:listWit) > 0 and not(child::tei:keywords[@scheme='#comphistsem'] and child::tei:keywords[@scheme='#editionstatus'])"
> Edition needs keyword schemes for text type classification
and edition status as children</sch:report>
<sch:report
test="count(tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc) > 0 and not(child::tei:keywords[@scheme='#comphistsem'])"
> Transcription needs keyword scheme for text type
classification as child</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="keywords" module="header" mode="change">
<constraintSpec ident="keywords" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:keywords">
<sch:assert test="child::tei:term">Needs term as
child</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="scheme" mode="change" usage="req">
<valList type="closed" mode="replace">
<valItem ident="#comphistsem">
<desc>Value one of: Biblical, Theological (Bible Exegesis,
Dogmatic Treatise, Polemics), Liturgical, Paraenetic
(Sermon, Treatise), Religious Practical, Legal,
Administrative, Scholarly (Florilegium, Commentary,
Treatise), Educational, Medical, Polemic, Oratory,
Historiography, Biographical (Hagiography, Biography,
Autobiography), Letters, Inscriptions. (Values in
parentheses as second term.)</desc>
</valItem>
<valItem ident="#editionstatus">
<desc>Value one of: critical-edition,
critical-edition-no-app, critical-edition-outdated,
pre-critical-edition</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<!-- textstructure -->
<elementSpec ident="TEI" mode="change">
<attList>
<attDef ident="doctype" ns="http://www.telota.de" mode="add"
usage="opt">
<desc>doctype used by ediarum</desc>
<valList type="closed">
<valItem ident="transcription"/>
<valItem ident="edition"/>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="div" mode="change" module="textstructure">
<constraintSpec scheme="schematron" xml:lang="eng" ident="div">
<constraint>
<sch:rule context="tei:div">
<sch:report test="(@type='edition' or @type='translation' or @type='commentary') and not(parent::tei:body)"> body element needs a child div of
@type="edition|translation|commentary" </sch:report>
<sch:report test="@type='textpart' and not(parent::tei:div/@type='textpart' or parent::tei:div/@type='edition' or parent::tei:div/@type='translation' or parent::tei:div/@type='commentary')"> div of @type="textpart" needs a parent div of
@type="textpart" or @type="edition|translation|commentary" </sch:report>
<sch:report test="(@type='edition' or @type='translation' or @type='commentary') and not(@xml:lang)"> div of @type="edition|translation|commentary" needs an
language attribute </sch:report>
<sch:report test="(@type='edition' or @type='translation' or @type='commentary') and not(contains(@n,'urn:cts:pta'))"> div of @type="edition|translation|commentary" needs a
reference to the URN </sch:report>
<sch:report test="@type='textpart' and not(@n)">
@type=textpart needs to be numbered </sch:report>
<sch:report
test="@type='praefatio' and not(count(child::tei:div[@type='section']) > 0) and count(child::tei:div[not(@type='section' or @type='subsection')]) = 0"
>Praefatio should contain sections and/or subsections, and
must not contain divs without a type.</sch:report>
<sch:report test="@subtype and not(@type='textpart')">
@subtype may only be used together with @type=textpart </sch:report>
<sch:report test="@ana and not(@subtype='commentary')"> @ana
may only be used together with @subtype=commentary </sch:report>
<sch:report
test="@type='edition' and count(descendant::tei:app[@type='variants']) > 0 and not(count(descendant::tei:app[@type='witnesses']) > 0)"
>If variants are encoded, also witnesses must be encoded
(missing app[@type='witnesses'])</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="type" mode="replace" usage="req">
<valList type="closed">
<valItem ident="commentary">
<desc>to contain the commentary to the edition</desc>
</valItem>
<valItem ident="transcription">
<desc>to contain the transcription of a text in a
manuscript</desc>
</valItem>
<valItem ident="edition">
<desc>to contain the text of the edition itself; may include
multiple text-parts</desc>
</valItem>
<valItem ident="translation">
<desc>to contain a translation of the text into one or more
modern languages</desc>
</valItem>
<valItem ident="praefatio">
<desc>to contain the Praefatio to an edition</desc>
</valItem>
<valItem ident="section">
<desc>used to divide a div[type=praefatio] into multiple
parts</desc>
</valItem>
<valItem ident="subsection">
<desc>used to divide a div[type=praefatio]/div[type=section]
into multiple parts</desc>
</valItem>
<valItem ident="textpart">
<desc>used to divide a div[type=edition] into multiple parts
(fragments, columns, faces, etc.)</desc>
</valItem>
</valList>
</attDef>
<attDef ident="subtype" mode="change">
<desc>for the description of the text structure</desc>
<valList type="closed" mode="replace">
<valItem ident="part">
<desc>Part</desc>
</valItem>
<valItem ident="book">
<desc>Book</desc>
</valItem>
<valItem ident="homily">
<desc>Homily</desc>
</valItem>
<valItem ident="chapter">
<desc>Chapter</desc>
</valItem>
<valItem ident="verse">
<desc>Verse</desc>
</valItem>
<valItem ident="subdok">
<desc>Document belonging to a document of
higher-order</desc>
</valItem>
<valItem ident="praefatio">
<desc>Preface to a book (n="praefatio")</desc>
</valItem>
<valItem ident="section">
<desc>Section</desc>
</valItem>
<valItem ident="subsection">
<desc>Subsection</desc>
</valItem>
<valItem ident="fragment">
<desc>Fragment</desc>
</valItem>
<valItem ident="testimonium">
<desc>Testimonium</desc>
</valItem>
<valItem ident="commented">
<desc>Biblical verses or text, which is commented on
(comment in @subtype=commentary or scholia)</desc>
</valItem>
<valItem ident="commentary">
<desc>Exegesis of a Biblical verse or a commentary to a
text</desc>
</valItem>
</valList>
</attDef>
<attDef ident="ana" mode="change">
<desc>for analysis of layout dependend structures in
commentaries</desc>
<valList type="semi" mode="replace">
<valItem ident="marginal">
<desc>marginal commentary</desc>
</valItem>
<valItem ident="intercolumn">
<desc>Commentary between column of commented text and other
commentary</desc>
</valItem>
<valItem ident="interlinear">
<desc>interlinear commentary</desc>
</valItem>
<valItem ident="scholia">
<desc>Scholia</desc>
</valItem>
<valItem ident="hexaplaric">
<desc>Hexaplaric readings</desc>
</valItem>
</valList>
</attDef>
<attDef ident="n" mode="change" usage="opt"/>
</attList>
</elementSpec>
<!-- core -->
<elementSpec ident="mentioned" module="core" mode="change">
<desc>mentioned is an element in legacy texts (converted from CTE files): do not use!</desc>
</elementSpec>
<elementSpec ident="add" module="core" mode="change">
<attList>
<attDef ident="place" mode="change">
<valList type="closed">
<valItem ident="above">
<desc>Above the line</desc>
</valItem>
<valItem ident="below">
<desc>Below the line</desc>
</valItem>
<valItem ident="inline">
<desc>Inline</desc>
</valItem>
<valItem ident="margin">
<desc>In the margin (not further specified)</desc>
</valItem>
</valList>
</attDef>
<attDef ident="ana" mode="delete"/>
<attDef ident="atLeast" mode="delete"/>
<attDef ident="atMost" mode="delete"/>
<attDef ident="cause" mode="delete"/>
<attDef ident="cert" mode="delete"/>
<attDef ident="change" mode="delete"/>
<attDef ident="confidence" mode="delete"/>
<attDef ident="copyOf" mode="delete"/>
<attDef ident="corresp" mode="delete"/>
<attDef ident="evidence" mode="delete"/>
<attDef ident="exclude" mode="delete"/>
<attDef ident="extent" mode="delete"/>
<attDef ident="facs" mode="delete"/>
<attDef ident="instant" mode="delete"/>
<attDef ident="max" mode="delete"/>
<attDef ident="min" mode="delete"/>
<attDef ident="n" mode="delete"/>
<attDef ident="next" mode="delete"/>
<attDef ident="precision" mode="delete"/>
<attDef ident="prev" mode="delete"/>
<attDef ident="quantity" mode="delete"/>
<attDef ident="rend" mode="delete"/>
<attDef ident="rendition" mode="delete"/>
<attDef ident="resp" mode="delete"/>
<attDef ident="sameAs" mode="delete"/>
<attDef ident="scope" mode="delete"/>
<attDef ident="select" mode="delete"/>
<attDef ident="seq" mode="delete"/>
<attDef ident="source" mode="delete"/>
<attDef ident="status" mode="delete"/>
<attDef ident="style" mode="delete"/>
<attDef ident="subtype" mode="delete"/>
<attDef ident="synch" mode="delete"/>
<attDef ident="type" mode="delete"/>
<attDef ident="unit" mode="delete"/>
<attDef ident="xml:base" mode="delete"/>
<attDef ident="xml:lang" mode="delete"/>
<attDef ident="xml:space" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="emph" module="core" mode="change">
<constraintSpec ident="emph" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:emph">
<sch:report test="not(ancestor::tei:div[@type='praefatio' or @type='translation' or @type='commentary'])">
<sch:name/> may only be used in the praefatio of an edition, in a translation or in a commentary</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="label" module="core" mode="change">
<constraintSpec ident="label" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:label">
<sch:report test="@type='attribution' and not(ancestor::tei:div[@type='edition'])">attribution is only to be used in editions</sch:report>
<sch:report test="@type='lemma' and not(ancestor::tei:div[@type='commentary'])">commentary is only to be used in commentaries</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="type" mode="replace" usage="req">
<valList type="closed" mode="replace">
<valItem ident="attribution">
<desc>Contains a label or heading used to attribute text
(for example a quote in a catena) to an author</desc>
</valItem>
<valItem ident="lemma">
<desc>Contains a label or heading used to mark up the lemma a commentary comments on.</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="unclear" module="core" mode="change">
<constraintSpec ident="unclear" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule
context="tei:unclear[not(ancestor::tei:rdg) and not(ancestor::tei:lem)]">
<sch:report test="not(@reason and @cert)">@reason and @cert are to
be used in unclear</sch:report>
</sch:rule>
<sch:rule
context="tei:unclear[ancestor::tei:rdg or ancestor::tei:lem]">
<sch:report test="@reason or @cert">@reason and @cert are not
to be used in rdg or lem</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="reason" mode="replace" usage="rec">
<valList type="closed">
<valItem ident="damage">
<desc>Physical damage</desc>
</valItem>
<valItem ident="illegible">
<desc>Traces of text remains on the surface but are hard to
interpret</desc>
</valItem>
<valItem ident="retraced">
<desc>Text is unclear due to retracing</desc>
</valItem>
</valList>
</attDef>
<attDef ident="cert" mode="change" usage="rec">
<desc>indicates the certainty (for the proposed text)</desc>
<valList type="closed" mode="replace">
<valItem ident="low">
<desc>low certainty</desc>
</valItem>
<valItem ident="high">
<desc>high certainty</desc>
</valItem>
</valList>
</attDef>
<attDef ident="ana" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="gap" module="core" mode="change">
<constraintSpec ident="gap" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:gap">
<sch:report test="@quantity and @extent">gap may have
@quantity (a figure) or @extent (a descriptive text value)
but not both</sch:report>
<sch:report test="@quantity and not(@unit)">If gap has
@quantity then @unit is required</sch:report>
<sch:report
test="not(@reason='missing') and ancestor::tei:supplied[not(@reason='undefined')]"
>gap may not appear within supplied text</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="reason" mode="replace" usage="req">
<valList type="closed">
<valItem ident="damage">
<desc>Physical damage</desc>
</valItem>
<valItem ident="fenestra">
<desc>Free space inmidst of text, left blank by the
scribe</desc>
</valItem>
<valItem ident="illegible">
<desc>Traces of text remains on the surface but cannot be
interpreted</desc>
</valItem>
<valItem ident="missing">
<desc>Editor thinks that there is text missing, even if
there are no physical traces in a manuscript</desc>
</valItem>
</valList>
</attDef>
<attDef ident="dur" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="hi" module="core" mode="change">
<attList>
<attDef ident="rend" mode="replace" usage="req">
<valList type="closed">
<valItem ident="initial">
<desc>Initial</desc>
</valItem>
<valItem ident="ekthesis">
<desc>Ekthesis</desc>
</valItem>
<valItem ident="majuscule">
<desc>Word in uppercase/capitals</desc>
</valItem>
<valItem ident="rubricated">
<desc>Word or letter is rubricated</desc>
</valItem>
<valItem ident="overline">
<desc>Line over a letter</desc>
</valItem>
<valItem ident="underline">
<desc>Line under a letter</desc>
</valItem>
<valItem ident="subscript">
<desc>rendition as subscript</desc>
</valItem>
<valItem ident="superscript">
<desc>rendition as superscript</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="ref" module="core" mode="change">
<constraintSpec ident="ref" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:ref">
<sch:report test="ancestor::tei:div[@type='edition' or @type='translation' or @type='commentary'] and not(@cRef or @source or @target)">in the edition <sch:name/> needs @cRef or @source (or has a @target)</sch:report>
<sch:report
test="@cRef and not(@decls='#biblical' or @decls='#pta' or @decls='#perseus')"
>if <sch:name/> has @cRef, it also needs @decls (#biblical, #pta or #perseus)</sch:report>
<sch:report
test="(@decls='#pta' or @decls='#perseus') and not(starts-with(@cRef, 'urn:cts:'))"
>Check that a reference to PTA or Perseus library is an
URN</sch:report>
<sch:report test="current()[ancestor::tei:div[@type='edition' or @type='translation']]/text() and not(parent::tei:cit or @target)"><sch:name/> may only contain text as child of cit.</sch:report>
<sch:report
test="@decls='#biblical' and not(contains(@cRef, 'LXX:') or contains(@cRef, 'Hexapla:') or contains(@cRef, 'Peshitta:') or contains(@cRef, 'NA:') or contains(@cRef, 'Vg:'))"
>Check correct abbreviation of biblical version. Must be one
of: LXX, Hexapla, Peshitta, NA, Vg</sch:report>
<sch:report
test="@decls='#biblical' and not(contains(@cRef, 'Gn:') or contains(@cRef, 'Ex:') or contains(@cRef, 'Lv:') or contains(@cRef, 'Num:') or contains(@cRef, 'Dt:') or contains(@cRef, 'Jos:') or contains(@cRef, 'Judg:') or contains(@cRef, 'Rt:') or contains(@cRef, '1Sa:') or contains(@cRef, '2Sa:') or contains(@cRef, '1Ko:') or contains(@cRef, '2Ko:') or contains(@cRef, '1Chr:') or contains(@cRef, '2Chr:') or contains(@cRef, '3Esr:') or contains(@cRef, 'Esr:') or contains(@cRef, 'Est:') or contains(@cRef, 'Jdt:') or contains(@cRef, 'Tob:') or contains(@cRef, '1Mak:') or contains(@cRef, '2Mak:') or contains(@cRef, '3Mak:') or contains(@cRef, '4Mak:') or contains(@cRef, 'Ps:') or contains(@cRef, 'Oden:') or contains(@cRef, 'Prov:') or contains(@cRef, 'Eccl:') or contains(@cRef, 'Song:') or contains(@cRef, 'Job:') or contains(@cRef, 'Wis:') or contains(@cRef, 'Sir:') or contains(@cRef, 'PsSal:') or contains(@cRef, 'Hos:') or contains(@cRef, 'Am:') or contains(@cRef, 'Mi:') or contains(@cRef, 'Joel:') or contains(@cRef, 'Ob:') or contains(@cRef, 'Jon:') or contains(@cRef, 'Nah:') or contains(@cRef, 'Hab:') or contains(@cRef, 'Zeph:') or contains(@cRef, 'Hag:') or contains(@cRef, 'Sach:') or contains(@cRef, 'Mal:') or contains(@cRef, 'Is:') or contains(@cRef, 'Jr:') or contains(@cRef, 'Bar:') or contains(@cRef, 'Lam:') or contains(@cRef, 'EpistJer:') or contains(@cRef, 'Hes:') or contains(@cRef, 'Sus:') or contains(@cRef, 'Sus-LXX:') or contains(@cRef, 'Dn:') or contains(@cRef, 'Dn-LXX:') or contains(@cRef, 'Bel:') or contains(@cRef, 'Bel-LXX:') or contains(@cRef, 'Mt:') or contains(@cRef, 'Mk:') or contains(@cRef, 'Lk:') or contains(@cRef, 'Jn:') or contains(@cRef, 'Act:') or contains(@cRef, 'Rom:') or contains(@cRef, '1Cor:') or contains(@cRef, '2Cor:') or contains(@cRef, 'Gal:') or contains(@cRef, 'Eph:') or contains(@cRef, 'Phil:') or contains(@cRef, 'Col:') or contains(@cRef, '1Th:') or contains(@cRef, '2Th:') or contains(@cRef, '1Tim:') or contains(@cRef, '2Tim:') or contains(@cRef, 'Tt:') or contains(@cRef, 'Phm:') or contains(@cRef, 'Heb:') or contains(@cRef, 'Jak:') or contains(@cRef, '1P:') or contains(@cRef, '2P:') or contains(@cRef, '1Jn:') or contains(@cRef, '2Jn:') or contains(@cRef, '3Jn:') or contains(@cRef, 'Jud:') or contains(@cRef, 'Rev:'))"
>Check correct abbreviation of biblical books. Must be one
of: Gn, Ex, Lv, Num, Dt, Jos, Judg, Rt, 1Sa, 2Sa, 1Ko, 2Ko,
1Chr, 2Chr, 3Esr, Esr, Est, Jdt, Tob, 1Mak, 2Mak, 3Mak,
4Mak, Ps, Oden, Prov, Eccl, Song, Job, Wis, Sir, PsSal, Hos,
Am, Mi, Joel, Ob, Jon, Nah, Hab, Zeph, Hag, Sach, Mal, Is,
Jr, Bar, Lam, EpistJer, Hes, Sus, Sus-LXX, Dn, Dn-LXX, Bel,
Bel-LXX, Mt, Mk, Lk, Jn, Act, Rom, 1Cor, 2Cor, Gal, Eph,
Phil, Col, 1Th, 2Th, 1Tim, 2Tim, Tt, Phm, Heb, Jak, 1P, 2P,
1Jn, 2Jn, 3Jn, Jud, Rev</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="note" module="core" mode="change">
<constraintSpec ident="note" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:note">
<sch:report test="parent::tei:app[@type='variants'] and not(@resp)">If it is a note to a variant, it needs a @resp</sch:report>
<sch:report test="@corresp and not(parent::tei:app[@type='variants'])">@corresp may only be used in a note in a variant apparatus.</sch:report>
<sch:report test="@type='commentary' and not(@resp)">If it is
a commenting note, it needs a @resp</sch:report>
<sch:report test="@place and @type">@place (i.e. in
transcriptions annotating notes in the manuscript) and @type
(i.e. note is a commenting note) may not be used
together</sch:report>
<sch:report test="ancestor::tei:div[@type='praefatio'] and @*"
>Notes in the praefatio are not allowed to have
attributes.</sch:report>
<sch:report test="ancestor::tei:div[@type='edition'] and @type='explanation'">Notes in the edition are not allowed to have the "explanation" attribute.</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<!-- constraining values of note/@place -->
<attDef ident="place" mode="replace" usage="opt">
<valList type="closed">
<valItem ident="top">
<desc>On top of page (without further specification)</desc>
</valItem>
<valItem ident="top_inner">
<desc>On top of page (inner/right margin)</desc>
</valItem>
<valItem ident="top_outer">
<desc>On top of page (outer/left margin)</desc>
</valItem>
<valItem ident="top_center">
<desc>On top of page (centered)</desc>
</valItem>
<valItem ident="bottom">
<desc>On bottom of page (without further
specification)</desc>
</valItem>
<valItem ident="bottom_inner">
<desc>On bottom of page (inner/right margin)</desc>
</valItem>
<valItem ident="bottom_outer">
<desc>On bottom of page (outer/left margin)</desc>
</valItem>
<valItem ident="bottom_center">
<desc>On bottom of page (centered)</desc>
</valItem>
<valItem ident="margin_inner">
<desc>On the inner/right margin</desc>
</valItem>
<valItem ident="margin_outer">
<desc>On the outer/left margin</desc>
</valItem>
<valItem ident="intercolumn">
<desc>Between columns of text</desc>
</valItem>
</valList>
</attDef>
<attDef ident="type" mode="replace" usage="opt">
<valList type="semi">
<valItem ident="commentary">
<desc>Commenting note</desc>
</valItem>
<valItem ident="explanation">
<desc>Explanatory note (to be used in translations)</desc>
</valItem>
<valItem ident="footnote">
<desc>Footnote</desc>
</valItem>
<valItem ident="attestation">
<desc>Attestation to text (legacy for CTE-converted text; do not use!)</desc>
</valItem>
</valList>
</attDef>
<attDef ident="corresp" mode="replace" usage="opt">
<desc>References the variant the note comments on.</desc>
</attDef>
<attDef ident="ana" mode="delete"/>
<attDef ident="rendition" mode="delete"/>
<attDef ident="subtype" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="quote" module="core" mode="change">
<attList>
<attDef ident="type" mode="replace" usage="opt">
<valList type="closed">
<valItem ident="lemma">
<desc>Lemma quotation in editions of biblical commentaries
(the text commented on)</desc>
</valItem>
<valItem ident="hexaplaric">
<desc>Quotation in editions of biblical commentaries
(quotations from the Hexapla)</desc>
</valItem>
<valItem ident="marked">
<desc>Quotation which are introduced or otherwise
marked</desc>
</valItem>
<valItem ident="unmarked">
<desc>Quotation not marked by the author as quotation</desc>
</valItem>
<valItem ident="paraphrasis">
<desc>Paraphrastic quotation (most times better not marked
as quotation at all, but as allusion)</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="pb" module="core" mode="change">
<attList>
<attDef ident="n" mode="change" usage="req"/>
<attDef ident="facs" mode="change" usage="opt"/>
<attDef ident="edRef" mode="change" usage="opt"/>
<attDef ident="xml:id" mode="change" usage="opt"/>
<attDef ident="break" mode="change" usage="opt"/>
<attDef ident="xml:lang" mode="delete"/>
<attDef ident="xml:base" mode="delete"/>
<attDef ident="xml:space" mode="delete"/>
<attDef ident="rend" mode="delete"/>
<attDef ident="style" mode="delete"/>
<attDef ident="rendition" mode="delete"/>
<attDef ident="corresp" mode="delete"/>
<attDef ident="synch" mode="delete"/>
<attDef ident="sameAs" mode="delete"/>
<attDef ident="copyOf" mode="delete"/>
<attDef ident="next" mode="delete"/>
<attDef ident="prev" mode="delete"/>
<attDef ident="exclude" mode="delete"/>
<attDef ident="select" mode="delete"/>
<attDef ident="ana" mode="delete"/>
<attDef ident="change" mode="delete"/>
<attDef ident="cert" mode="delete"/>
<attDef ident="resp" mode="delete"/>
<attDef ident="source" mode="delete"/>
<attDef ident="type" mode="delete"/>
<attDef ident="subtype" mode="delete"/>
<attDef ident="ed" mode="delete"/>
<attDef ident="spanTo" mode="delete"/>
<attDef ident="generatedBy" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="del" module="core" mode="change">
<constraintSpec ident="del" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:del">
<sch:report
test="@rend='repurposed' and not(parent::tei:subst)"
>repurposed may only used within a substitution</sch:report>
<sch:report
test="count(tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc) > 0 and not(@rend)"
>rend attribute is needed in transcriptions</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="rend" mode="change" usage="opt">
<valList type="closed" mode="replace">
<valItem ident="unmarked">
<desc>text to be replaced is not marked explicitly</desc>
</valItem>
<valItem ident="marker">
<desc>text to be replaced is marked only (by an dotted
obelus or sim.)</desc>
</valItem>
<valItem ident="repurposed">
<desc>for use with added diacritics: letter before
correction, without diacritics</desc>
</valItem>
<valItem ident="erasure"/>
<valItem ident="strikethrough"/>
<valItem ident="overwrite"/>
<valItem ident="expunction"/>
<valItem ident="underline"/>
</valList>
</attDef>
<attDef ident="hand" mode="change" usage="opt"/>
<attDef ident="cause" mode="delete"/>
<attDef ident="unit" mode="delete"/>
<attDef ident="quantity" mode="delete"/>
</attList>
</elementSpec>
<elementSpec ident="abbr" module="core" mode="change">
<!-- testing for siglum: only to be used within <witness> -->
<constraintSpec ident="abbr" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:abbr">
<sch:report
test="@type='siglum' and not(parent::tei:witness or parent::tei:head[parent::tei:listWit])"
>siglum may only used within a witness</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="type" mode="change" usage="req">
<valList type="closed" mode="replace">
<valItem ident="siglum">
<desc>classifies abbreviation as siglum</desc>
</valItem>
<valItem ident="nomSac">
<desc>classifies an abbreviation as nomen sacrum</desc>
</valItem>
<valItem ident="suspension">
<desc>classifies an abbreviation as suspension (providing
only the first letters and omitting the rest)</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="expan" module="core" mode="change">
<constraintSpec ident="expan" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:expan">
<sch:report test="not(parent::tei:choice)">expan may only be
used within a choice element</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="name" module="core" mode="change">
<constraintSpec ident="name" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:name">
<sch:report test="@key and not(contains(@key,'PTAMS'))">Key
needs to be a PTAMS-ID</sch:report>
<sch:report test="not(parent::tei:witness)">name may only be
used within a witness element</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="key" mode="change" usage="rec"/>
</attList>
</elementSpec>
<!-- gaiji -->
<elementSpec ident="g" module="gaiji" mode="change">
<attList>
<attDef ident="type" mode="replace" usage="req">
<valList type="semi">
<valItem ident="diple">
<desc>Diple (>)</desc>
</valItem>
<valItem ident="doubled_diple">
<desc>Doubled Diple (>>)</desc>
</valItem>
<valItem ident="obelos">
<desc>Obelos</desc>
</valItem>
<valItem ident="paragraphos">
<desc>Paragraphos ( ⸏ )</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<!-- msdescription -->
<elementSpec ident="msIdentifier" module="msdescription" mode="change">
<constraintSpec ident="msIdentifier" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:msIdentifier">
<sch:assert test="@xml:id">Manuscript identifier needs a @xml:id</sch:assert>
<sch:assert test="@corresp">Manuscript identifier needs a reference to the manuscript database</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="xml:id" mode="change" usage="req">
<desc>needs an id to be used by CollateX</desc>
</attDef>
<attDef ident="corresp" mode="change" usage="req">
<desc>needs a reference to a PTA manuscript database ID</desc>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="origDate" module="msdescription" mode="change">
<constraintSpec ident="origDate" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:origDate">
<sch:report test="@notBefore and not(@notAfter)">notBefore and
notAfter need to be used together</sch:report>
<sch:report test="@notAfter and not(@notBefore)">notBefore and
notAfter need to be used together</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="notBefore" mode="replace" usage="opt"/>
<attDef ident="notAfter" mode="replace" usage="opt"/>
<attDef ident="when" mode="replace" usage="opt"/>
<attDef ident="evidence" mode="delete"/>
</attList>
</elementSpec>
<!-- transscr -->
<elementSpec ident="space" module="transcr" mode="change">
<constraintSpec ident="space" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:space">
<sch:report test="@quantity and @extent">space may have
@quantity (a figure) or @extent (a descriptive text value)
but not both</sch:report>
<sch:report test="@quantity and not(@unit)">If space has
@quantity then @unit is required</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="handShift" module="transcr" mode="change">
<constraintSpec ident="handShift" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:handShift">
<sch:assert test="@medium or @scribeRef or @scriptRef">medium, scribeRef or scriptRef is needed.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!-- textcrit -->
<elementSpec ident="app" module="textcrit" mode="change">
<constraintSpec ident="app" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:app">
<sch:report
test="@type='witnesses' and (child::tei:lem or not(child::tei:rdg))"
>Attestation of witness needs rdg, but no lem</sch:report>
<sch:report test="@type='variants' and not(child::tei:lem or child::tei:rdgGrp/tei:lem)">Variation needs a lem</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="ana" mode="delete"/>
<attDef ident="resp" mode="delete"/>
<attDef ident="source" mode="delete"/>
<attDef ident="type" mode="change" usage="req">
<valList type="closed" mode="replace">
<valItem ident="variants">
<desc>for indication of text variation</desc>
</valItem>
<valItem ident="witnesses">
<desc>for indication of witnesses (especially for the
indication of change of witnesses in the text)</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="lem" module="textcrit" mode="change">
<constraintSpec ident="lem" scheme="schematron" xml:lang="eng">
<constraint>
<sch:rule context="tei:lem">
<sch:assert test="@wit|@resp|@source">The wit, resp, or source
attribute of <sch:name/> is required.</sch:assert>
</sch:rule>