tdf#130857 qt weld: Implement QtInstanceWidget::get_text_height
[LibreOffice.git] / schema / mathml2 / common / math.xsd
blob51eb51c87d5ba6bf73c135642ac21495ae4a90b2
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 defining the "math" element of MathML.
13 Author: St&#233;phane Dalmas, INRIA.
14 </xs:documentation>
15 </xs:annotation>
17 <!-- The four groups that govern a lot of things -->
19 <!-- currently very lax. Should be tightened from Chapter 5 -->
21 <xs:group name="Presentation-expr.class">
22 <xs:choice>
23 <xs:group ref="PresExpr.class"/>
24 <xs:group ref="ContExpr.class"/>
25 </xs:choice>
26 </xs:group>
28 <xs:group name="Content-expr.class">
29 <xs:choice>
30 <xs:group ref="ContExpr.class"/>
31 <xs:group ref="PresExpr.class"/>
32 </xs:choice>
33 </xs:group>
35 <xs:group name="PresExpr.class">
36 <xs:choice>
37 <xs:group ref="Presentation-token.class"/>
38 <xs:group ref="Presentation-layout.class"/>
39 <xs:group ref="Presentation-script.class"/>
40 <xs:group ref="Presentation-table.class"/>
41 <xs:element ref="mspace"/>
42 <xs:element ref="maction"/>
43 <xs:element ref="merror"/>
44 <xs:element ref="mstyle"/>
45 </xs:choice>
46 </xs:group>
48 <xs:group name="ContExpr.class">
49 <xs:choice>
50 <xs:group ref="Content-tokens.class"/>
51 <xs:group ref="Content-arith.class"/>
52 <xs:group ref="Content-functions.class"/>
53 <xs:group ref="Content-logic.class"/>
54 <xs:group ref="Content-constants.class"/>
55 <xs:group ref="Content-sets.class"/>
56 <xs:group ref="Content-relations.class"/>
57 <xs:group ref="Content-elementary-functions.class"/>
58 <xs:group ref="Content-calculus.class"/>
59 <xs:group ref="Content-linear-algebra.class"/>
60 <xs:group ref="Content-vector-calculus.class"/>
61 <xs:group ref="Content-statistics.class"/>
62 <xs:group ref="Content-constructs.class"/>
63 <xs:element ref="semantics"/>
64 </xs:choice>
65 </xs:group>
67 <!-- "math" -->
69 <xs:attributeGroup name="Browser-interface.attrib">
70 <xs:attribute name="baseline" type="xs:string"/>
71 <xs:attribute name="overflow" default="scroll">
72 <xs:simpleType>
73 <xs:restriction base="xs:string">
74 <xs:enumeration value="scroll"/>
75 <xs:enumeration value="elide"/>
76 <xs:enumeration value="truncate"/>
77 <xs:enumeration value="scale"/>
78 </xs:restriction>
79 </xs:simpleType>
80 </xs:attribute>
81 <xs:attribute name="altimg" type="xs:anyURI"/>
82 <xs:attribute name="alttext" type="xs:string"/>
83 <xs:attribute name="type" type="xs:string"/>
84 <xs:attribute name="name" type="xs:string"/>
85 <xs:attribute name="height" type="xs:string"/>
86 <xs:attribute name="width" type="xs:string"/>
87 </xs:attributeGroup>
89 <xs:attributeGroup name="math.attlist">
90 <xs:attributeGroup ref="Browser-interface.attrib"/>
91 <xs:attribute name="macros" type="xs:string"/>
92 <!-- deprecated
93 <xs:attribute name="mode" type="xs:string"/>
94 -->
95 <xs:attribute name="display" default="inline">
96 <xs:simpleType>
97 <xs:restriction base="xs:string">
98 <xs:enumeration value="block"/>
99 <xs:enumeration value="inline"/>
100 </xs:restriction>
101 </xs:simpleType>
102 </xs:attribute>
103 <xs:attributeGroup ref="Common.attrib"/>
104 </xs:attributeGroup>
106 <xs:group name="math.content">
107 <xs:choice>
108 <xs:group ref="PresExpr.class"/>
109 <xs:group ref="ContExpr.class"/>
110 </xs:choice>
111 </xs:group>
113 <xs:complexType name="math.type">
114 <xs:group ref="math.content" minOccurs="0" maxOccurs="unbounded"/>
115 <xs:attributeGroup ref="math.attlist"/>
116 </xs:complexType>
118 <xs:element name="math" type="math.type"/>
120 </xs:schema>
121 <!--
122 Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
123 of Technology, Institut National de Recherche en Informatique et en
124 Automatique, Keio University). All Rights Reserved. See
125 http://www.w3.org/Consortium/Legal/.