summaryrefslogtreecommitdiff
path: root/schema/mathml2/content/tokens.xsd
blob: 7e7f9b81d4dc3db109b7ba015acec20e97f383a0 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>

<xs:schema 
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns="http://www.w3.org/1998/Math/MathML"
  targetNamespace="http://www.w3.org/1998/Math/MathML"
  elementFormDefault="qualified"
 >

<xs:annotation>
  <xs:documentation>
  This is the XML schema module for the token elements of the 
  content part of MathML.
  Author: St&#233;phane Dalmas, INRIA.
  </xs:documentation>
</xs:annotation>

<!-- common content for the token elements -->

<xs:group name="Content-token.content">
  <xs:sequence>
    <xs:group ref="Presentation-expr.class"/>
  </xs:sequence>
</xs:group>

<!-- "cn" -->

<xs:attributeGroup name="cn.attlist">
  <xs:attribute name="base">
    <xs:simpleType>
      <xs:restriction base="xs:positiveInteger">
         <xs:minInclusive value="2"/>
         <xs:maxInclusive value="36"/>
      </xs:restriction>
    </xs:simpleType>
  </xs:attribute>  
  <xs:attribute name="type">
    <xs:simpleType>
      <xs:restriction base="xs:NMTOKEN">
        <xs:enumeration value="e-notation"/>
        <xs:enumeration value="integer"/>
        <xs:enumeration value="rational"/>
        <xs:enumeration value="real"/>
        <xs:enumeration value="complex-cartesian"/>
        <xs:enumeration value="complex-polar"/>
        <xs:enumeration value="constant"/>
      </xs:restriction>
     </xs:simpleType>
  </xs:attribute>
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<!-- the content of "cn" may have <sep> elements in it -->

<xs:complexType name="sep.type">
</xs:complexType>

<xs:element name="sep" type="sep.type"/>

<xs:group name="cn.content">
  <xs:choice>
    <xs:group ref="Presentation-expr.class"/>
    <xs:element ref="sep"/>
  </xs:choice>
</xs:group>

<xs:complexType name="cn.type" mixed="true">
  <xs:group ref="cn.content" minOccurs="0" maxOccurs="unbounded"/>
  <xs:attributeGroup ref="cn.attlist"/>
</xs:complexType>

<xs:element name="cn" type="cn.type"/>

<!-- "ci" -->

<xs:attributeGroup name="ci.attlist">
  <xs:attribute name="type" type="xs:string"/>
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="ci.type" mixed="true">
  <xs:group ref="Content-token.content" minOccurs="0"/>
  <xs:attributeGroup ref="ci.attlist"/>
</xs:complexType>

<xs:element name="ci" type="ci.type"/>

<!-- "csymbol" -->

<xs:attributeGroup name="csymbol.attlist">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:attributeGroup>

<xs:complexType name="csymbol.type" mixed="true">
  <xs:group ref="Content-token.content" minOccurs="0"/>
  <xs:attributeGroup ref="csymbol.attlist"/>
</xs:complexType>

<xs:element name="csymbol" type="csymbol.type"/>

<!-- And the group of everything -->

<xs:group name="Content-tokens.class">
  <xs:choice>
    <xs:element ref="cn"/>
    <xs:element ref="ci"/>
    <xs:element ref="csymbol"/>
  </xs:choice>
</xs:group>

</xs:schema>
<!--
  Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
  of Technology, Institut National de Recherche en Informatique et en
  Automatique, Keio University). All Rights Reserved. See
  http://www.w3.org/Consortium/Legal/.
  -->