Skip to content
Snippets Groups Projects
tei_all.rng 1 MiB
Newer Older
  • Learn to ignore specific revisions
  • 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"?>
    <grammar xmlns="http://relaxng.org/ns/structure/1.0"
             xmlns:tei="http://www.tei-c.org/ns/1.0"
             xmlns:teix="http://www.tei-c.org/ns/Examples"
             xmlns:xlink="http://www.w3.org/1999/xlink"
             datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
             ns="http://www.tei-c.org/ns/1.0"><!--
    Schema generated from ODD source 2022-10-25T14:59:29Z. .
    TEI Edition: Version 4.5.0. Last updated on
            25th October 2022, revision 3e98e619e
    TEI Edition Location: https://www.tei-c.org/Vault/P5/Version 4.5.0/
      
    --><!--TEI material can be licensed differently depending on the use you intend to make of it. Hence it is made available under both the CC+BY and BSD-2 licences. The CC+BY licence is generally appropriate for usages which treat TEI content as data or documentation. The BSD-2 licence is generally appropriate for usage of TEI content in a software environment. For further information or clarification, please contact the TEI Consortium (info@tei-c.org).-->
       <define name="macro.abContent">
          <zeroOrMore>
             <choice>
                <text/>
                <ref name="model.paraPart"/>
                <ref name="ab"/>
             </choice>
          </zeroOrMore>
       </define>
       <define name="macro.paraContent">
          <zeroOrMore>
             <choice>
                <text/>
                <ref name="model.paraPart"/>
             </choice>
          </zeroOrMore>
       </define>
       <define name="macro.limitedContent">
          <zeroOrMore>
             <choice>
                <text/>
                <ref name="model.limitedPhrase"/>
                <ref name="model.inter"/>
             </choice>
          </zeroOrMore>
       </define>
       <define name="macro.phraseSeq">
          <zeroOrMore>
             <choice>
                <text/>
                <ref name="model.gLike"/>
                <ref name="model.attributable"/>
                <ref name="model.phrase"/>
                <ref name="model.global"/>
             </choice>
          </zeroOrMore>
       </define>
       <define name="macro.phraseSeq.limited">
          <zeroOrMore>
             <choice>
                <text/>
                <ref name="model.limitedPhrase"/>
                <ref name="model.global"/>
             </choice>
          </zeroOrMore>
       </define>
       <define name="macro.specialPara">
          <zeroOrMore>
             <choice>
                <text/>
                <ref name="model.gLike"/>
                <ref name="model.phrase"/>
                <ref name="model.inter"/>
                <ref name="model.divPart"/>
                <ref name="model.global"/>
             </choice>
          </zeroOrMore>
       </define>
       <define name="macro.xtext">
          <zeroOrMore>
             <choice>
                <text/>
                <ref name="model.gLike"/>
             </choice>
          </zeroOrMore>
       </define>
       <define name="anyElement-xenoData">
          <element>
             <anyName>
                <except>
                   <nsName ns="http://www.tei-c.org/ns/1.0"/>
                   <name ns="http://www.tei-c.org/ns/Examples">egXML</name>
                </except>
             </anyName>
             <zeroOrMore>
                <attribute>
                   <anyName/>
                </attribute>
             </zeroOrMore>
             <zeroOrMore>
                <choice>
                   <text/>
                   <ref name="anyElement-xenoData"/>
                </choice>
             </zeroOrMore>
          </element>
       </define>
       <define name="anyElement-egXML">
          <element>
             <anyName>
                <except>
                   <nsName ns="http://www.tei-c.org/ns/1.0"/>
                   <name ns="http://www.tei-c.org/ns/Examples">egXML</name>
                </except>
             </anyName>
             <zeroOrMore>
                <attribute>
                   <anyName/>
                </attribute>
             </zeroOrMore>
             <zeroOrMore>
                <choice>
                   <text/>
                   <ref name="anyElement-egXML"/>
                </choice>
             </zeroOrMore>
          </element>
       </define>
       <define name="anyElement-content">
          <element>
             <anyName>
                <except>
                   <nsName ns="http://www.tei-c.org/ns/1.0"/>
                   <name ns="http://www.tei-c.org/ns/Examples">egXML</name>
                </except>
             </anyName>
             <zeroOrMore>
                <attribute>
                   <anyName/>
                </attribute>
             </zeroOrMore>
             <zeroOrMore>
                <choice>
                   <text/>
                   <ref name="anyElement-content"/>
                </choice>
             </zeroOrMore>
          </element>
          <pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="d9e125828-constraint">
             <rule context="tei:content">
                <report test="descendant::*[not(namespace-uri(.) =               ('http://relaxng.org/ns/compatibility/annotations/1.0', 'http://relaxng.org/ns/structure/1.0', 'http://www.tei-c.org/ns/1.0'))]">content descendants must be in the
                  namespaces
                  'http://relaxng.org/ns/compatibility/annotations/1.0', 'http://relaxng.org/ns/structure/1.0', 'http://www.tei-c.org/ns/1.0'</report>
             </rule>
          </pattern>
       </define>
       <define name="anyElement-constraint">
          <element>
             <anyName>
                <except>
                   <nsName ns="http://www.tei-c.org/ns/1.0"/>
                   <name ns="http://www.tei-c.org/ns/Examples">egXML</name>
                </except>
             </anyName>
             <zeroOrMore>
                <attribute>
                   <anyName/>
                </attribute>
             </zeroOrMore>
             <zeroOrMore>
                <choice>
                   <text/>
                   <ref name="anyElement-constraint"/>
                </choice>
             </zeroOrMore>
          </element>
       </define>
       <define name="anyElement-datatype">
          <element>
             <anyName>
                <except>
                   <nsName ns="http://www.tei-c.org/ns/1.0"/>
                   <name ns="http://www.tei-c.org/ns/Examples">egXML</name>
                </except>
             </anyName>
             <zeroOrMore>
                <attribute>
                   <anyName/>
                </attribute>
             </zeroOrMore>
             <zeroOrMore>
                <choice>
                   <text/>
                   <ref name="anyElement-datatype"/>
                </choice>
             </zeroOrMore>
          </element>
          <pattern xmlns="http://purl.oclc.org/dsdl/schematron" id="d9e127135-constraint">
             <rule context="tei:datatype">
                <report test="descendant::*[not(namespace-uri(.) =               ('http://relaxng.org/ns/structure/1.0', 'http://www.tei-c.org/ns/1.0'))]">datatype descendants must be in the
                  namespaces
                  'http://relaxng.org/ns/structure/1.0', 'http://www.tei-c.org/ns/1.0'</report>
             </rule>
          </pattern>
       </define>
       <define name="att.anchoring.attributes">
          <ref name="att.anchoring.attribute.anchored"/>
          <ref name="att.anchoring.attribute.targetEnd"/>
       </define>
       <define name="att.anchoring.attribute.anchored">
          <optional>
             <attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        name="anchored"
                        a:defaultValue="true">
                <a:documentation>(anchored) indicates whether the copy text shows the exact place of reference for the note.</a:documentation>
                <data type="boolean"/>
             </attribute>
          </optional>
       </define>
       <define name="att.anchoring.attribute.targetEnd">
          <optional>
             <attribute name="targetEnd">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(target end) points to the end of the span to which the note is attached, if the note is not embedded in the text at that point.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.ascribed.attributes">
          <ref name="att.ascribed.attribute.who"/>
       </define>
       <define name="att.ascribed.attribute.who">
          <optional>
             <attribute name="who">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates the person, or group of people, to whom the element content is ascribed.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.ascribed.directed.attributes">
          <ref name="att.ascribed.attributes"/>
          <ref name="att.ascribed.directed.attribute.toWhom"/>
       </define>
       <define name="att.ascribed.directed.attribute.toWhom">
          <optional>
             <attribute name="toWhom">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates the person, or group of people, to whom a speech act or action is directed.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.canonical.attributes">
          <ref name="att.canonical.attribute.key"/>
          <ref name="att.canonical.attribute.ref"/>
       </define>
       <define name="att.canonical.attribute.key">
          <optional>
             <attribute name="key">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">provides an externally-defined means of identifying the entity (or entities) being named, using a coded value of some kind.</a:documentation>
                <data type="string"/>
             </attribute>
          </optional>
       </define>
       <define name="att.canonical.attribute.ref">
          <optional>
             <attribute name="ref">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(reference) provides an explicit means of locating a full definition or identity for the entity being named by means of one or more URIs.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.ranging.attributes">
          <ref name="att.ranging.attribute.atLeast"/>
          <ref name="att.ranging.attribute.atMost"/>
          <ref name="att.ranging.attribute.min"/>
          <ref name="att.ranging.attribute.max"/>
          <ref name="att.ranging.attribute.confidence"/>
       </define>
       <define name="att.ranging.attribute.atLeast">
          <optional>
             <attribute name="atLeast">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">gives a minimum estimated value for the approximate measurement.</a:documentation>
                <choice>
                   <data type="double"/>
                   <data type="token">
                      <param name="pattern">(\-?[\d]+/\-?[\d]+)</param>
                   </data>
                   <data type="decimal"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.ranging.attribute.atMost">
          <optional>
             <attribute name="atMost">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">gives a maximum estimated value for the approximate measurement.</a:documentation>
                <choice>
                   <data type="double"/>
                   <data type="token">
                      <param name="pattern">(\-?[\d]+/\-?[\d]+)</param>
                   </data>
                   <data type="decimal"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.ranging.attribute.min">
          <optional>
             <attribute name="min">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">where the measurement summarizes more than one observation or a range, supplies the minimum value observed.</a:documentation>
                <choice>
                   <data type="double"/>
                   <data type="token">
                      <param name="pattern">(\-?[\d]+/\-?[\d]+)</param>
                   </data>
                   <data type="decimal"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.ranging.attribute.max">
          <optional>
             <attribute name="max">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">where the measurement summarizes more than one observation or a range, supplies the maximum value observed.</a:documentation>
                <choice>
                   <data type="double"/>
                   <data type="token">
                      <param name="pattern">(\-?[\d]+/\-?[\d]+)</param>
                   </data>
                   <data type="decimal"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.ranging.attribute.confidence">
          <optional>
             <attribute name="confidence">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies the degree of statistical confidence (between zero and one) that a value falls within the range specified by <code xmlns="http://www.w3.org/1999/xhtml">@min</code> and <code xmlns="http://www.w3.org/1999/xhtml">@max</code>, or the proportion of observed values that fall within that range.</a:documentation>
                <data type="double"/>
             </attribute>
          </optional>
       </define>
       <define name="att.dimensions.attributes">
          <ref name="att.ranging.attributes"/>
          <ref name="att.dimensions.attribute.unit"/>
          <ref name="att.dimensions.attribute.quantity"/>
          <ref name="att.dimensions.attribute.extent"/>
          <ref name="att.dimensions.attribute.precision"/>
          <ref name="att.dimensions.attribute.scope"/>
       </define>
       <define name="att.dimensions.attribute.unit">
          <optional>
             <attribute name="unit">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">names the unit used for the measurement
    Suggested values include: 1] cm (centimetres); 2] mm (millimetres); 3] in (inches); 4] line; 5] char (characters)</a:documentation>
                <choice>
                   <value>cm</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(centimetres) </a:documentation>
                   <value>mm</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(millimetres) </a:documentation>
                   <value>in</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(inches) </a:documentation>
                   <value>line</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">lines of text</a:documentation>
                   <value>char</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(characters) characters of text</a:documentation>
                   <data type="token">
                      <param name="pattern">[^\p{C}\p{Z}]+</param>
                   </data>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.dimensions.attribute.quantity">
          <optional>
             <attribute name="quantity">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies the length in the units specified</a:documentation>
                <choice>
                   <data type="double"/>
                   <data type="token">
                      <param name="pattern">(\-?[\d]+/\-?[\d]+)</param>
                   </data>
                   <data type="decimal"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.dimensions.attribute.extent">
          <optional>
             <attribute name="extent">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates the size of the object concerned using a project-specific vocabulary combining quantity and units in a single string of words.</a:documentation>
                <data type="string"/>
             </attribute>
          </optional>
       </define>
       <define name="att.dimensions.attribute.precision">
          <optional>
             <attribute name="precision">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">characterizes the precision of the values specified by the other attributes.</a:documentation>
                <choice>
                   <value>high</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                   <value>medium</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                   <value>low</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                   <value>unknown</value>
                   <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.dimensions.attribute.scope">
          <optional>
             <attribute name="scope">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">where the measurement summarizes more than one observation, specifies the applicability of this measurement.
    Sample values include: 1] all; 2] most; 3] range</a:documentation>
                <data type="token">
                   <param name="pattern">[^\p{C}\p{Z}]+</param>
                </data>
             </attribute>
          </optional>
       </define>
       <define name="att.written.attributes">
          <ref name="att.written.attribute.hand"/>
       </define>
       <define name="att.written.attribute.hand">
          <optional>
             <attribute name="hand">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">points to a <code xmlns="http://www.w3.org/1999/xhtml">&lt;handNote&gt;</code> element describing the hand considered responsible for the content of the element concerned.</a:documentation>
                <data type="anyURI">
                   <param name="pattern">\S+</param>
                </data>
             </attribute>
          </optional>
       </define>
       <define name="att.damaged.attributes">
          <ref name="att.dimensions.attributes"/>
          <ref name="att.written.attributes"/>
          <ref name="att.damaged.attribute.agent"/>
          <ref name="att.damaged.attribute.degree"/>
          <ref name="att.damaged.attribute.group"/>
       </define>
       <define name="att.damaged.attribute.agent">
          <optional>
             <attribute name="agent">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">categorizes the cause of the damage, if it can be identified.
    Sample values include: 1] rubbing; 2] mildew; 3] smoke</a:documentation>
                <data type="token">
                   <param name="pattern">[^\p{C}\p{Z}]+</param>
                </data>
             </attribute>
          </optional>
       </define>
       <define name="att.damaged.attribute.degree">
          <optional>
             <attribute name="degree">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">provides a coded representation of the degree of damage, either as a number between 0 (undamaged) and 1 (very extensively damaged), or as one of the codes high, medium, low, or unknown. The <code xmlns="http://www.w3.org/1999/xhtml">&lt;damage&gt;</code> element with the <code xmlns="http://www.w3.org/1999/xhtml">@degree</code> attribute should only be used where the text may be read with some confidence; text supplied from other sources should be tagged as <code xmlns="http://www.w3.org/1999/xhtml">&lt;supplied&gt;</code>.</a:documentation>
                <choice>
                   <data type="double"/>
                   <choice>
                      <value>high</value>
                      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                      <value>medium</value>
                      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                      <value>low</value>
                      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                      <value>unknown</value>
                      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                   </choice>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.damaged.attribute.group">
          <optional>
             <attribute name="group">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">assigns an arbitrary number to each stretch of damage regarded as forming part of the same physical phenomenon.</a:documentation>
                <data type="nonNegativeInteger"/>
             </attribute>
          </optional>
       </define>
       <define name="att.breaking.attributes">
          <ref name="att.breaking.attribute.break"/>
       </define>
       <define name="att.breaking.attribute.break">
          <optional>
             <attribute name="break">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">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.</a:documentation>
                <data type="token">
                   <param name="pattern">[^\p{C}\p{Z}]+</param>
                </data>
             </attribute>
          </optional>
       </define>
       <define name="att.cReferencing.attributes">
          <ref name="att.cReferencing.attribute.cRef"/>
       </define>
       <define name="att.cReferencing.attribute.cRef">
          <optional>
             <attribute name="cRef">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(canonical reference) specifies the destination of the pointer by supplying a canonical reference expressed using the scheme defined in a <code xmlns="http://www.w3.org/1999/xhtml">&lt;refsDecl&gt;</code> element in the TEI header</a:documentation>
                <data type="string"/>
             </attribute>
          </optional>
       </define>
       <define name="att.datable.w3c.attributes">
          <ref name="att.datable.w3c.attribute.when"/>
          <ref name="att.datable.w3c.attribute.notBefore"/>
          <ref name="att.datable.w3c.attribute.notAfter"/>
          <ref name="att.datable.w3c.attribute.from"/>
          <ref name="att.datable.w3c.attribute.to"/>
       </define>
       <define name="att.datable.w3c.attribute.when">
          <optional>
             <attribute name="when">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">supplies the value of the date or time in a standard form, e.g. yyyy-mm-dd.</a:documentation>
                <choice>
                   <data type="date"/>
                   <data type="gYear"/>
                   <data type="gMonth"/>
                   <data type="gDay"/>
                   <data type="gYearMonth"/>
                   <data type="gMonthDay"/>
                   <data type="time"/>
                   <data type="dateTime"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.datable.w3c.attribute.notBefore">
          <optional>
             <attribute name="notBefore">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies the earliest possible date for the event in standard form, e.g. yyyy-mm-dd.</a:documentation>
                <choice>
                   <data type="date"/>
                   <data type="gYear"/>
                   <data type="gMonth"/>
                   <data type="gDay"/>
                   <data type="gYearMonth"/>
                   <data type="gMonthDay"/>
                   <data type="time"/>
                   <data type="dateTime"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.datable.w3c.attribute.notAfter">
          <optional>
             <attribute name="notAfter">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies the latest possible date for the event in standard form, e.g. yyyy-mm-dd.</a:documentation>
                <choice>
                   <data type="date"/>
                   <data type="gYear"/>
                   <data type="gMonth"/>
                   <data type="gDay"/>
                   <data type="gYearMonth"/>
                   <data type="gMonthDay"/>
                   <data type="time"/>
                   <data type="dateTime"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.datable.w3c.attribute.from">
          <optional>
             <attribute name="from">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates the starting point of the period in standard form, e.g. yyyy-mm-dd.</a:documentation>
                <choice>
                   <data type="date"/>
                   <data type="gYear"/>
                   <data type="gMonth"/>
                   <data type="gDay"/>
                   <data type="gYearMonth"/>
                   <data type="gMonthDay"/>
                   <data type="time"/>
                   <data type="dateTime"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.datable.w3c.attribute.to">
          <optional>
             <attribute name="to">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates the ending point of the period in standard form, e.g. yyyy-mm-dd.</a:documentation>
                <choice>
                   <data type="date"/>
                   <data type="gYear"/>
                   <data type="gMonth"/>
                   <data type="gDay"/>
                   <data type="gYearMonth"/>
                   <data type="gMonthDay"/>
                   <data type="time"/>
                   <data type="dateTime"/>
                </choice>
             </attribute>
          </optional>
       </define>
       <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
                id="tei_all-att.datable.w3c-att-datable-w3c-when-constraint-rule-1">
          <sch:rule xmlns="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"
                    xmlns:xi="http://www.w3.org/2001/XInclude"
                    context="tei:*[@when]">
             <sch:report test="@notBefore|@notAfter|@from|@to" role="nonfatal">The @when attribute cannot be used with any other att.datable.w3c attributes.</sch:report>
          </sch:rule>
       </pattern>
       <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
                id="tei_all-att.datable.w3c-att-datable-w3c-from-constraint-rule-2">
          <sch:rule xmlns="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"
                    xmlns:xi="http://www.w3.org/2001/XInclude"
                    context="tei:*[@from]">
             <sch:report test="@notBefore" role="nonfatal">The @from and @notBefore attributes cannot be used together.</sch:report>
          </sch:rule>
       </pattern>
       <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
                id="tei_all-att.datable.w3c-att-datable-w3c-to-constraint-rule-3">
          <sch:rule xmlns="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"
                    xmlns:xi="http://www.w3.org/2001/XInclude"
                    context="tei:*[@to]">
             <sch:report test="@notAfter" role="nonfatal">The @to and @notAfter attributes cannot be used together.</sch:report>
          </sch:rule>
       </pattern>
       <define name="att.datable.attributes">
          <ref name="att.datable.w3c.attributes"/>
          <ref name="att.datable.iso.attributes"/>
          <ref name="att.datable.custom.attributes"/>
          <ref name="att.datable.attribute.calendar"/>
          <ref name="att.datable.attribute.period"/>
       </define>
       <define name="att.datable.attribute.calendar">
          <optional>
             <attribute name="calendar">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">indicates one or more systems or calendars to which the date represented by the content of this element belongs.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <pattern xmlns="http://purl.oclc.org/dsdl/schematron"
                id="tei_all-att.datable-calendar-calendar-constraint-rule-4">
          <sch:rule xmlns="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"
                    xmlns:xi="http://www.w3.org/2001/XInclude"
                    context="tei:*[@calendar]">
             <sch:assert test="string-length( normalize-space(.) ) gt 0"> @calendar indicates one or more
                systems or calendars to which the date represented by the content of this element belongs,
                but this <sch:name/> element has no textual content.</sch:assert>
          </sch:rule>
       </pattern>
       <define name="att.datable.attribute.period">
          <optional>
             <attribute name="period">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">supplies pointers to one or more definitions of named periods of time (typically <code xmlns="http://www.w3.org/1999/xhtml">&lt;category&gt;</code>s or <code xmlns="http://www.w3.org/1999/xhtml">&lt;calendar&gt;</code>s) within which the datable item is understood to have occurred.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.datcat.attributes">
          <ref name="att.datcat.attribute.datcat"/>
          <ref name="att.datcat.attribute.valueDatcat"/>
          <ref name="att.datcat.attribute.targetDatcat"/>
       </define>
       <define name="att.datcat.attribute.datcat">
          <optional>
             <attribute name="datcat">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">provides a pointer to a definition of, and/or general information about, (a) an information container (element or attribute) or (b) a value of an information container (element content or attribute value), by referencing an external taxonomy or ontology. If <code xmlns="http://www.w3.org/1999/xhtml">@valueDatcat</code> is present in the immediate context, this attribute takes on role (a), while <code xmlns="http://www.w3.org/1999/xhtml">@valueDatcat</code> performs role (b).</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.datcat.attribute.valueDatcat">
          <optional>
             <attribute name="valueDatcat">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">provides a definition of, and/or general information about a value of an information container (element content or attribute value), by reference to an external taxonomy or ontology. Used especially where a contrast with <code xmlns="http://www.w3.org/1999/xhtml">@datcat</code> is needed.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.datcat.attribute.targetDatcat">
          <optional>
             <attribute name="targetDatcat">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">provides a definition of, and/or general information about, information structure of an object referenced or modeled by the containing element, by reference to an external taxonomy or ontology. This attribute has the characteristics of the <code xmlns="http://www.w3.org/1999/xhtml">@datcat</code> attribute, except that it addresses not its containing element, but an object that is being referenced or modeled by its containing element.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.declarable.attributes">
          <ref name="att.declarable.attribute.default"/>
       </define>
       <define name="att.declarable.attribute.default">
          <optional>
             <attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        name="default"
                        a:defaultValue="false">
                <a:documentation>indicates whether or not this element is selected by default when its parent is selected.</a:documentation>
                <choice>
                   <value>true</value>
                   <a:documentation>This element is selected if its parent is selected</a:documentation>
                   <value>false</value>
                   <a:documentation>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.</a:documentation>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.declaring.attributes">
          <ref name="att.declaring.attribute.decls"/>
       </define>
       <define name="att.declaring.attribute.decls">
          <optional>
             <attribute name="decls">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(declarations) identifies one or more declarable elements within the header, which are understood to apply to the element bearing this attribute and its content.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.fragmentable.attributes">
          <ref name="att.fragmentable.attribute.part"/>
       </define>
       <define name="att.fragmentable.attribute.part">
          <optional>
             <attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        name="part"
                        a:defaultValue="N">
                <a:documentation>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:documentation>
                <choice>
                   <value>Y</value>
                   <a:documentation>(yes) the element is fragmented in some (unspecified) respect</a:documentation>
                   <value>N</value>
                   <a:documentation>(no) the element is not fragmented, or no claim is made as to its completeness</a:documentation>
                   <value>I</value>
                   <a:documentation>(initial) this is the initial part of a fragmented element</a:documentation>
                   <value>M</value>
                   <a:documentation>(medial) this is a medial part of a fragmented element</a:documentation>
                   <value>F</value>
                   <a:documentation>(final) this is the final part of a fragmented element</a:documentation>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.divLike.attributes">
          <ref name="att.metrical.attributes"/>
          <ref name="att.fragmentable.attributes"/>
          <ref name="att.divLike.attribute.org"/>
          <ref name="att.divLike.attribute.sample"/>
       </define>
       <define name="att.divLike.attribute.org">
          <optional>
             <attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        name="org"
                        a:defaultValue="uniform">
                <a:documentation>(organization) specifies how the content of the division is organized.</a:documentation>
                <choice>
                   <value>composite</value>
                   <a:documentation>no claim is made about the sequence in which the immediate contents of this division are to be processed, or their inter-relationships.</a:documentation>
                   <value>uniform</value>
                   <a:documentation>the immediate contents of this element are regarded as forming a logical unit, to be processed in sequence.</a:documentation>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.divLike.attribute.sample">
          <optional>
             <attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        name="sample"
                        a:defaultValue="complete">
                <a:documentation>indicates whether this division is a sample of the original source and if so, from which part.</a:documentation>
                <choice>
                   <value>initial</value>
                   <a:documentation>division lacks material present at end in source.</a:documentation>
                   <value>medial</value>
                   <a:documentation>division lacks material at start and end.</a:documentation>
                   <value>final</value>
                   <a:documentation>division lacks material at start.</a:documentation>
                   <value>unknown</value>
                   <a:documentation>position of sampled material within original unknown.</a:documentation>
                   <value>complete</value>
                   <a:documentation>division is not a sample.</a:documentation>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.docStatus.attributes">
          <ref name="att.docStatus.attribute.status"/>
       </define>
       <define name="att.docStatus.attribute.status">
          <optional>
             <attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        name="status"
                        a:defaultValue="draft">
                <a:documentation>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:documentation>
                <data type="token">
                   <param name="pattern">[^\p{C}\p{Z}]+</param>
                </data>
             </attribute>
          </optional>
       </define>
       <define name="att.duration.w3c.attributes">
          <ref name="att.duration.w3c.attribute.dur"/>
       </define>
       <define name="att.duration.w3c.attribute.dur">
          <optional>
             <attribute name="dur">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(duration) indicates the length of this element in time.</a:documentation>
                <data type="duration"/>
             </attribute>
          </optional>
       </define>
       <define name="att.global.responsibility.attributes">
          <ref name="att.global.responsibility.attribute.cert"/>
          <ref name="att.global.responsibility.attribute.resp"/>
       </define>
       <define name="att.global.responsibility.attribute.cert">
          <optional>
             <attribute name="cert">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(certainty) signifies the degree of certainty associated with the intervention or interpretation.</a:documentation>
                <choice>
                   <data type="double"/>
                   <choice>
                      <value>high</value>
                      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                      <value>medium</value>
                      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                      <value>low</value>
                      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                      <value>unknown</value>
                      <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
                   </choice>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.global.responsibility.attribute.resp">
          <optional>
             <attribute name="resp">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(responsible party) indicates the agency responsible for the intervention or interpretation, for example an editor or transcriber.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.editLike.attributes">
          <ref name="att.editLike.attribute.evidence"/>
          <ref name="att.editLike.attribute.instant"/>
       </define>
       <define name="att.editLike.attribute.evidence">
          <optional>
             <attribute name="evidence">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">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</a:documentation>
                <list>
                   <oneOrMore>
                      <choice>
                         <value>internal</value>
                         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">there is internal evidence to support the intervention.</a:documentation>
                         <value>external</value>
                         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">there is external evidence to support the intervention.</a:documentation>
                         <value>conjecture</value>
                         <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">the intervention or interpretation has been made by the editor, cataloguer, or scholar on the basis of their expertise.</a:documentation>
                         <data type="token">
                            <param name="pattern">[^\p{C}\p{Z}]+</param>
                         </data>
                      </choice>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.editLike.attribute.instant">
          <optional>
             <attribute xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        name="instant"
                        a:defaultValue="false">
                <a:documentation>indicates whether this is an instant revision or not.</a:documentation>
                <choice>
                   <data type="boolean"/>
                   <choice>
                      <value>unknown</value>
                      <a:documentation/>
                      <value>inapplicable</value>
                      <a:documentation/>
                   </choice>
                </choice>
             </attribute>
          </optional>
       </define>
       <define name="att.global.rendition.attributes">
          <ref name="att.global.rendition.attribute.rend"/>
          <ref name="att.global.rendition.attribute.style"/>
          <ref name="att.global.rendition.attribute.rendition"/>
       </define>
       <define name="att.global.rendition.attribute.rend">
          <optional>
             <attribute name="rend">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(rendition) indicates how the element in question was rendered or presented in the source text.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="token">
                         <param name="pattern">[^\p{C}\p{Z}]+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.global.rendition.attribute.style">
          <optional>
             <attribute name="style">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">contains an expression in some formal style definition language which defines the rendering or presentation used for this element in the source text</a:documentation>
                <data type="string"/>
             </attribute>
          </optional>
       </define>
       <define name="att.global.rendition.attribute.rendition">
          <optional>
             <attribute name="rendition">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">points to a description of the rendering or presentation used for this element in the source text.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">
                         <param name="pattern">\S+</param>
                      </data>
                   </oneOrMore>
                </list>
             </attribute>
          </optional>
       </define>
       <define name="att.global.source.attributes">
          <ref name="att.global.source.attribute.source"/>
       </define>
       <define name="att.global.source.attribute.source">
          <optional>
             <attribute name="source">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">specifies the source from which some aspect of this element is drawn.</a:documentation>
                <list>
                   <oneOrMore>
                      <data type="anyURI">