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"
12 This is an XML Schema module for tables in MathML presentation.
13 Author: St
éphane Dalmas, INRIA.
17 <!-- Common attributes -->
19 <xs:attributeGroup name=
"Table-alignment.attrib">
20 <xs:attribute name=
"rowalign" default=
"baseline">
22 <xs:restriction base=
"xs:string">
23 <xs:pattern value=
"(top|bottom|center|baseline|axis)( top| bottom| center| baseline| axis)*"/>
27 <xs:attribute name=
"columnalign" default=
"center">
29 <xs:restriction base=
"xs:string">
30 <xs:pattern value=
"(left|center|right)( left| center| right)*"/>
34 <xs:attribute name=
"groupalign" type=
"xs:string"/>
39 <xs:attributeGroup name=
"mtr.attlist">
40 <xs:attributeGroup ref=
"Table-alignment.attrib"/>
41 <xs:attributeGroup ref=
"Common.attrib"/>
44 <xs:group name=
"mtr.content">
46 <xs:element ref=
"mtd"/>
50 <xs:complexType name=
"mtr.type">
51 <xs:group ref=
"mtr.content" minOccurs=
"1" maxOccurs=
"unbounded"/>
52 <xs:attributeGroup ref=
"mtr.attlist"/>
55 <xs:element name=
"mtr" type=
"mtr.type"/>
59 <xs:attributeGroup name=
"mlabeledtr.attlist">
60 <xs:attributeGroup ref=
"Table-alignment.attrib"/>
61 <xs:attributeGroup ref=
"Common.attrib"/>
64 <xs:group name=
"mlabeledtr.content">
66 <xs:element ref=
"mtd"/>
70 <xs:complexType name=
"mlabeledtr.type">
71 <xs:group ref=
"mlabeledtr.content" minOccurs=
"1" maxOccurs=
"unbounded"/>
72 <xs:attributeGroup ref=
"mlabeledtr.attlist"/>
75 <xs:element name=
"mlabeledtr" type=
"mlabeledtr.type"/>
79 <xs:attributeGroup name=
"mtd.attlist">
80 <xs:attributeGroup ref=
"Table-alignment.attrib"/>
81 <xs:attribute name=
"columnspan" type=
"xs:positiveInteger" default=
"1"/>
82 <xs:attribute name=
"rowspan" type=
"xs:positiveInteger" default=
"1"/>
83 <xs:attributeGroup ref=
"Common.attrib"/>
86 <xs:group name=
"mtd.content">
88 <xs:group ref=
"Presentation-expr.class" minOccurs=
"0" maxOccurs=
"1"/>
92 <xs:complexType name=
"mtd.type">
93 <xs:group ref=
"mtd.content" minOccurs=
"1" maxOccurs=
"unbounded"/>
94 <xs:attributeGroup ref=
"mtd.attlist"/>
97 <xs:element name=
"mtd" type=
"mtd.type"/>
101 <xs:attributeGroup name=
"mtable.attlist">
102 <xs:attributeGroup ref=
"Table-alignment.attrib"/>
103 <xs:attribute name=
"align" type=
"xs:string" default=
"axis"/>
104 <xs:attribute name=
"alignmentscope" default=
"true">
106 <xs:restriction base=
"xs:string">
107 <xs:pattern value=
"(true|false)( true| false)*"/>
111 <xs:attribute name=
"columnwidth" type=
"xs:string" default=
"auto"/>
112 <xs:attribute name=
"width" type=
"xs:string" default=
"auto"/>
113 <xs:attribute name=
"rowspacing" type=
"xs:string" default=
"1.0ex"/>
114 <xs:attribute name=
"columnspacing" type=
"xs:string" default=
"0.8em"/>
115 <xs:attribute name=
"rowlines" type=
"xs:string" default=
"none"/>
116 <xs:attribute name=
"columnlines" type=
"xs:string" default=
"none"/>
117 <xs:attribute name=
"frame" default=
"none">
119 <xs:restriction base=
"xs:string">
120 <xs:enumeration value=
"none"/>
121 <xs:enumeration value=
"solid"/>
122 <xs:enumeration value=
"dashed"/>
126 <xs:attribute name=
"framespacing" type=
"xs:string" default=
"0.4em 0.5ex"/>
127 <xs:attribute name=
"equalrows" type=
"xs:boolean" default=
"false"/>
128 <xs:attribute name=
"equalcolumns" type=
"xs:boolean" default=
"false"/>
129 <xs:attribute name=
"displaystyle" type=
"xs:boolean" default=
"false"/>
130 <xs:attribute name=
"side" default=
"right">
132 <xs:restriction base=
"xs:string">
133 <xs:enumeration value=
"left"/>
134 <xs:enumeration value=
"right"/>
135 <xs:enumeration value=
"leftoverlap"/>
136 <xs:enumeration value=
"rightoverlap"/>
140 <xs:attribute name=
"minlabelspacing" type=
"length-with-unit" default=
"0.8em"/>
141 <xs:attributeGroup ref=
"Common.attrib"/>
144 <xs:group name=
"mtable.content">
146 <xs:element ref=
"mtr"/>
147 <xs:element ref=
"mlabeledtr"/>
151 <xs:complexType name=
"mtable.type">
152 <xs:group ref=
"mtable.content" minOccurs=
"1" maxOccurs=
"unbounded"/>
153 <xs:attributeGroup ref=
"mtable.attlist"/>
156 <xs:element name=
"mtable" type=
"mtable.type"/>
158 <!-- "maligngroup" -->
160 <xs:attributeGroup name=
"maligngroup.attlist">
161 <xs:attribute name=
"groupalign">
163 <xs:restriction base=
"xs:string">
164 <xs:enumeration value=
"left"/>
165 <xs:enumeration value=
"center"/>
166 <xs:enumeration value=
"right"/>
167 <xs:enumeration value=
"decimalpoint"/>
171 <xs:attributeGroup ref=
"Common.attrib"/>
174 <xs:complexType name=
"maligngroup.type">
175 <xs:attributeGroup ref=
"maligngroup.attlist"/>
178 <xs:element name=
"maligngroup" type=
"maligngroup.type"/>
180 <!-- "malignmark" -->
182 <xs:attributeGroup name=
"malignmark.attlist">
183 <xs:attribute name=
"edge" default=
"left">
185 <xs:restriction base=
"xs:string">
186 <xs:enumeration value=
"left"/>
187 <xs:enumeration value=
"right"/>
191 <xs:attributeGroup ref=
"Common.attrib"/>
194 <xs:complexType name=
"malignmark.type">
195 <xs:attributeGroup ref=
"malignmark.attlist"/>
198 <xs:element name=
"malignmark" type=
"malignmark.type"/>
200 <!-- The group of everything -->
202 <xs:group name=
"Presentation-table.class">
204 <xs:element ref=
"mtable"/>
205 <xs:element ref=
"maligngroup"/>
206 <xs:element ref=
"malignmark"/>
212 Copyright û 2002 World Wide Web Consortium, (Massachusetts Institute
213 of Technology, Institut National de Recherche en Informatique et en
214 Automatique, Keio University). All Rights Reserved. See
215 http://www.w3.org/Consortium/Legal/.