Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / schema / mathml2 / presentation / tokens.xsd
blob56d156c6590f852b44c1beab5cc1588be818a2a2
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 the XML schema module for the token elements of the
13 presentation part of MathML.
14 Author: St&#233;phane Dalmas, INRIA.
15 </xs:documentation>
16 </xs:annotation>
18 <!-- The content of presentation token elements is either normal
19 characters, "mglyph" ones or alignment marks -->
21 <xs:group name="Glyph-alignmark.class">
22 <xs:choice>
23 <xs:element ref="malignmark"/>
24 <xs:element ref="mglyph"/>
25 </xs:choice>
26 </xs:group>
28 <!-- "mi" -->
30 <!-- "mi" is supposed to have a default value of its "mathvariant" attribute
31 set to "italic" -->
32 <xs:attributeGroup name="mi.attlist">
33 <xs:attributeGroup ref="Token-style.attrib"/>
34 <xs:attributeGroup ref="Common.attrib"/>
35 </xs:attributeGroup>
37 <xs:complexType name="mi.type" mixed="true">
38 <xs:group ref="Glyph-alignmark.class" minOccurs="0" maxOccurs="unbounded"/>
39 <xs:attributeGroup ref="mi.attlist"/>
40 </xs:complexType>
42 <xs:element name="mi" type="mi.type"/>
44 <!-- "mo" -->
46 <xs:attributeGroup name="mo.attlist">
47 <xs:attributeGroup ref="Operator.attrib"/>
48 <xs:attributeGroup ref="Token-style.attrib"/>
49 <xs:attributeGroup ref="Common.attrib"/>
50 </xs:attributeGroup>
52 <xs:complexType name="mo.type" mixed="true">
53 <xs:group ref="Glyph-alignmark.class" minOccurs="0" maxOccurs="unbounded"/>
54 <xs:attributeGroup ref="mo.attlist"/>
55 </xs:complexType>
57 <xs:element name="mo" type="mo.type"/>
59 <!-- "mn" -->
61 <xs:attributeGroup name="mn.attlist">
62 <xs:attributeGroup ref="Token-style.attrib"/>
63 <xs:attributeGroup ref="Common.attrib"/>
64 </xs:attributeGroup>
66 <xs:complexType name="mn.type" mixed="true">
67 <xs:group ref="Glyph-alignmark.class" minOccurs="0" maxOccurs="unbounded"/>
68 <xs:attributeGroup ref="mi.attlist"/>
69 </xs:complexType>
71 <xs:element name="mn" type="mn.type"/>
73 <!-- "mtext" -->
75 <xs:attributeGroup name="mtext.attlist">
76 <xs:attributeGroup ref="Token-style.attrib"/>
77 <xs:attributeGroup ref="Common.attrib"/>
78 </xs:attributeGroup>
80 <xs:complexType name="mtext.type" mixed="true">
81 <xs:group ref="Glyph-alignmark.class" minOccurs="0" maxOccurs="unbounded"/>
82 <xs:attributeGroup ref="mtext.attlist"/>
83 </xs:complexType>
85 <xs:element name="mtext" type="mtext.type"/>
87 <!-- "ms" -->
89 <xs:attributeGroup name="ms.attlist">
90 <!-- the values of "lquote" or "rquote" are not restricted to be
91 one character strings... -->
92 <xs:attribute name="lquote" type="xs:string" default="&quot;"/>
93 <xs:attribute name="rquote" type="xs:string" default="&quot;"/>
94 <xs:attributeGroup ref="Token-style.attrib"/>
95 <xs:attributeGroup ref="Common.attrib"/>
96 </xs:attributeGroup>
98 <xs:complexType name="ms.type" mixed="true">
99 <xs:group ref="Glyph-alignmark.class" minOccurs="0" maxOccurs="unbounded"/>
100 <xs:attributeGroup ref="ms.attlist"/>
101 </xs:complexType>
103 <xs:element name="ms" type="ms.type"/>
105 <!-- And the group of any token -->
107 <xs:group name="Presentation-token.class">
108 <xs:choice>
109 <xs:element ref="mi"/>
110 <xs:element ref="mo"/>
111 <xs:element ref="mn"/>
112 <xs:element ref="mtext"/>
113 <xs:element ref="ms"/>
114 </xs:choice>
115 </xs:group>
117 </xs:schema>
119 <!--
120 Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
121 of Technology, Institut National de Recherche en Informatique et en
122 Automatique, Keio University). All Rights Reserved. See
123 http://www.w3.org/Consortium/Legal/.