This repository has been archived by the owner on Dec 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
termithEval.rnc
7255 lines (6590 loc) · 235 KB
/
termithEval.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
default namespace = "http://standoff.proposal"
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
namespace ns1 = "http://www.isocat.org/ns/dcr"
namespace rng = "http://relaxng.org/ns/structure/1.0"
namespace sch = "http://purl.oclc.org/dsdl/schematron"
namespace tbx = "http://www.tbx.org"
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"
# Schema generated from ODD source 2016-05-03T10:27:45Z. .
# TEI Edition:
# TEI Edition Location: http://www.tei-c.org/Vault/P5//
#
# [http://creativecommons.org/licenses/by/3.0/] The Creative Commons Attribution 3.0 Unported (CC BY 3.0) Licence applies to this document.You can quote this document as: Romary, L., TBX extension to the standOff specification; ODD specification. 2016
macro.paraContent =
(text
| model.gLike
| model.phrase
| model.inter
| model.global
| lg
| model.lLike)*
macro.limitedContent = (text | model.limitedPhrase | model.inter)*
macro.phraseSeq = (text | model.gLike | model.phrase | model.global)*
macro.phraseSeq.limited = (text | model.limitedPhrase | model.global)*
macro.specialPara =
(text
| model.gLike
| model.phrase
| model.inter
| model.divPart
| model.global)*
macro.xtext = (text | model.gLike)*
att.ascribed.attributes = att.ascribed.attribute.who
att.ascribed.attribute.who =
## indicates the person, or group of people, to whom the element content is ascribed.
attribute who {
list { xsd:anyURI+ }
}?
att.canonical.attributes =
att.canonical.attribute.key, att.canonical.attribute.ref
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 }?
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+ }
}?
att.ranging.attributes =
att.ranging.attribute.atLeast,
att.ranging.attribute.atMost,
att.ranging.attribute.min,
att.ranging.attribute.max,
att.ranging.attribute.confidence
att.ranging.attribute.atLeast =
## gives a minimum estimated value for the approximate measurement.
attribute atLeast {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
att.ranging.attribute.atMost =
## gives a maximum estimated value for the approximate measurement.
attribute atMost {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
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
}?
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
}?
att.ranging.attribute.confidence =
## specifies the degree of statistical confidence (between zero and one) that a value falls within the range specified by min and max, or the proportion of observed values that fall within that range.
attribute confidence { xsd:double }?
att.dimensions.attributes =
att.ranging.attributes,
att.dimensions.attribute.unit,
att.dimensions.attribute.quantity,
att.dimensions.attribute.extent,
att.dimensions.attribute.precision,
att.dimensions.attribute.scope
att.dimensions.attribute.unit =
## names the unit used for the measurement
## Suggested values include: 1] cm(centimetres) ; 2] mm(millimetres) ; 3] in(inches) ; 4] lines; 5] chars(characters)
attribute unit {
## (centimetres)
"cm"
|
## (millimetres)
"mm"
|
## (inches)
"in"
|
## lines of text
"lines"
|
## (characters) characters of text
"chars"
| xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.dimensions.attribute.quantity =
## specifies the length in the units specified
attribute quantity {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
att.dimensions.attribute.extent =
## indicates the size of the object concerned using a project-specific vocabulary combining quantity and units in a single string of words.
attribute extent { xsd:string }?
att.dimensions.attribute.precision =
## characterizes the precision of the values specified by the other attributes.
attribute precision { text }?
att.dimensions.attribute.scope =
## where the measurement summarizes more than one observation, specifies the applicability of this measurement.
## Sample values include: 1] all; 2] most; 3] range
attribute scope {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.written.attributes = att.written.attribute.hand
att.written.attribute.hand =
## points to a handNote element describing the hand considered responsible for the textual content of the element concerned.
attribute hand { xsd:anyURI }?
att.breaking.attributes = att.breaking.attribute.break
att.breaking.attribute.break =
## indicates whether or not the element bearing this attribute should be considered to mark the end of an orthographic token in the same way as whitespace.
attribute break {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.cReferencing.attributes = att.cReferencing.attribute.cRef
att.cReferencing.attribute.cRef =
## (canonical reference) specifies the destination of the pointer by supplying a canonical reference expressed using the scheme defined in a refsDecl element in the TEI header
attribute cRef { xsd:string }?
att.datable.w3c.attributes =
att.datable.w3c.attribute.when,
att.datable.w3c.attribute.notBefore,
att.datable.w3c.attribute.notAfter,
att.datable.w3c.attribute.from,
att.datable.w3c.attribute.to
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
}?
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
}?
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
}?
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
}?
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 =
"standOffWithTBX-att.datable.w3c-att-datable-w3c-when-constraint-1"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@when]"
"\x{a}" ~
" "
sch:report [
role = "nonfatal"
test = "@notBefore|@notAfter|@from|@to"
"The @when attribute cannot be used with any other att.datable.w3c attributes."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
sch:pattern [
id =
"standOffWithTBX-att.datable.w3c-att-datable-w3c-from-constraint-2"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@from]"
"\x{a}" ~
" "
sch:report [
role = "nonfatal"
test = "@notBefore"
"The @from and @notBefore attributes cannot be used together."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
sch:pattern [
id = "standOffWithTBX-att.datable.w3c-att-datable-w3c-to-constraint-3"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@to]"
"\x{a}" ~
" "
sch:report [
role = "nonfatal"
test = "@notAfter"
"The @to and @notAfter attributes cannot be used together."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
att.datable.attributes =
att.datable.w3c.attributes,
att.datable.iso.attributes,
att.datable.custom.attributes,
att.datable.attribute.calendar,
att.datable.attribute.period
att.datable.attribute.calendar =
## indicates the system or calendar to which the date represented by the content of this element belongs.
attribute calendar { xsd:anyURI }?
sch:pattern [
id = "standOffWithTBX-att.datable-calendar-calendar-constraint-4"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@calendar]"
"\x{a}" ~
" "
sch:assert [
test = "string-length(.) gt 0"
"\x{a}" ~
"@calendar indicates the system or calendar to which the date represented by the content of this element\x{a}" ~
"belongs, but this "
sch:name [ ]
" element has no textual content."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
att.datable.attribute.period =
## supplies a pointer to some location defining a named period of time within which the datable item is understood to have occurred.
attribute period { xsd:anyURI }?
att.datcat.attributes =
att.datcat.attribute.datcat, att.datcat.attribute.valueDatcat
att.datcat.attribute.datcat =
## contains a PID (persistent identifier) that aligns the given element with the appropriate Data Category (or categories) in ISOcat.
attribute ns1:datcat {
list { xsd:anyURI+ }
}?
att.datcat.attribute.valueDatcat =
## contains a PID (persistent identifier) that aligns the content of the given element or the value of the given attribute with the appropriate simple Data Category (or categories) in ISOcat.
attribute ns1:valueDatcat {
list { xsd:anyURI+ }
}?
att.declarable.attributes = att.declarable.attribute.default
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"
}?
att.declaring.attributes = att.declaring.attribute.decls
att.declaring.attribute.decls =
## identifies one or more declarable elements within the header, which are understood to apply to the element bearing this attribute and its content.
attribute decls {
list { xsd:anyURI+ }
}?
att.fragmentable.attributes = att.fragmentable.attribute.part
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"
}?
att.divLike.attributes =
att.fragmentable.attributes,
att.divLike.attribute.org,
att.divLike.attribute.sample
att.divLike.attribute.org =
## (organization) specifies how the content of the division is organized.
[ a:defaultValue = "uniform" ]
attribute org {
## no claim is made about the sequence in which the immediate contents of this division are to be processed, or their inter-relationships.
"composite"
|
## the immediate contents of this element are regarded as forming a logical unit, to be processed in sequence.
"uniform"
}?
att.divLike.attribute.sample =
## indicates whether this division is a sample of the original source and if so, from which part.
[ a:defaultValue = "complete" ]
attribute sample {
## division lacks material present at end in source.
"initial"
|
## division lacks material at start and end.
"medial"
|
## division lacks material at start.
"final"
|
## position of sampled material within original unknown.
"unknown"
|
## division is not a sample.
"complete"
}?
att.docStatus.attributes = att.docStatus.attribute.status
att.docStatus.attribute.status =
## describes the status of a document either currently or, when associated with a dated element, at the time indicated.
## Sample values include: 1] approved; 2] candidate; 3] cleared; 4] deprecated; 5] draft; 6] embargoed; 7] expired; 8] frozen; 9] galley; 10] proposed; 11] published; 12] recommendation; 13] submitted; 14] unfinished; 15] withdrawn
[ a:defaultValue = "draft" ]
attribute status {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.global.responsibility.attributes =
att.global.responsibility.attribute.cert,
att.global.responsibility.attribute.resp
att.global.responsibility.attribute.cert =
## (certainty) signifies the degree of certainty associated with the intervention or interpretation.
attribute cert { text }?
att.global.responsibility.attribute.resp =
## (responsible party) indicates the agency responsible for the intervention or interpretation, for example an editor or transcriber.
attribute resp {
list { xsd:anyURI+ }
}?
att.editLike.attributes =
att.dimensions.attributes,
att.source.attributes,
att.editLike.attribute.evidence,
att.editLike.attribute.instant
att.editLike.attribute.evidence =
## indicates the nature of the evidence supporting the reliability or accuracy of the intervention or interpretation.
## Suggested values include: 1] internal; 2] external; 3] conjecture
attribute evidence {
list {
(
## there is internal evidence to support the intervention.
"internal"
|
## there is external evidence to support the intervention.
"external"
|
## the intervention or interpretation has been made by the editor, cataloguer, or scholar on the basis of their expertise.
"conjecture"
| xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" })+
}
}?
att.editLike.attribute.instant =
## indicates whether this is an instant revision or not.
[ a:defaultValue = "false" ]
attribute instant {
xsd:boolean
| (
##
"unknown"
|
##
"inapplicable")
}?
att.global.rendition.attributes =
att.global.rendition.attribute.rend,
att.global.rendition.attribute.style,
att.global.rendition.attribute.rendition
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{L}|\p{N}|\p{P}|\p{S})+" }+
}
}?
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 }?
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+ }
}?
att.global.attributes =
att.global.rendition.attributes,
att.global.linking.attributes,
att.global.analytic.attributes,
att.global.responsibility.attributes,
att.global.attribute.xmlid,
att.global.attribute.n,
att.global.attribute.xmllang,
att.global.attribute.xmlbase,
att.global.attribute.xmlspace
att.global.attribute.xmlid =
## (identifier) provides a unique identifier for the element bearing the attribute.
attribute xml:id { xsd:ID }?
att.global.attribute.n =
## (number) gives a number (or other label) for an element, which is not necessarily unique within the document.
attribute n { xsd:string }?
att.global.attribute.xmllang =
## (language) indicates the language of the element content using a tag generated according to BCP 47.
attribute xml:lang {
xsd:language
| (
##
"")
}?
att.global.attribute.xmlbase =
## provides a base URI reference with which applications can resolve relative URI references into absolute URI references.
attribute xml:base { xsd:anyURI }?
att.global.attribute.xmlspace =
## signals an intention about how white space should be managed by applications.
attribute xml:space {
## signals that the application's default white-space processing modes are acceptable
"default"
|
## indicates the intent that applications preserve all white space
"preserve"
}?
att.handFeatures.attribute.scribe =
## gives a name or other identifier for the scribe believed to be responsible for this hand.
attribute scribe { xsd:Name }?
att.handFeatures.attribute.scribeRef =
## points to a full description of the scribe concerned, typically supplied by a person element elsewhere in the description.
attribute scribeRef {
list { xsd:anyURI+ }
}?
att.handFeatures.attribute.script =
## characterizes the particular script or writing style used by this hand, for example secretary, copperplate, Chancery, Italian, etc.
attribute script {
list { xsd:Name+ }
}?
att.handFeatures.attribute.scriptRef =
## points to a full description of the script or writing style used by this hand, typically supplied by a scriptNote element elsewhere in the description.
attribute scriptRef {
list { xsd:anyURI+ }
}?
att.handFeatures.attribute.medium =
## describes the tint or type of ink, e.g. brown, or other writing medium, e.g. pencil
attribute medium {
list {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }+
}
}?
att.handFeatures.attribute.scope =
## specifies how widely this hand is used in the manuscript.
attribute scope {
## only this hand is used throughout the manuscript
"sole"
|
## this hand is used through most of the manuscript
"major"
|
## this hand is used occasionally in the manuscript
"minor"
}?
att.internetMedia.attributes = att.internetMedia.attribute.mimeType
att.internetMedia.attribute.mimeType =
## (MIME media type) specifies the applicable multimedia internet mail extension (MIME) media type
attribute mimeType {
list {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }+
}
}?
att.media.attributes =
att.internetMedia.attributes,
att.media.attribute.width,
att.media.attribute.height,
att.media.attribute.scale
att.media.attribute.width =
## Where the media are displayed, indicates the display width
attribute width {
xsd:token {
pattern =
"[\-+]?\d+(\.\d+)?(%|cm|mm|in|pt|pc|px|em|ex|gd|rem|vw|vh|vm)"
}
}?
att.media.attribute.height =
## Where the media are displayed, indicates the display height
attribute height {
xsd:token {
pattern =
"[\-+]?\d+(\.\d+)?(%|cm|mm|in|pt|pc|px|em|ex|gd|rem|vw|vh|vm)"
}
}?
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
}?
att.resourced.attributes = att.resourced.attribute.url
att.resourced.attribute.url =
## (uniform resource locator) specifies the URL from which the media concerned may be obtained.
attribute url { xsd:anyURI }
att.interpLike.attributes =
att.source.attributes,
att.interpLike.attribute.type,
att.interpLike.attribute.inst
att.interpLike.attribute.type =
## indicates what kind of phenomenon is being noted in the passage.
## Sample values include: 1] image; 2] character; 3] theme; 4] allusion
attribute type {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.interpLike.attribute.inst =
## (instances) points to instances of the analysis or interpretation represented by the current element.
attribute inst {
list { xsd:anyURI+ }
}?
att.measurement.attributes =
att.measurement.attribute.unit,
att.measurement.attribute.quantity,
att.measurement.attribute.commodity
att.measurement.attribute.unit =
## indicates the units used for the measurement, usually using the standard symbol for the desired units.
## Suggested values include: 1] m(metre) ; 2] kg(kilogram) ; 3] s(second) ; 4] Hz(hertz) ; 5] Pa(pascal) ; 6] Ω(ohm) ; 7] L(litre) ; 8] t(tonne) ; 9] ha(hectare) ; 10] Å(ångström) ; 11] mL(millilitre) ; 12] cm(centimetre) ; 13] dB(decibel) ; 14] kbit(kilobit) ; 15] Kibit(kibibit) ; 16] kB(kilobyte) ; 17] KiB(kibibyte) ; 18] MB(megabyte) ; 19] MiB(mebibyte)
attribute unit {
## (metre) SI base unit of length
"m"
|
## (kilogram) SI base unit of mass
"kg"
|
## (second) SI base unit of time
"s"
|
## (hertz) SI unit of frequency
"Hz"
|
## (pascal) SI unit of pressure or stress
"Pa"
|
## (ohm) SI unit of electric resistance
"Ω"
|
## (litre) 1 dm³
"L"
|
## (tonne) 10³ kg
"t"
|
## (hectare) 1 hm²
"ha"
|
## (ångström) 10⁻¹⁰ m
"Å"
|
## (millilitre)
"mL"
|
## (centimetre)
"cm"
|
## (decibel) see remarks, below
"dB"
|
## (kilobit) 10³ or 1000 bits
"kbit"
|
## (kibibit) 2¹⁰ or 1024 bits
"Kibit"
|
## (kilobyte) 10³ or 1000 bytes
"kB"
|
## (kibibyte) 2¹⁰ or 1024 bytes
"KiB"
|
## (megabyte) 10⁶ or 1 000 000 bytes
"MB"
|
## (mebibyte) 2²⁰ or 1 048 576 bytes
"MiB"
| xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.measurement.attribute.quantity =
## specifies the number of the specified units that comprise the measurement
attribute quantity {
xsd:double
| xsd:token { pattern = "(\-?[\d]+/\-?[\d]+)" }
| xsd:decimal
}?
att.measurement.attribute.commodity =
## indicates the substance that is being measured
attribute commodity {
list {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }+
}
}?
att.naming.attributes =
att.canonical.attributes,
att.naming.attribute.role,
att.naming.attribute.nymRef
att.naming.attribute.role =
## may be used to specify further information about the entity referenced by this name in the form of a set of whitespace-separated values, for example the occupation of a person, or the status of a place.
attribute role {
list {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }+
}
}?
att.naming.attribute.nymRef =
## (reference to the canonical name) provides a means of locating the canonical form (nym) of the names associated with the object named by the element bearing it.
attribute nymRef {
list { xsd:anyURI+ }
}?
att.notated.attributes = att.notated.attribute.notation
att.notated.attribute.notation =
## names the notation used for the content of the element.
attribute notation {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.placement.attributes = att.placement.attribute.place
att.placement.attribute.place =
## specifies where this item is placed.
## Suggested values include: 1] below; 2] bottom; 3] margin; 4] top; 5] opposite; 6] overleaf; 7] above; 8] end; 9] inline; 10] inspace
attribute place {
list {
(
## below the line
"below"
|
## at the foot of the page
"bottom"
|
## in the margin (left, right, or both)
"margin"
|
## at the top of the page
"top"
|
## on the opposite, i.e. facing, page
"opposite"
|
## on the other side of the leaf
"overleaf"
|
## above the line
"above"
|
## at the end of e.g. chapter or volume.
"end"
|
## within the body of the text.
"inline"
|
## in a predefined space, for example left by an earlier scribe.
"inspace"
| xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" })+
}
}?
att.typed.attributes =
att.typed.attribute.type, att.typed.attribute.subtype
att.typed.attribute.type =
## characterizes the element in some sense, using any convenient classification scheme or typology.
attribute type {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.typed.attribute.subtype =
## provides a sub-categorization of the element, if needed
attribute subtype {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
sch:pattern [
id = "standOffWithTBX-att.typed-subtypeTyped-constraint-5"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[@subtype]"
"\x{a}" ~
" "
sch:assert [
test = "@type"
"The "
sch:name [ ]
" element should not be categorized in detail with @subtype unless also categorized in general with @type"
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
att.pointing.attributes =
att.pointing.attribute.targetLang,
att.pointing.attribute.target,
att.pointing.attribute.evaluate
att.pointing.attribute.targetLang =
## specifies the language of the content to be found at the destination referenced by target, using a language tag generated according to BCP 47.
attribute targetLang {
xsd:language
| (
##
"")
}?
sch:pattern [
id = "standOffWithTBX-att.pointing-targetLang-targetLang-constraint-6"
"\x{a}" ~
" "
sch:rule [
context = "tei:*[not(self::tei:schemaSpec)][@targetLang]"
"\x{a}" ~
" "
sch:assert [
test = "@target"
"@targetLang should only be used on "
sch:name [ ]
" if @target is specified."
]
"\x{a}" ~
" "
]
"\x{a}" ~
" "
]
att.pointing.attribute.target =
## specifies the destination of the reference by supplying one or more URI References
attribute target {
list { xsd:anyURI+ }
}?
att.pointing.attribute.evaluate =
## specifies the intended meaning when the target of a pointer is itself a pointer.
attribute evaluate {
## if the element pointed to is itself a pointer, then the target of that pointer will be taken, and so on, until an element is found which is not a pointer.
"all"
|
## if the element pointed to is itself a pointer, then its target (whether a pointer or not) is taken as the target of this pointer.
"one"
|
## no further evaluation of targets is carried out beyond that needed to find the element specified in the pointer's target.
"none"
}?
att.pointing.group.attributes =
att.pointing.attributes,
att.typed.attributes,
att.pointing.group.attribute.domains,
att.pointing.group.attribute.targFunc
att.pointing.group.attribute.domains =
## optionally specifies the identifiers of the elements within which all elements indicated by the contents of this element lie.
attribute domains {
list { xsd:anyURI, xsd:anyURI, xsd:anyURI* }
}?
att.pointing.group.attribute.targFunc =
## (target function) describes the function of each of the values of the target attribute of the enclosed link, join, or alt tags.
attribute targFunc {
list {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" },
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" },
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }*
}
}?
att.segLike.attributes =
att.datcat.attributes,
att.fragmentable.attributes,
att.segLike.attribute.function
att.segLike.attribute.function =
## characterizes the function of the segment.
attribute function {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.sortable.attributes = att.sortable.attribute.sortKey
att.sortable.attribute.sortKey =
## supplies the sort key for this element in an index, list or group which contains it.
attribute sortKey {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }
}?
att.edition.attributes =
att.edition.attribute.ed, att.edition.attribute.edRef
att.edition.attribute.ed =
## (edition) supplies a sigil or other arbitrary identifier for the source edition in which the associated feature (for example, a page, column, or line break) occurs at this point in the text.
attribute ed {
list {
xsd:token { pattern = "(\p{L}|\p{N}|\p{P}|\p{S})+" }+
}
}?
att.edition.attribute.edRef =
## (edition reference) provides a pointer to the source edition in which the associated feature (for example, a page, column, or line break) occurs at this point in the text.
attribute edRef {
list { xsd:anyURI+ }
}?
att.spanning.attributes = att.spanning.attribute.spanTo
att.spanning.attribute.spanTo =
## indicates the end of a span initiated by the element bearing this attribute.
attribute spanTo { xsd:anyURI }?
sch:pattern [
id = "standOffWithTBX-att.spanning-spanTo-spanTo-2-constraint-7"
"\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}" ~
" "
]
att.styleDef.attributes =
att.styleDef.attribute.scheme, att.styleDef.attribute.schemeVersion
att.styleDef.attribute.scheme =
## identifies the language used to describe the rendition.
attribute scheme {
## Cascading Stylesheet Language
"css"
|
## Extensible Stylesheet Language Formatting Objects
"xslfo"
|
## Informal free text description
"free"
|
## A user-defined rendition description language
"other"
}?
att.styleDef.attribute.schemeVersion =
## supplies a version number for the style language provided in scheme.
attribute schemeVersion {
xsd:token { pattern = "[\d]+[a-z]*[\d]*(\.[\d]+[a-z]*[\d]*){0,3}" }
}?
sch:pattern [
id =