summaryrefslogtreecommitdiff
path: root/schema/mathml2/content/arith.xsd
blob: fdb508f7e4c3c8992236559eef135982e4cf9a40 (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
<?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 an XML Schema module for the "arithmetic" operators of content
  MathML.
  Author: St&#233;phane Dalmas, INRIA.
  </xs:documentation>
</xs:annotation>

<!-- a common type for all this -->

<xs:complexType name="Arith.type">
  <xs:attributeGroup ref="Definition.attrib"/>
  <xs:attributeGroup ref="Common.attrib"/>
</xs:complexType>

<!-- The elements -->

<xs:element name="abs" type="Arith.type"/>
<xs:element name="conjugate" type="Arith.type"/>
<xs:element name="arg" type="Arith.type"/>
<xs:element name="real" type="Arith.type"/>
<xs:element name="imaginary" type="Arith.type"/>

<xs:element name="floor" type="Arith.type"/>
<xs:element name="ceiling" type="Arith.type"/>

<xs:element name="power" type="Arith.type"/>
<xs:element name="root" type="Arith.type"/>

<xs:element name="minus" type="Arith.type"/>
<xs:element name="plus" type="Arith.type"/>
<xs:element name="sum" type="Arith.type"/>
<xs:element name="times" type="Arith.type"/>
<xs:element name="product" type="Arith.type"/>

<xs:element name="max" type="Arith.type"/>
<xs:element name="min" type="Arith.type"/>

<xs:element name="factorial" type="Arith.type"/>
<xs:element name="quotient" type="Arith.type"/>
<xs:element name="divide" type="Arith.type"/>
<xs:element name="rem" type="Arith.type"/>
<xs:element name="gcd" type="Arith.type"/>
<xs:element name="lcm" type="Arith.type"/>

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

<xs:group name="Content-arith.class">
  <xs:choice>
    <xs:element ref="abs"/>
    <xs:element ref="conjugate"/>
    <xs:element ref="factorial"/>
    <xs:element ref="arg"/>
    <xs:element ref="real"/>
    <xs:element ref="imaginary"/>
    <xs:element ref="floor"/>
    <xs:element ref="ceiling"/>
    <xs:element ref="quotient"/>
    <xs:element ref="divide"/>
    <xs:element ref="rem"/>
    <xs:element ref="minus"/>
    <xs:element ref="plus"/>
    <xs:element ref="times"/>
    <xs:element ref="power"/>
    <xs:element ref="root"/>
    <xs:element ref="max"/>
    <xs:element ref="min"/>
    <xs:element ref="gcd"/>
    <xs:element ref="lcm"/>
    <xs:element ref="sum"/>
    <xs:element ref="product"/>
  </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/.
  -->