guilhermelmello commited on
Commit
089e331
1 Parent(s): 34c17a8

Add RelaxNG Schema v1.2.

Browse files
Files changed (1) hide show
  1. corpus/schema.rng +47 -14
corpus/schema.rng CHANGED
@@ -5,7 +5,7 @@
5
  xmlns="http://relaxng.org/ns/structure/1.0"
6
  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
7
  ns="http://www.tei-c.org/ns/1.0"><!--
8
- Schema generated from ODD source 2022-03-31T10:41:05Z. .
9
  TEI Edition: Version 4.1.0. Last updated on
10
  19th August 2020, revision b414ba550
11
  TEI Edition Location: https://www.tei-c.org/Vault/P5/Version 4.1.0/
@@ -729,16 +729,31 @@ Measures]</a:documentation>
729
  </define>
730
  <define name="date">
731
  <element name="date">
732
- <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Date of document [3.5.4. Dates and Times 2.2.4. Publication, Distribution, Licensing, etc. 2.6. The Revision Description 3.11.2.4. Imprint, Size of a Document, and Reprint Information 15.2.3. The Setting Description 13.3.7. Dates and Times]</a:documentation>
733
  <choice>
734
  <data type="string">
735
- <param name="pattern">(19[0-9][0-9]|[2-9][0-9]{3}){1}((\-([0-1][0-9])\-([0-3][0-9]))?|((\-([0-1][0-9])\-([0-3][0-9]))((\s\-\s)(19[0-9][0-9]|[2-9][0-9]{3})\-([0-1][0-9])\-([0-3][0-9]))?))</param>
736
  </data>
737
  <empty/>
738
  </choice>
739
  <ref name="att.global.attributes"/>
740
  <ref name="att.canonical.attributes"/>
741
- <ref name="att.datable.attributes"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  </element>
743
  </define>
744
  <define name="media">
@@ -993,17 +1008,27 @@ Measures]</a:documentation>
993
  <element name="publicationStmt">
994
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(publication statement) groups information concerning the publication or distribution of an electronic or other text. [2.2.4. Publication, Distribution, Licensing, etc. 2.2. The File Description]</a:documentation>
995
  <choice>
996
- <ref name="authority"/>
 
 
997
  <group>
998
  <ref name="publisher"/>
999
- <ref name="authority"/>
1000
- <ref name="date"/>
 
 
 
 
1001
  <ref name="availability"/>
1002
  <ref name="address"/>
1003
  </group>
1004
  <group>
1005
- <ref name="authority"/>
1006
- <ref name="date"/>
 
 
 
 
1007
  <ref name="availability"/>
1008
  </group>
1009
  </choice>
@@ -1023,7 +1048,7 @@ Measures]</a:documentation>
1023
  <define name="availability">
1024
  <element name="availability">
1025
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Access conditions for the source document (public, under authorization, etc ...) [2.2.4. Publication, Distribution, Licensing, etc.]</a:documentation>
1026
- <ref name="licence"/>
1027
  <ref name="att.global.attributes"/>
1028
  <attribute name="status">
1029
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Access conditions for the source document (public, under authorization, etc ...)</a:documentation>
@@ -1037,14 +1062,14 @@ Measures]</a:documentation>
1037
  <empty/>
1038
  </element>
1039
  </define>
1040
- <define name="licence">
1041
- <element name="licence">
1042
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">License type of the source document (Public domain, Creative Commons, etc.) [2.2.4. Publication, Distribution, Licensing, etc.]</a:documentation>
1043
  <text/>
1044
  <ref name="att.global.attributes"/>
1045
  <ref name="att.datable.attributes"/>
1046
  <attribute name="target">
1047
- <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">URL from licence</a:documentation>
1048
  <list>
1049
  <oneOrMore>
1050
  <data type="anyURI"/>
@@ -1266,7 +1291,9 @@ Measures]</a:documentation>
1266
  <define name="body">
1267
  <element name="body">
1268
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(text body) contains the whole body of a single unitary text, excluding any front or back matter. [4. Default Text Structure]</a:documentation>
1269
- <ref name="p"/>
 
 
1270
  <ref name="att.global.attributes"/>
1271
  <empty/>
1272
  </element>
@@ -1362,6 +1389,12 @@ Measures]</a:documentation>
1362
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">describes the extent to which a text may be regarded as prepared or spontaneous. [15.2.1. The Text Description]</a:documentation>
1363
  <empty/>
1364
  <ref name="att.global.attributes"/>
 
 
 
 
 
 
1365
  <empty/>
1366
  </element>
1367
  </define>
 
5
  xmlns="http://relaxng.org/ns/structure/1.0"
6
  datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
7
  ns="http://www.tei-c.org/ns/1.0"><!--
8
+ Schema generated from ODD source 2022-06-23T18:28:43Z. .
9
  TEI Edition: Version 4.1.0. Last updated on
10
  19th August 2020, revision b414ba550
11
  TEI Edition Location: https://www.tei-c.org/Vault/P5/Version 4.1.0/
 
729
  </define>
730
  <define name="date">
731
  <element name="date">
732
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Document extraction or download date [3.5.4. Dates and Times 2.2.4. Publication, Distribution, Licensing, etc. 2.6. The Revision Description 3.11.2.4. Imprint, Size of a Document, and Reprint Information 15.2.3. The Setting Description 13.3.7. Dates and Times]</a:documentation>
733
  <choice>
734
  <data type="string">
735
+ <param name="pattern">(19|2\d)\d\d(-(0[1-9]|1[012])(-(0[1-9]|[12][0-9]|3[01]))?)?(\s-\s(19|2\d)\d\d(-(0[1-9]|1[012])(-(0[1-9]|[12][0-9]|3[01]))?)?)?</param>
736
  </data>
737
  <empty/>
738
  </choice>
739
  <ref name="att.global.attributes"/>
740
  <ref name="att.canonical.attributes"/>
741
+ <ref name="att.datable.attributes"/>
742
+ <optional>
743
+ <attribute name="type">
744
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">"download" type is the end of the download</a:documentation>
745
+ <choice>
746
+ <value>extraction</value>
747
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
748
+ <value>download</value>
749
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
750
+ <value>Extraction</value>
751
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
752
+ <value>Download</value>
753
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
754
+ </choice>
755
+ </attribute>
756
+ </optional>
757
  </element>
758
  </define>
759
  <define name="media">
 
1008
  <element name="publicationStmt">
1009
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(publication statement) groups information concerning the publication or distribution of an electronic or other text. [2.2.4. Publication, Distribution, Licensing, etc. 2.2. The File Description]</a:documentation>
1010
  <choice>
1011
+ <oneOrMore>
1012
+ <ref name="authority"/>
1013
+ </oneOrMore>
1014
  <group>
1015
  <ref name="publisher"/>
1016
+ <oneOrMore>
1017
+ <ref name="authority"/>
1018
+ </oneOrMore>
1019
+ <oneOrMore>
1020
+ <ref name="date"/>
1021
+ </oneOrMore>
1022
  <ref name="availability"/>
1023
  <ref name="address"/>
1024
  </group>
1025
  <group>
1026
+ <oneOrMore>
1027
+ <ref name="authority"/>
1028
+ </oneOrMore>
1029
+ <oneOrMore>
1030
+ <ref name="date"/>
1031
+ </oneOrMore>
1032
  <ref name="availability"/>
1033
  </group>
1034
  </choice>
 
1048
  <define name="availability">
1049
  <element name="availability">
1050
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Access conditions for the source document (public, under authorization, etc ...) [2.2.4. Publication, Distribution, Licensing, etc.]</a:documentation>
1051
+ <ref name="license"/>
1052
  <ref name="att.global.attributes"/>
1053
  <attribute name="status">
1054
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Access conditions for the source document (public, under authorization, etc ...)</a:documentation>
 
1062
  <empty/>
1063
  </element>
1064
  </define>
1065
+ <define name="license">
1066
+ <element name="license">
1067
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">License type of the source document (Public domain, Creative Commons, etc.) [2.2.4. Publication, Distribution, Licensing, etc.]</a:documentation>
1068
  <text/>
1069
  <ref name="att.global.attributes"/>
1070
  <ref name="att.datable.attributes"/>
1071
  <attribute name="target">
1072
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">URL from license</a:documentation>
1073
  <list>
1074
  <oneOrMore>
1075
  <data type="anyURI"/>
 
1291
  <define name="body">
1292
  <element name="body">
1293
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(text body) contains the whole body of a single unitary text, excluding any front or back matter. [4. Default Text Structure]</a:documentation>
1294
+ <oneOrMore>
1295
+ <ref name="p"/>
1296
+ </oneOrMore>
1297
  <ref name="att.global.attributes"/>
1298
  <empty/>
1299
  </element>
 
1389
  <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">describes the extent to which a text may be regarded as prepared or spontaneous. [15.2.1. The Text Description]</a:documentation>
1390
  <empty/>
1391
  <ref name="att.global.attributes"/>
1392
+ <attribute name="type">
1393
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">unknown - unknown level of preparedness; spontaneous - spontaneous publication: content that does not reflect a revision structure; mixed - includes spontaneous and monitored publications; monitored - monitored publication: content that reflects a revision structure or a certain level of formality. </a:documentation>
1394
+ <data type="token">
1395
+ <param name="pattern">[^\p{C}\p{Z}]+</param>
1396
+ </data>
1397
+ </attribute>
1398
  <empty/>
1399
  </element>
1400
  </define>