1 <?xml version=
"1.0" encoding=
"UTF-8"?>
4 xmlns:
xs=
"http://www.w3.org/2001/XMLSchema"
5 xmlns=
"http://www.w3.org/1998/Math/MathML"
6 targetNamespace=
"http://www.w3.org/1998/Math/MathML"
7 elementFormDefault=
"qualified"
11 This is the XML schema module for the layout elements of the
12 presentation part of MathML.
13 Author: St
éphane Dalmas, INRIA.
19 <xs:attributeGroup name=
"mrow.attlist">
20 <xs:attributeGroup ref=
"Common.attrib"/>
23 <xs:complexType name=
"mrow.type">
24 <xs:group ref=
"Presentation-expr.class" minOccurs=
"0" maxOccurs=
"unbounded"/>
25 <xs:attributeGroup ref=
"mrow.attlist"/>
28 <xs:element name=
"mrow" type=
"mrow.type"/>
32 <xs:attributeGroup name=
"mfrac.attlist">
33 <xs:attribute name=
"bevelled" type=
"xs:boolean"/>
34 <xs:attribute name=
"denomalign" type=
"centering" default=
"center"/>
35 <xs:attribute name=
"numalign" type=
"centering" default=
"center"/>
36 <xs:attribute name=
"linethickness" default=
"1">
38 <xs:union memberTypes=
"length-with-optional-unit thickness"/>
41 <xs:attributeGroup ref=
"Common.attrib"/>
44 <xs:complexType name=
"mfrac.type">
45 <xs:group ref=
"Presentation-expr.class" minOccurs=
"2" maxOccurs=
"2"/>
46 <xs:attributeGroup ref=
"mfrac.attlist"/>
49 <xs:element name=
"mfrac" type=
"mfrac.type"/>
53 <xs:attributeGroup name=
"msqrt.attlist">
54 <xs:attributeGroup ref=
"Common.attrib"/>
57 <!-- "msqrt" has an "inferred mrow" if more than one argument -->
58 <xs:complexType name=
"msqrt.type">
59 <xs:group ref=
"Presentation-expr.class" minOccurs=
"0" maxOccurs=
"unbounded"/>
60 <xs:attributeGroup ref=
"msqrt.attlist"/>
63 <xs:element name=
"msqrt" type=
"msqrt.type"/>
67 <xs:attributeGroup name=
"mroot.attlist">
68 <xs:attributeGroup ref=
"Common.attrib"/>
71 <xs:complexType name=
"mroot.type">
72 <xs:group ref=
"Presentation-expr.class" minOccurs=
"2" maxOccurs=
"2"/>
73 <xs:attributeGroup ref=
"mroot.attlist"/>
76 <xs:element name=
"mroot" type=
"mroot.type"/>
80 <xs:simpleType name=
"mpadded-space">
81 <xs:restriction base=
"xs:string">
83 value=
"(\+|-)?([0-9]+|[0-9]*\.[0-9]+)(((%?) *(width|lspace|height|depth))|(em|ex|px|in|cm|mm|pt|pc))"/>
87 <xs:simpleType name=
"mpadded-width-space">
88 <xs:restriction base=
"xs:string">
89 <!-- MaxF: definition from spec seems wrong, fixing to ([+|-] unsigned-number (%[pseudo-unit]|pseudo-unit|h-unit)) | namedspace | 0 -->
90 <xs:pattern value=
"((\+|-)?([0-9]+|[0-9]*\.[0-9]+)(((%?) *(width|lspace|height|depth)?)|(width|lspace|height|depth)|(em|ex|px|in|cm|mm|pt|pc)))|((veryverythin|verythin|thin|medium|thick|verythick|veryverythick)mathspace)|0"/>
94 <xs:attributeGroup name=
"mpadded.attlist">
95 <xs:attribute name=
"width" type=
"mpadded-width-space"/>
96 <!-- should have default=0 below but '0' is not in value space -->
98 <xs:attribute name=
"lspace" type=
"mpadded-space"/>
99 <xs:attribute name=
"height" type=
"mpadded-space"/>
100 <xs:attribute name=
"depth" type=
"mpadded-space"/>
101 <xs:attributeGroup ref=
"Common.attrib"/>
104 <xs:complexType name=
"mpadded.type">
105 <xs:group ref=
"Presentation-expr.class" minOccurs=
"0" maxOccurs=
"unbounded"/>
106 <xs:attributeGroup ref=
"mpadded.attlist"/>
109 <xs:element name=
"mpadded" type=
"mpadded.type"/>
113 <xs:attributeGroup name=
"mphantom.attlist">
114 <xs:attributeGroup ref=
"Common.attrib"/>
117 <xs:complexType name=
"mphantom.type">
118 <xs:group ref=
"Presentation-expr.class" minOccurs=
"0" maxOccurs=
"unbounded"/>
119 <xs:attributeGroup ref=
"mphantom.attlist"/>
122 <xs:element name=
"mphantom" type=
"mphantom.type"/>
126 <xs:attributeGroup name=
"mfenced.attlist">
127 <xs:attribute name=
"open" type=
"xs:string" default=
"("/>
128 <xs:attribute name=
"close" type=
"xs:string" default=
")"/>
129 <xs:attribute name=
"separators" type=
"xs:string" default=
","/>
130 <xs:attributeGroup ref=
"Common.attrib"/>
133 <xs:complexType name=
"mfenced.type">
134 <xs:group ref=
"Presentation-expr.class" minOccurs=
"0" maxOccurs=
"unbounded"/>
135 <xs:attributeGroup ref=
"mfenced.attlist"/>
138 <xs:element name=
"mfenced" type=
"mfenced.type"/>
142 <xs:attributeGroup name=
"menclose.attlist">
143 <xs:attribute name=
"notation" default=
"longdiv">
145 <xs:restriction base=
"xs:string">
146 <xs:enumeration value=
"actuarial"/>
147 <xs:enumeration value=
"longdiv"/>
148 <xs:enumeration value=
"radical"/>
149 <xs:enumeration value=
"box"/>
150 <xs:enumeration value=
"roundedbox"/>
151 <xs:enumeration value=
"circle"/>
152 <xs:enumeration value=
"left"/>
153 <xs:enumeration value=
"right"/>
154 <xs:enumeration value=
"top"/>
155 <xs:enumeration value=
"bottom"/>
156 <xs:enumeration value=
"updiagonalstrike"/>
157 <xs:enumeration value=
"downdiagonalstrike"/>
158 <xs:enumeration value=
"verticalstrike"/>
159 <xs:enumeration value=
"horizontalstrike"/>
163 <xs:attributeGroup ref=
"Common.attrib"/>
166 <xs:complexType name=
"menclose.type">
167 <xs:group ref=
"Presentation-expr.class" minOccurs=
"0" maxOccurs=
"unbounded"/>
168 <xs:attributeGroup ref=
"menclose.attlist"/>
171 <xs:element name=
"menclose" type=
"menclose.type"/>
173 <!-- And the group of everything -->
175 <xs:group name=
"Presentation-layout.class">
177 <xs:element ref=
"mrow"/>
178 <xs:element ref=
"mfrac"/>
179 <xs:element ref=
"msqrt"/>
180 <xs:element ref=
"mroot"/>
181 <xs:element ref=
"mpadded"/>
182 <xs:element ref=
"mphantom"/>
183 <xs:element ref=
"mfenced"/>
184 <xs:element ref=
"menclose"/>
191 Copyright û 2002 World Wide Web Consortium, (Massachusetts Institute
192 of Technology, Institut National de Recherche en Informatique et en
193 Automatique, Keio University). All Rights Reserved. See
194 http://www.w3.org/Consortium/Legal/.