Bump version to 24.04.3.4
[LibreOffice.git] / schema / mathml2 / presentation / layout.xsd
blob80b005efd7e9b6fb0a5f82f0eb8ebfe775f792b5
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"
9 <xs:annotation>
10 <xs:documentation>
11 This is the XML schema module for the layout elements of the
12 presentation part of MathML.
13 Author: St&#233;phane Dalmas, INRIA.
14 </xs:documentation>
15 </xs:annotation>
17 <!-- "mrow" -->
19 <xs:attributeGroup name="mrow.attlist">
20 <xs:attributeGroup ref="Common.attrib"/>
21 </xs:attributeGroup>
23 <xs:complexType name="mrow.type">
24 <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
25 <xs:attributeGroup ref="mrow.attlist"/>
26 </xs:complexType>
28 <xs:element name="mrow" type="mrow.type"/>
30 <!-- "mfrac" -->
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">
37 <xs:simpleType>
38 <xs:union memberTypes="length-with-optional-unit thickness"/>
39 </xs:simpleType>
40 </xs:attribute>
41 <xs:attributeGroup ref="Common.attrib"/>
42 </xs:attributeGroup>
44 <xs:complexType name="mfrac.type">
45 <xs:group ref="Presentation-expr.class" minOccurs="2" maxOccurs="2"/>
46 <xs:attributeGroup ref="mfrac.attlist"/>
47 </xs:complexType>
49 <xs:element name="mfrac" type="mfrac.type"/>
51 <!-- "msqrt" -->
53 <xs:attributeGroup name="msqrt.attlist">
54 <xs:attributeGroup ref="Common.attrib"/>
55 </xs:attributeGroup>
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"/>
61 </xs:complexType>
63 <xs:element name="msqrt" type="msqrt.type"/>
65 <!-- "mroot" -->
67 <xs:attributeGroup name="mroot.attlist">
68 <xs:attributeGroup ref="Common.attrib"/>
69 </xs:attributeGroup>
71 <xs:complexType name="mroot.type">
72 <xs:group ref="Presentation-expr.class" minOccurs="2" maxOccurs="2"/>
73 <xs:attributeGroup ref="mroot.attlist"/>
74 </xs:complexType>
76 <xs:element name="mroot" type="mroot.type"/>
78 <!-- "mpadded" -->
80 <xs:simpleType name="mpadded-space">
81 <xs:restriction base="xs:string">
82 <xs:pattern
83 value="(\+|-)?([0-9]+|[0-9]*\.[0-9]+)(((%?) *(width|lspace|height|depth))|(em|ex|px|in|cm|mm|pt|pc))"/>
84 </xs:restriction>
85 </xs:simpleType>
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"/>
91 </xs:restriction>
92 </xs:simpleType>
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 -->
97 <!-- see bug #425 -->
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"/>
102 </xs:attributeGroup>
104 <xs:complexType name="mpadded.type">
105 <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
106 <xs:attributeGroup ref="mpadded.attlist"/>
107 </xs:complexType>
109 <xs:element name="mpadded" type="mpadded.type"/>
111 <!-- "mphantom" -->
113 <xs:attributeGroup name="mphantom.attlist">
114 <xs:attributeGroup ref="Common.attrib"/>
115 </xs:attributeGroup>
117 <xs:complexType name="mphantom.type">
118 <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
119 <xs:attributeGroup ref="mphantom.attlist"/>
120 </xs:complexType>
122 <xs:element name="mphantom" type="mphantom.type"/>
124 <!-- "mfenced" -->
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"/>
131 </xs:attributeGroup>
133 <xs:complexType name="mfenced.type">
134 <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
135 <xs:attributeGroup ref="mfenced.attlist"/>
136 </xs:complexType>
138 <xs:element name="mfenced" type="mfenced.type"/>
140 <!-- "menclose" -->
142 <xs:attributeGroup name="menclose.attlist">
143 <xs:attribute name="notation" default="longdiv">
144 <xs:simpleType>
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"/>
160 </xs:restriction>
161 </xs:simpleType>
162 </xs:attribute>
163 <xs:attributeGroup ref="Common.attrib"/>
164 </xs:attributeGroup>
166 <xs:complexType name="menclose.type">
167 <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
168 <xs:attributeGroup ref="menclose.attlist"/>
169 </xs:complexType>
171 <xs:element name="menclose" type="menclose.type"/>
173 <!-- And the group of everything -->
175 <xs:group name="Presentation-layout.class">
176 <xs:choice>
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"/>
185 </xs:choice>
186 </xs:group>
188 </xs:schema>
190 <!--
191 Copyright &#251; 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/.