forked from OpenMath/OMSTD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
omcd2.xsd
107 lines (105 loc) · 4.21 KB
/
omcd2.xsd
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
*********************************************
Relax NG Schema for OpenMath CD
*********************************************
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.openmath.org/OpenMathCD" xmlns:openmathcd="http://www.openmath.org/OpenMathCD" xmlns:openmath="http://www.openmath.org/OpenMath">
<xs:import namespace="http://www.openmath.org/OpenMath" schemaLocation="openmath2.xsd"/>
<xs:element name="CDComment" type="xs:string"/>
<xs:element name="CDName" type="xs:NCName"/>
<xs:element name="CDUses">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="openmathcd:CDName"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CDURL" type="xs:anyURI"/>
<xs:element name="CDBase" type="xs:anyURI"/>
<xs:complexType name="text-or-om" mixed="true">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="openmath:OMOBJ"/>
</xs:sequence>
</xs:complexType>
<xs:element name="CDReviewDate" type="xs:date"/>
<xs:element name="CDDate" type="xs:date"/>
<xs:element name="CDVersion" type="xs:nonNegativeInteger"/>
<xs:element name="CDRevision" type="xs:nonNegativeInteger"/>
<xs:element name="CDStatus">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="official"/>
<xs:enumeration value="experimental"/>
<xs:enumeration value="private"/>
<xs:enumeration value="obsolete"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Description" type="xs:string"/>
<xs:element name="Name" type="xs:NCName"/>
<xs:element name="Role">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="binder"/>
<xs:enumeration value="attribution"/>
<xs:enumeration value="semantic-attribution"/>
<xs:enumeration value="error"/>
<xs:enumeration value="application"/>
<xs:enumeration value="constant"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CMP" type="xs:string"/>
<xs:element name="FMP">
<xs:complexType>
<xs:sequence>
<xs:element ref="openmath:OMOBJ"/>
</xs:sequence>
<xs:attribute name="kind" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- allow embedded OM -->
<xs:element name="Example" type="openmathcd:text-or-om"/>
<xs:element name="CDDefinition">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="openmathcd:CDComment"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="openmathcd:Name"/>
<xs:element ref="openmathcd:Role"/>
<xs:element ref="openmathcd:Description"/>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="openmathcd:CDComment"/>
<xs:element ref="openmathcd:Example"/>
<xs:element ref="openmathcd:FMP"/>
<xs:element ref="openmathcd:CMP"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="CD">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="openmathcd:CDComment"/>
<xs:element ref="openmathcd:Description"/>
<xs:element ref="openmathcd:CDName"/>
<xs:element ref="openmathcd:CDURL"/>
<xs:element ref="openmathcd:CDBase"/>
<xs:element ref="openmathcd:CDReviewDate"/>
<xs:element ref="openmathcd:CDDate"/>
<xs:element ref="openmathcd:CDStatus"/>
<xs:element ref="openmathcd:CDUses"/>
<xs:element ref="openmathcd:CDVersion"/>
<xs:element ref="openmathcd:CDRevision"/>
</xs:choice>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="openmathcd:CDDefinition"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="openmathcd:CDComment"/>
</xs:sequence>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>