forked from eydelrivero/eagle-epidoc-validation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tei-epidoc-eagle.xml
944 lines (895 loc) · 61.6 KB
/
tei-epidoc-eagle.xml
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
<?xml version="1.0"?>
<!-- Start license statement: do not remove
EpiDoc Schema
Copyright (c) 2008-2014 by all contributors listed in <titleStmt>, below.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Information about the EpiDoc community can be obtained via
http://epidoc.sf.net.
End license statement: do not remove -->
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:rng="http://relaxng.org/ns/structure/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xml:lang="en">
<teiHeader>
<fileDesc>
<titleStmt>
<title>EAGLE EpiDoc schema</title>
<author xml:id="ER">Eydel Rivero</author>
<author xml:id="GB">Gabriel Bodard</author>
<author xml:id="TE">Tom Elliott</author>
<author xml:id="ML">Marion Lamé</author>
<author xml:id="EMo">Emmanuelle Morlock</author>
<author xml:id="EM">Elli Mylonas</author>
<author xml:id="SS">Simona Stoyanova</author>
<author xml:id="SV">Scott Vanderbilt</author>
</titleStmt>
<publicationStmt>
<p>Released under GNU GPL 3.0</p>
</publicationStmt>
<notesStmt>
<note type="ns">http://www.example.org/ns/nonTEI</note>
</notesStmt>
<sourceDesc>
<p>created electronically</p>
</sourceDesc>
</fileDesc>
<revisionDesc>
<change who="#ER" when="2015-07-01">EAGLE starting draft</change>
<!-- release 8.21: 2015-06-19 - Aligned schema with TEI v. 2.8.0 -->
<change who="#GB" when="2015-06-16">added temporary customization of tei:m to allow
model.hiLike content</change>
<change who="#GB" when="2015-06-15">temporarily reversed omission of "accMat additions
catchwords heraldry secFol signatures stamp watermark" (from msdescription), and
"metamark retrace" (from transcr)</change>
<change who="#GB" when="2015-06-03">removing customization of altIdentifier (see
2014-02-10) now fixed in TEI</change>
<change who="#GB" when="2015-06-03">stopped omitting "charProp localName mapping
unicodeName value" from gaiji (requested by IOSPE)</change>
<change who="#GB" when="2015-05-29">omitted "accMat additions catchwords heraldry secFol
signatures stamp watermark" (from msdescription), "appInfo" (from header), and
"metamark retrace" (from transcr).</change>
<!-- release 8.20: 2014-12-02 - Aligned schema with TEI v. 2.7.0 -->
<!-- release 8.19: 2014-07-31 - Aligned schema with TEI v. 2.6.0 -->
<change who="#EMo" when="2014-07-18">fixed TEI errors in ODD (msdescription; unclear
-> core; datatype in lb/@break)</change>
<change who="#GB" when="2014-05-29">stopped omitting fw from trancr (as per
https://sourceforge.net/p/epidoc/feature-requests/67/)</change>
<change who="#GB" when="2014-03-04">stopped omitting s from Analysis (requested by
Perseus)</change>
<change who="#GB" when="2014-03-03">stopped omitting charDecl, glyph, glyphName from
Gaiji (requested by DASI), and phr from Analysis (requested by Coptic
Scriptorium)</change>
<change who="#GB" when="2014-02-24">stopped omitting variantEncoding from textcrit
module (as per request from IGLouvre)</change>
<!-- release 8.18: 2014-02-13 - Aligned schema with TEI v. 2.6.0 -->
<change who="#GB" when="2014-02-10">temporarily adding att.global to altIdentifier (to
fix problem with TEI 2.6.0)</change>
<change who="#SS" when="2013-12-05">added the value 'stacked' in hi @rend</change>
<change who="#SS" when="2013-10-09">stopped omitting anchor from the linking
module</change>
<!-- release 8.17: 2013-08-08 - Aligned schema with TEI v. 2.5.0 -->
<!-- release 8.16: 2013-01-28 - Aligned schema with TEI v. 2.3.0 -->
<change who="#GB" when="2013-01-28">removed temp customization of space (fixed in TEI
2.3.0)</change>
<change who="#GB" when="2012-11-29">suppressed schematron constraint on
att.datable.custom</change>
<change who="#GB" when="2012-11-29">improved schematron constraints for gap, date; added
constraints for space</change>
<change who="#GB" when="2012-11-21">stopped omitting birth and death</change>
<change who="#GB" when="2012-11-07">change TEI namespace to tei: to match Schematron
declaration</change>
<!-- release 8.15: 2012-11-05 - Aligned schema with TEI v. 2.2.0 -->
<change who="#GB" when="2012-11-05">added comments explaining ODD customizations
below</change>
<change who="#GB" when="2012-11-05">temporarily added certLike to space to patch a TEI
bug</change>
<change who="#GB" when="2012-11-05">removed customization of person and place, now
catered for by TEI 2.2.0</change>
<change who="#GB" when="2012-10-31">added schematron constraints for @when-custom,
abbreviations, and gaps added corpus model (but omitted everything except particDesc
and settingDesc)</change>
<change who="#GB" when="2012-10-08">removed description/history/figure and
underline-supraline, following deprecation 2 years ago</change>
<change who="#GB" when="2012-10-05">switched to using @except on moduleRef instead of
@mode="delete" on elementSpec</change>
<change who="#GB" when="2012-09-26">Stopped omitting damage</change>
<change who="#GB" when="2012-09-20">Added spoken module; deleted all elements from that
module</change>
<change who="#GB" when="2012-09-07">stopped omitting relation</change>
<change who="#GB" when="2012-08-13">stopped omitting floruit and state</change>
<change who="#GB" when="2012-07-09">stopped omitting join; added idno to content of
person and place</change>
<change who="#GB" when="2012-01-11">added "inverted" and "small" to suggested values for
hi[@rend]</change>
<change who="#GB" when="2012-01-11">removed customization of provenance, origPlace,
msItem</change>
<change who="#SV" when="2012-01-09">stop omitting location</change>
<change who="#GB" when="2011-09-26">added att.responsibility to provenance (temporary
fix)</change>
<change who="#GB" when="2011-09-25">removed modification of lb/@type and added vocab
control for lb/@break</change>
<change who="#GB" when="2011-09-24">added att.typed to provenance and origPlace
(temporary fix)</change>
<change who="#GB" when="2011-09-14">added type to origPlace (temporary fix); made
msItem/@class repeatable (temporary fix)</change>
<change who="#SV" when="2011-03-03">stop omitting tags: bloc, country, district,
rdgGrp</change>
<change who="#GB" when="2011-01-20">stopped excluding tei:offset</change>
<change who="#GB" when="2010-10-14">deprecated description and history; changed values
of @evidence</change>
<change who="#GB" when="2010-08-10">deprecated hi/@rend='supraline-underline'</change>
<change who="#GB" when="2010-07-05">made hi/@rend optional, repeatable (x5)</change>
<change who="#TE" when="2010-05-14">added xincludes for 3 example components in
guidelines</change>
<change who="#GB" when="2010-06-10">stopped omitting event and listEvent</change>
<change who="#GB" when="2010-02-01">tweaked some descriptions; reversed high and
low</change>
<change who="#GB" when="2009-09-24">created new valList for @unit; added valList for
@extent</change>
<change who="#EM" when="2009-09-17">undid deleted analysis elements: interp,
interpGrp</change>
<change who="#GB" when="2009-08-11">changed 'worddiv' to 'inWord'</change>
<change who="#ML" when="2009-07-12">stop omitting few tags: orgName element</change>
<change who="#GB" when="2009-06-10">removed dummy 'precision' element</change>
<change who="#GB" when="2008-11-20">Created bare ODD from Roma</change>
</revisionDesc>
</teiHeader>
<text>
<front>
<divGen type="toc"/>
</front>
<body>
<p>EAGLE schema based on the EpiDoc TEI schema</p>
<schemaSpec ident="tei-epidoc-eagle" docLang="en" prefix="tei_" start="TEI"
xml:lang="en">
<!-- MODULES USED BY THE EPIDOC SCHEMA -->
<moduleRef key="core"/>
<moduleRef key="tei"/>
<moduleRef key="header" except="appInfo"/>
<moduleRef key="textstructure"
except="argument byline closer div1 div2 div3 div4 div5 div6 div7 imprimatur opener postscript salute signed titlePage titlePart trailer"/>
<moduleRef key="transcr" except="damageSpan restore"/>
<moduleRef key="verse" except="caesura metDecl metSym rhyme"/>
<moduleRef key="analysis" except="cl span spanGrp"/>
<moduleRef key="certainty" except="respons"/>
<moduleRef key="gaiji" except="char charName unicodeName"/>
<moduleRef key="linking" except="alt altGrp joinGrp timeline when"/>
<moduleRef key="msdescription"/>
<moduleRef key="namesdates"
except="affiliation age climate education faith geoFeat langKnowledge langKnown nameLink nationality occupation population relationGrp residence sex socecStatus terrain trait"/>
<moduleRef key="textcrit"
except="lacunaEnd lacunaStart listWit witDetail witEnd witStart witness"/>
<moduleRef key="figures" except="cell formula row table"/>
<moduleRef key="spoken"
except="broadcast equipment incident kinesic pause recording recordingStmt scriptStmt shift u vocal writing"/>
<moduleRef key="corpus"
except="activity channel constitution derivation domain factuality interaction locale preparedness purpose setting textDesc"/>
<!-- CHANGED ELEMENT SPECS -->
<elementSpec ident="add" module="core" mode="change">
<attList>
<!-- constraining values of add/@place -->
<attDef ident="place" mode="replace">
<valList type="closed">
<valItem ident="above"/>
<valItem ident="below"/>
<valItem ident="bottom"/>
<valItem ident="inline"/>
<valItem ident="interlinear"/>
<valItem ident="left"/>
<valItem ident="margin"/>
<valItem ident="mixed"/>
<valItem ident="opposite"/>
<valItem ident="overleaf"/>
<valItem ident="overstrike"/>
<valItem ident="right"/>
<valItem ident="top"/>
<valItem ident="unspecified"/>
</valList>
</attDef>
</attList>
</elementSpec>
<!-- constraining values of div/@type -->
<elementSpec ident="div" mode="change" module="textstructure">
<attList>
<attDef ident="type" mode="replace" usage="req">
<valList type="closed">
<valItem ident="apparatus">
<desc>to contain apparatus criticus or textual notes</desc>
</valItem>
<valItem ident="bibliography">
<desc>to contain bibliographical information, previous
publications, etc.</desc>
</valItem>
<valItem ident="commentary">
<desc>to contain all editorial commentary,
historical/prosopographical discussion, etc.</desc>
</valItem>
<valItem ident="edition">
<desc>to contain the text of the edition itself; may include
multiple text-parts</desc>
</valItem>
<valItem ident="textpart">
<desc>used to divide a div[type=edition] into multiple parts
(fragments, columns, faces, etc.)</desc>
</valItem>
<valItem ident="translation">
<desc>to contain a translation of the text into one or more
modern languages</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="ex" module="transcr" mode="change">
<!-- testing for <ex> outside of <expan> -->
<constraintSpec scheme="isoschematron" ident="ex">
<constraint><sch:rule context="tei:ex"><sch:report
test="not(ancestor::tei:expan)">ex should only appear inside
expan</sch:report><sch:report test="parent::tei:abbr">ex should
not be a child of abbr</sch:report></sch:rule></constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="expan" module="transcr" mode="change">
<!-- testing for <expan> with no descendant <ex> -->
<constraintSpec scheme="isoschematron" ident="expan">
<constraint><sch:rule context="tei:expan"><sch:report
test="not(descendant::tei:ex)">expan should contain
ex</sch:report></sch:rule></constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="gap" module="core" mode="change">
<!-- testing for <gap> with both quantity/extent, no unit, or contained in supplied -->
<constraintSpec ident="gap" scheme="isoschematron">
<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='ellipsis') and ancestor::tei:supplied[not(@reason='undefined')]"
>gap may not appear within supplied
text</sch:report></sch:rule></constraint>
</constraintSpec>
<!-- constraining values of gap/@reason -->
<attList>
<attDef ident="reason" mode="replace" usage="req">
<valList type="closed">
<valItem ident="lost">
<desc>Text completely lost from the surface and
unrecoverable</desc>
</valItem>
<valItem ident="illegible">
<desc>Traces of text remains on the surface but cannot be
interpreted</desc>
</valItem>
<valItem ident="omitted">
<desc>Text erroneously omitted from the surface by the
scribe/cutter</desc>
</valItem>
<valItem ident="ellipsis">
<desc>Text omitted from the edition by the editor, for whatever
reason (brevity, context, language, etc.)</desc>
</valItem>
</valList>
</attDef>
<!-- removing gap/@dur (not needed in EpiDoc) -->
<attDef ident="dur" mode="delete"/>
</attList>
</elementSpec>
<!-- suggesting but not constraining values of hi/@rend -->
<elementSpec ident="hi" module="core" mode="change">
<attList>
<attDef ident="rend" mode="replace" usage="req">
<datatype maxOccurs="5">
<rng:ref name="data.word"/>
</datatype>
<valList type="semi">
<valItem ident="acute">
<desc>ancient acute (oxia, tonos) diacritic</desc>
</valItem>
<valItem ident="apex">
<desc/>
</valItem>
<valItem ident="asper">
<desc>ancient asper (rough breathing) diacritic</desc>
</valItem>
<valItem ident="circumflex">
<desc>ancient circumflex (perispomeni) diacritic</desc>
</valItem>
<valItem ident="diaeresis">
<desc>ancient diaeresis</desc>
</valItem>
<valItem ident="grave">
<desc>ancient grave (varia) diacritic</desc>
</valItem>
<valItem ident="intraline">
<desc>characters scored or struck through at the mid-line
level</desc>
</valItem>
<valItem ident="inverted">
<desc>character(s) inverted or rotated with respect to the rest
of the text</desc>
</valItem>
<valItem ident="italic">
<desc/>
</valItem>
<valItem ident="lenis">
<desc>ancient lenis (smooth breathing) diacritic</desc>
</valItem>
<valItem ident="ligature">
<desc>two (or more) letters ligatured, monogrammed, or therwise
joined</desc>
</valItem>
<valItem ident="normal">
<desc/>
</valItem>
<valItem ident="reversed">
<desc>characters reversed (backward-facing) with respect to the
rest of the line of text</desc>
</valItem>
<valItem ident="sling-above">
<desc/>
</valItem>
<valItem ident="sling-below">
<desc/>
</valItem>
<valItem ident="small">
<desc>Letter(s) smaller than those around them</desc>
</valItem>
<valItem ident="subscript">
<desc>characters written lower than the surrounding text</desc>
</valItem>
<valItem ident="superscript">
<desc>characters written higher than the surrounding text</desc>
</valItem>
<valItem ident="supraline">
<desc>characters written with a supralinear line above (e.g. for
abbreviation or numerals)</desc>
</valItem>
<valItem ident="tall">
<desc>Letter(s) taller than those around it, e.g. I-longa</desc>
</valItem>
<valItem ident="underline">
<desc>text written with solid line beneath</desc>
</valItem>
<valItem ident="stacked">
<desc>a character written directly above another character (as
opposed to superscript)</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<!-- change definition of <lb> to "line beginning" -->
<elementSpec ident="lb" mode="change" module="core">
<gloss>line-beginning</gloss>
<desc>marks the start of each line of the transcribed text, including the
first</desc>
<!-- offer value "no" for lb/@break -->
<attList>
<attDef ident="break" mode="replace" usage="opt">
<datatype>
<rng:ref name="data.enumerated"/>
</datatype>
<valList type="semi">
<valItem ident="no">
<desc>this line-beginning should not be taken as a word-break,
i.e. word would be hyphenated in a printed text</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<!-- adding temporary customization of <m> (2015-06-16), to be removed once TEI have implemented this -->
<elementSpec ident="m" module="analysis" mode="change">
<content>
<zeroOrMore xmlns="http://relaxng.org/ns/structure/1.0">
<choice>
<text/>
<ref name="model.gLike"/>
<ref name="model.hiLike"/>
<ref name="seg"/>
<ref name="m"/>
<ref name="c"/>
<ref name="model.global"/>
</choice>
</zeroOrMore>
</content>
</elementSpec>
<!-- suggested attribute values for origDate/@evidence -->
<elementSpec ident="origDate" module="msdescription" mode="change">
<attList>
<attDef ident="evidence" mode="replace" usage="opt">
<datatype maxOccurs="6">
<rng:ref name="data.word"/>
</datatype>
<valList type="semi">
<valItem ident="lettering">
<desc>Text dated palaeographically</desc>
</valItem>
<valItem ident="nomenclature">
<desc>Text dated by nomenclature or onomastics</desc>
</valItem>
<valItem ident="prosopography">
<desc>Text dated by known persons named or implied within
it</desc>
</valItem>
<valItem ident="reign">
<desc>Text dated by the reign of an emperor or other
ruler</desc>
</valItem>
<valItem ident="titulature">
<desc>Text dated by the use of official titles</desc>
</valItem>
<valItem ident="internal-date">
<desc>Text dated by explicit internal date</desc>
</valItem>
<valItem ident="context">
<desc>Archaeological, epigraphic, iconographic or other context
of the text support</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="space" module="transcr" mode="change">
<!-- testing for <space> with both quantity/extent or no unit -->
<constraintSpec ident="space" scheme="isoschematron">
<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="supplied" module="transcr" mode="change">
<attList>
<!-- suggested attribute list for supplied/@evidence -->
<attDef ident="evidence" mode="replace" usage="opt">
<datatype maxOccurs="1">
<rng:ref name="data.word"/>
</datatype>
<valList type="semi">
<valItem ident="parallel">
<desc>Characters supplied from a parallel version of this text,
absent from this one</desc>
</valItem>
<valItem ident="previouseditor">
<desc>Characters visible to a previous editor, now lost/unclear
due to damage</desc>
</valItem>
</valList>
</attDef>
<!-- constrained attribute list for supplied/@reason -->
<attDef ident="reason" mode="replace" usage="req">
<valList type="closed">
<valItem ident="lost">
<desc>Restoration of text completely lost from the
surface</desc>
</valItem>
<valItem ident="omitted">
<desc>Supplement of text erroneously omitted from the surface by
the scribe/cutter</desc>
</valItem>
<valItem ident="subaudible">
<desc>Editorial supplement of words subaudible to the native
reader</desc>
</valItem>
<valItem ident="explanation">
<desc>Editorial explanation of oblique text in original</desc>
</valItem>
<valItem ident="undefined">
<desc>Text restored (e.g. from earlier witness or alternate
copy) without specification of current state of this
text</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<!-- modifying <unclear> because in EpiDoc it should not contain anything but text and <g/> -->
<elementSpec ident="unclear" module="core" mode="change">
<content>
<rng:ref name="macro.xtext"/>
</content>
</elementSpec>
<!--******************************EAGLE EpiDoc customizations******************************-->
<elementSpec ident="publicationStmt" module="header" mode="change">
<!--abstract constraint for checking empty elements-->
<constraintSpec ident="emptyCheck" scheme="isoschematron">
<constraint>
<sch:rule abstract="true" id="emptyCheck">
<sch:assert test="normalize-space()"><sch:name/> should not be empty</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<!--abstract constraint for checking number elements-->
<constraintSpec ident="numberCheck" scheme="isoschematron">
<constraint>
<sch:rule abstract="true" id="numberCheck">
<sch:assert test='floor(.)=number(.)'><sch:name/> should be a number</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<constraintSpec scheme="isoschematron" ident="eaglePublicationStmt">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt">
<!--Provider of metadata (mandatory, cardinality: 1)-->
<!--checking that Provider of metadata is present-->
<sch:assert test="child::tei:authority">publicationStmt should contain authority</sch:assert>
<!--checking that the cardinality of Provider of metadata is exactly one-->
<sch:assert test="count(tei:authority)<=1">more than one authority is not allowed</sch:assert>
<!--Object identification within the content provider repository (mandatory, cardinality: 1)-->
<!--checking that the content provider ID (localID) is present and its cardinality is exactly one-->
<sch:assert test='count(tei:idno[@type="localID"])=1'>it should be exactly one idno[@type="localID"]</sch:assert>
<!--Object URI within the content provider repository (mandatory, cardinality: 1)-->
<!--checking that the content provider URI for the resource is present and its cardinality is exactly one-->
<sch:assert test='count(tei:idno[@type="URI"])=1'>it should be exactly one idno element[@type="URI"]</sch:assert>
<!--Trismegistos number (not mandatory but recommended, cardinality: 1)-->
<!--check for no more than one trismegistos number-->
<sch:assert test='count(tei:idno[@type="TM_id"])<=1'>it should be at most one idno[@type="TM_id"]</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--Provider of metadata (mandatory, cardinality: 1)-->
<!--checking that provider of metadata is not empty-->
<elementSpec ident="authority" module="header" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleAuthority">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:authority">
<sch:extends rule="emptyCheck"/>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--Data licence (not mandatory, cardinality: 1)-->
<!--constraining rights of data to a one of Europeana's recommended values-->
<elementSpec ident="licence" module="header" mode="change">
<!-- <constraintSpec scheme="isoschematron" ident="eagleLicence">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:availability/tei:licence[@target]">
<sch:assert test="matches(., 'http://creativecommons.org/publicdomain/zero/1.0/')">licence should match 'http://creativecommons.org/publicdomain/zero/1.0/'</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>-->
<attList>
<!-- constraining values of licence/@target -->
<attDef ident="target" mode="replace">
<valList type="closed">
<valItem ident="http://creativecommons.org/publicdomain/mark/1.0/">
<desc>The Public Domain Mark (PDM)</desc>
</valItem>
<valItem ident="http://www.europeana.eu/rights/out-of-copyright-non-commercial/">
<desc>Out of copyright - non commercial re-use (OOC-NC)</desc>
</valItem>
<valItem ident="http://creativecommons.org/publicdomain/zero/1.0/">
<desc>The Creative Commons CC0 1.0 Universal Public Domain Dedication (CC0)</desc>
</valItem>
<valItem ident="http://creativecommons.org/licenses/by/4.0/">
<desc>Creative Commons - Attribution (BY)</desc>
</valItem>
<valItem ident="http://creativecommons.org/licenses/by-sa/4.0/">
<desc>Creative Commons - Attribution, ShareAlike (BY-SA)</desc>
</valItem>
<valItem ident="http://creativecommons.org/licenses/by-nd/4.0/">
<desc>Creative Commons - Attribution, No Derivatives (BY-ND)</desc>
</valItem>
<valItem ident="http://creativecommons.org/licenses/by-nc/4.0/">
<desc>Creative Commons - Attribution, Non-Commercial (BY-NC)</desc>
</valItem>
<valItem ident="http://creativecommons.org/licenses/by-nc-sa/4.0/">
<desc>Creative Commons - Attribution, Non-Commercial, ShareAlike (BY-NC-SA)</desc>
</valItem>
<valItem ident="http://creativecommons.org/licenses/by-nc-nd/4.0/">
<desc>Creative Commons - Attribution, Non-Commercial, No Derivatives (BY-NC-ND)</desc>
</valItem>
<valItem ident="http://www.europeana.eu/rights/rr-f/">
<desc>Rights Reserved - Free Access</desc>
</valItem>
<valItem ident="http://www.europeana.eu/rights/rr-p/">
<desc>Rights Reserved - Paid Access</desc>
</valItem>
<valItem ident="http://www.europeana.eu/rights/orphan-work-eu/">
<desc>Orphan work</desc>
</valItem>
<valItem ident="http://www.europeana.eu/rights/unknown/">
<desc>Unknown</desc>
</valItem>
</valList>
</attDef>
</attList>
</elementSpec>
<elementSpec ident="idno" module="header" mode="change">
<!--Object identification within the content provider repository (mandatory, cardinality: 1)-->
<!--checking that content provider id for the resource is not empty-->
<constraintSpec scheme="isoschematron" ident="eagleIdno">
<constraint>
<sch:rule context='/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno[@type="localID"]'>
<sch:extends rule="emptyCheck"/>
</sch:rule>
</constraint>
</constraintSpec>
<!--Object URI within the content provider repository (mandatory, cardinality: 1)-->
<!--checking that content provider URI for the resource is not empty-->
<constraintSpec scheme="isoschematron" ident="eagleIdno">
<constraint>
<sch:rule context='/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno[@type="URI"]'>
<sch:extends rule="emptyCheck"/>
</sch:rule>
</constraint>
</constraintSpec>
<!--Object identification within the content provider repository (mandatory, cardinality: 1)-->
<!--checking that trismegistos number, if provided, is not empty-->
<constraintSpec scheme="isoschematron" ident="eagleIdno">
<constraint>
<sch:rule context='/tei:TEI/tei:teiHeader/tei:fileDesc/tei:publicationStmt/tei:idno[@type="TM_id"]'>
<sch:extends rule="numberCheck"/>
<!--<sch:assert test='floor(.)=number(.)'>trismegistos should be a number</sch:assert>-->
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="titleStmt" module="header" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleTitleStmt">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt">
<!--Object Title (mandatory, cardinality: 1)-->
<!--checking for exactly one object title-->
<sch:assert test='count(tei:title)=1'>it should be exactly one title</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--Object Title (mandatory, cardinality: 1)-->
<!--checking that object title is not empty-->
<elementSpec ident="title" module="core" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleTitle">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title">
<sch:extends rule="emptyCheck"/>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="keywords" module="header" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleKeywords">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords">
<!--Type of inscription (not mandatory, cardinality: 1)-->
<!--checking for no more than one type of inscription-->
<sch:assert test='count(tei:term)<=1'>it should be at most one term for type of inscription</sch:assert>
<!-- <sch:assert test='not(tei:term/@ref) or starts-with(tei:term/@ref, "http://www.eagle-network.eu/voc/typeins/lod/")'>attribute ref should be of the form "http://www.eagle-network.eu/voc/typeins/lod/XX"</sch:assert> -->
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--Type of inscription (not mandatory, cardinality: 1)-->
<elementSpec ident="term" module="core" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleTerm">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords/tei:term">
<!--checking that type of inscription is not empty-->
<sch:extends rule="emptyCheck"/>
<!--checking that the url for type of inscription, if provided, is pointing to the EAGLE vocabulary for type of inscription.
This check is limited to ensure that the start of the url is correct. The complete url can still be invalid if the part after
lod/ is not a valid value within this vocabulary-->
<sch:assert test='not(@ref) or starts-with(@ref, "http://www.eagle-network.eu/voc/typeins/lod/")'>attribute ref should be of the form "http://www.eagle-network.eu/voc/typeins/lod/XX"</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="body" module="textstructure" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleBody">
<constraint>
<sch:rule context="/tei:TEI/tei:text/tei:body">
<!--Transcription text (mandatory, cardinality: 1)-->
<!--checking for no more than one transcription text-->
<sch:assert test='count(tei:div[@type="edition"])=1'>it should be exactly one div[@type="edition"]</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--Transcription text (mandatory, cardinality: 1)-->
<elementSpec ident="div" module="textstructure" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleDiv">
<constraint>
<sch:rule context='/tei:TEI/tei:text/tei:body/tei:div[@type="edition"]'>
<!--checking that transcription text is not empty-->
<sch:extends rule="emptyCheck"/>
<sch:assert test="normalize-space(@xml:lang)">@xml:lang is required</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--Engraving technique (not mandatory, cardinality: *)-->
<elementSpec ident="rs" module="core" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleRs">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:physDesc/tei:objectDesc/tei:layoutDesc/tei:layout/tei:rs[@ref]">
<!--checking that engraving technique, if provided, is not empty-->
<sch:extends rule="emptyCheck"/>
<!--checking that the url for engraving technique, if provided, is pointing to the EAGLE vocabulary for Engraving technique.
This check is limited to ensure that the start of the url is correct. The complete url can still be invalid if the part after
lod/ is not a valid value within this vocabulary-->
<sch:assert test='starts-with(@ref, "http://www.eagle-network.eu/voc/writing/lod/")'>attribute ref should be of the form "http://www.eagle-network.eu/voc/writing/lod/XX"</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="support" module="msdescription" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleSupport">
<constraint>
<sch:rule context="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:physDesc/tei:objectDesc/tei:supportDesc/tei:support">
<!--Monument type (mandatory, cardinality: *)-->
<!--checking for at least one monument type-->
<sch:assert test='tei:objectType'>it should be at least one objectType for monument type</sch:assert>
<!--Material (mandatory, cardinality: *)-->
<!--checking for at least one material-->
<sch:assert test='tei:material'>it should be at least one material</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--Monument type (mandatory, cardinality: *)-->
<elementSpec ident="objectType" module="msdescription" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleObjectType">
<constraint>
<sch:rule context='/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:physDesc/tei:objectDesc/tei:supportDesc/tei:support/tei:objectType'>
<!--checking that monument type is not empty-->
<sch:extends rule="emptyCheck"/>
<!--checking that the url for monument type, if provided, is pointing to the EAGLE vocabulary for monument type.
This check is limited to ensure that the start of the url is correct. The complete url can still be invalid if the part after
lod/ is not a valid value within this vocabulary-->
<sch:assert test='not(@ref) or starts-with(@ref, "http://www.eagle-network.eu/voc/objtyp/lod/")'>@ref should be of the form "http://www.eagle-network.eu/voc/objtyp/lod/XX"</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--Material (mandatory, cardinality: *)-->
<elementSpec ident="material" module="msdescription" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleMatrial">
<constraint>
<sch:rule context='/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:physDesc/tei:objectDesc/tei:supportDesc/tei:support/tei:material'>
<!--checking that material is not empty-->
<sch:extends rule="emptyCheck"/>
<!--checking that the url for material, if provided, is pointing to the EAGLE vocabulary for material.
This check is limited to ensure that the start of the url is correct. The complete url can still be invalid if the part after
lod/ is not a valid value within this vocabulary-->
<sch:assert test='not(@ref) or starts-with(@ref, "http://www.eagle-network.eu/voc/material/lod/")'>attribute ref should be of the form "http://www.eagle-network.eu/voc/material/lod/XX"</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="dimensions" module="msdescription" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleDimensions">
<constraint>
<sch:rule context='/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:physDesc/tei:objectDesc/tei:supportDesc/tei:support/tei:dimensions'>
<!--Monument height, width and depth (not mandatory but recommended, cardinality: 1)-->
<!--checking for cm as the unit for object dimensions-->
<sch:assert test='@unit="cm"'>@unit is required and its value should be "cm"</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<elementSpec ident="rs" module="msdescription" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleRs">
<constraint>
<sch:rule context='/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:physDesc/tei:objectDesc/tei:supportDesc/tei:support/tei:rs'>
<sch:extends rule="emptyCheck"/>
<!--Decoration (not mandatory, cardinality: *)-->
<!--checking that the url for decoration, if provided, is pointing to the EAGLE vocabulary for decoration.
This check is limited to ensure that the start of the url is correct. The complete url can still be invalid if the part after
lod/ is not a valid value within this vocabulary-->
<sch:assert test='not(@type="decoration" and @ref) or starts-with(@ref,"http://www.eagle-network.eu/voc/decor/lod/")'>@ref should be of the form "http://www.eagle-network.eu/voc/decor/lod/XX"</sch:assert>
<!--State of preservation (not mandatory, cardinality: 1)-->
<!--checking that the url for state of preservation, if provided, is pointing to the EAGLE vocabulary for State of preservation.
This check is limited to ensure that the start of the url is correct. The complete url can still be invalid if the part after
lod/ is not a valid value within this vocabulary-->
<sch:assert test='not(@type="statPreserv" and @ref) or starts-with(@ref,"http://www.eagle-network.eu/voc/statepreserv/lod/")'>@ref should be of the form "http://www.eagle-network.eu/voc/statepreserv/lod/XX"</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<constraintSpec scheme="isoschematron" ident="eaglePreservation">
<constraint>
<sch:rule context='/tei:TEI/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:msDesc/tei:physDesc/tei:objectDesc/tei:supportDesc/tei:support/tei:rs'>
<!--checking that state of preservation and decoration are not empty-->
<sch:extends rule="emptyCheck"/>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!-- GRAPHICS -->
<elementSpec ident="graphic" module="core" mode="change">
<constraintSpec scheme="isoschematron" ident="eagleGraphic">
<constraint>
<sch:rule context='/tei:TEI/tei:facsimile/tei:graphic'>
<!--Object identification within the content provider repository (mandatory, cardinality: 1)-->
<!--checking for resource id-->
<sch:assert test='normalize-space(@n)'>@n is required for identifying this resource within the CP repository</sch:assert>
<!--Visual representation URL (mandatory, cardinality: 1)-->
<!--checking for resource url-->
<sch:assert test='normalize-space(@url)'>@url is required pointing to the resource file</sch:assert>
<!--Visual representation rights (mandatory, cardinality: 1)-->
<!--checking resource licence being one of Europeanas available rights statements-->
<sch:assert test='tei:desc/tei:ref[@type="license" and (@target="http://creativecommons.org/publicdomain/mark/1.0/"
or @target="http://www.europeana.eu/rights/out-of-copyright-non-commercial/"
or @target="http://creativecommons.org/publicdomain/zero/1.0/"
or @target="http://creativecommons.org/licenses/by/4.0/"
or @target="http://creativecommons.org/licenses/by-sa/4.0/"
or @target="http://creativecommons.org/licenses/by-nd/4.0/"
or @target="http://creativecommons.org/licenses/by-nc/4.0/"
or @target="http://creativecommons.org/licenses/by-nc-sa/4.0/"
or @target="http://creativecommons.org/licenses/by-nc-nd/4.0/"
or @target="http://www.europeana.eu/rights/rr-f/"
or @target="http://www.europeana.eu/rights/rr-p/"
or @target="http://www.europeana.eu/rights/orphan-work-eu/"
or @target="http://www.europeana.eu/rights/unknown/")]'>desc/ref is required within graphic with both @type="license" and @target pointing to one of the rights statements of Europeana. See http://pro.europeana.eu/page/available-rights-statements</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</elementSpec>
<!--******************************End of EAGLE EpiDoc customizations******************************-->
<!-- CHANGING ATTRIBUTE CLASSES -->
<!--<classSpec type="atts" ident="att.datable.custom" mode="change">
<constraintSpec scheme="isoschematron" ident="datable.custom">
<constraint>
<sch:rule context="tei:*[contains(@datingMethod,'julian')]">
<sch:report test="@when-custom[not(matches(.,'-?(\d{4})(-\d{2}(-\d{2})?)?'))]">
in Julian dating method @when-custom must be a date in the form [-]YYYY[-MM[-DD]]</sch:report>
<sch:report test="@notBefore-custom[not(matches(.,'-?(\d{4})(-\d{2}(-\d{2})?)?'))]">
in Julian dating method @notBefore-custom must be a date in the form [-]YYYY[-MM[-DD]]</sch:report>
<sch:report test="@notAfter-custom[not(matches(.,'-?(\d{4})(-\d{2}(-\d{2})?)?'))]">
in Julian dating method @notAfter-custom must be a date in the form [-]YYYY[-MM[-DD]]</sch:report>
</sch:rule>
</constraint>
</constraintSpec>
</classSpec>-->
<classSpec type="atts" ident="att.dimensions" mode="change">
<attList>
<attDef ident="precision" mode="replace">
<valList type="closed">
<valItem ident="low"/>
<valItem ident="medium"/>
<valItem ident="high"/>
</valList>
</attDef>
<attDef ident="unit" mode="change">
<valList type="semi" mode="replace">
<valItem ident="character"/>
<valItem ident="line"/>
<valItem ident="metre"/>
<valItem ident="cm"/>
<valItem ident="mm"/>
</valList>
</attDef>
<attDef ident="extent" mode="change">
<valList type="semi" mode="replace">
<valItem ident="unknown"/>
</valList>
</attDef>
</attList>
</classSpec>
<classSpec type="atts" ident="att.responsibility" mode="change">
<attList>
<attDef ident="cert" mode="replace">
<valList type="closed">
<valItem ident="low"/>
<valItem ident="high"/>
</valList>
</attDef>
</attList>
</classSpec>
</schemaSpec>
</body>
</text>
</TEI>