LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / schema / mathml2 / presentation / table.xsd
blob968f7bc82e5928ab38ff119da7c082924729b5fc
1 <?xml version="1.0" encoding="UTF-8"?>
3 <xs:schema
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"
10 <xs:annotation>
11 <xs:documentation>
12 This is an XML Schema module for tables in MathML presentation.
13 Author: St&#233;phane Dalmas, INRIA.
14 </xs:documentation>
15 </xs:annotation>
17 <!-- Common attributes -->
19 <xs:attributeGroup name="Table-alignment.attrib">
20 <xs:attribute name="rowalign" default="baseline">
21 <xs:simpleType>
22 <xs:restriction base="xs:string">
23 <xs:pattern value="(top|bottom|center|baseline|axis)( top| bottom| center| baseline| axis)*"/>
24 </xs:restriction>
25 </xs:simpleType>
26 </xs:attribute>
27 <xs:attribute name="columnalign" default="center">
28 <xs:simpleType>
29 <xs:restriction base="xs:string">
30 <xs:pattern value="(left|center|right)( left| center| right)*"/>
31 </xs:restriction>
32 </xs:simpleType>
33 </xs:attribute>
34 <xs:attribute name="groupalign" type="xs:string"/>
35 </xs:attributeGroup>
37 <!-- "mtr" -->
39 <xs:attributeGroup name="mtr.attlist">
40 <xs:attributeGroup ref="Table-alignment.attrib"/>
41 <xs:attributeGroup ref="Common.attrib"/>
42 </xs:attributeGroup>
44 <xs:group name="mtr.content">
45 <xs:sequence>
46 <xs:element ref="mtd"/>
47 </xs:sequence>
48 </xs:group>
50 <xs:complexType name="mtr.type">
51 <xs:group ref="mtr.content" minOccurs="1" maxOccurs="unbounded"/>
52 <xs:attributeGroup ref="mtr.attlist"/>
53 </xs:complexType>
55 <xs:element name="mtr" type="mtr.type"/>
57 <!-- "labeledtr" -->
59 <xs:attributeGroup name="mlabeledtr.attlist">
60 <xs:attributeGroup ref="Table-alignment.attrib"/>
61 <xs:attributeGroup ref="Common.attrib"/>
62 </xs:attributeGroup>
64 <xs:group name="mlabeledtr.content">
65 <xs:sequence>
66 <xs:element ref="mtd"/>
67 </xs:sequence>
68 </xs:group>
70 <xs:complexType name="mlabeledtr.type">
71 <xs:group ref="mlabeledtr.content" minOccurs="1" maxOccurs="unbounded"/>
72 <xs:attributeGroup ref="mlabeledtr.attlist"/>
73 </xs:complexType>
75 <xs:element name="mlabeledtr" type="mlabeledtr.type"/>
77 <!-- "mtd" -->
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"/>
84 </xs:attributeGroup>
86 <xs:group name="mtd.content">
87 <xs:sequence>
88 <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="1"/>
89 </xs:sequence>
90 </xs:group>
92 <xs:complexType name="mtd.type">
93 <xs:group ref="mtd.content" minOccurs="1" maxOccurs="unbounded"/>
94 <xs:attributeGroup ref="mtd.attlist"/>
95 </xs:complexType>
97 <xs:element name="mtd" type="mtd.type"/>
99 <!-- "mtable" -->
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">
105 <xs:simpleType>
106 <xs:restriction base="xs:string">
107 <xs:pattern value="(true|false)( true| false)*"/>
108 </xs:restriction>
109 </xs:simpleType>
110 </xs:attribute>
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">
118 <xs:simpleType>
119 <xs:restriction base="xs:string">
120 <xs:enumeration value="none"/>
121 <xs:enumeration value="solid"/>
122 <xs:enumeration value="dashed"/>
123 </xs:restriction>
124 </xs:simpleType>
125 </xs:attribute>
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">
131 <xs:simpleType>
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"/>
137 </xs:restriction>
138 </xs:simpleType>
139 </xs:attribute>
140 <xs:attribute name="minlabelspacing" type="length-with-unit" default="0.8em"/>
141 <xs:attributeGroup ref="Common.attrib"/>
142 </xs:attributeGroup>
144 <xs:group name="mtable.content">
145 <xs:choice>
146 <xs:element ref="mtr"/>
147 <xs:element ref="mlabeledtr"/>
148 </xs:choice>
149 </xs:group>
151 <xs:complexType name="mtable.type">
152 <xs:group ref="mtable.content" minOccurs="1" maxOccurs="unbounded"/>
153 <xs:attributeGroup ref="mtable.attlist"/>
154 </xs:complexType>
156 <xs:element name="mtable" type="mtable.type"/>
158 <!-- "maligngroup" -->
160 <xs:attributeGroup name="maligngroup.attlist">
161 <xs:attribute name="groupalign">
162 <xs:simpleType>
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"/>
168 </xs:restriction>
169 </xs:simpleType>
170 </xs:attribute>
171 <xs:attributeGroup ref="Common.attrib"/>
172 </xs:attributeGroup>
174 <xs:complexType name="maligngroup.type">
175 <xs:attributeGroup ref="maligngroup.attlist"/>
176 </xs:complexType>
178 <xs:element name="maligngroup" type="maligngroup.type"/>
180 <!-- "malignmark" -->
182 <xs:attributeGroup name="malignmark.attlist">
183 <xs:attribute name="edge" default="left">
184 <xs:simpleType>
185 <xs:restriction base="xs:string">
186 <xs:enumeration value="left"/>
187 <xs:enumeration value="right"/>
188 </xs:restriction>
189 </xs:simpleType>
190 </xs:attribute>
191 <xs:attributeGroup ref="Common.attrib"/>
192 </xs:attributeGroup>
194 <xs:complexType name="malignmark.type">
195 <xs:attributeGroup ref="malignmark.attlist"/>
196 </xs:complexType>
198 <xs:element name="malignmark" type="malignmark.type"/>
200 <!-- The group of everything -->
202 <xs:group name="Presentation-table.class">
203 <xs:choice>
204 <xs:element ref="mtable"/>
205 <xs:element ref="maligngroup"/>
206 <xs:element ref="malignmark"/>
207 </xs:choice>
208 </xs:group>
210 </xs:schema>
211 <!--
212 Copyright &#251; 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/.