diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-06-22 18:20:46 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-06-26 12:20:31 +0200 |
commit | a09ed7100e07c0416017c06de9e22fa888377d15 (patch) | |
tree | 146739719a89a7ca98dd3fad1afe619c242fd011 /schema/mathml2/content/constants.xsd | |
parent | b88706f98b0859a40b5e50596c9fa75398c90c2f (diff) |
schema: add MathML2 XSD
These are needed to invoke the ODF validator with custom ODF schemas.
Change-Id: I231b5d8a8573e9ac6171a331362a31aceae08d80
Reviewed-on: https://gerrit.libreoffice.org/56399
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'schema/mathml2/content/constants.xsd')
-rw-r--r-- | schema/mathml2/content/constants.xsd | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/schema/mathml2/content/constants.xsd b/schema/mathml2/content/constants.xsd new file mode 100644 index 000000000000..a22548e26946 --- /dev/null +++ b/schema/mathml2/content/constants.xsd @@ -0,0 +1,83 @@ +<xs:schema + xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns="http://www.w3.org/1998/Math/MathML" + targetNamespace="http://www.w3.org/1998/Math/MathML" + elementFormDefault="qualified" + > + +<xs:annotation> + <xs:documentation> + This is the XML Schema module for the basic constants of MathML content. + Author: Stéphane Dalmas. + </xs:documentation> +</xs:annotation> + +<!-- a common type for all this --> + +<xs:complexType name="Constant.type"> + <xs:attributeGroup ref="Definition.attrib"/> + <xs:attributeGroup ref="Common.attrib"/> +</xs:complexType> + +<!-- Basic sets --> + +<xs:element name="naturalnumbers" type="Constant.type"/> +<xs:element name="primes" type="Constant.type"/> +<xs:element name="integers" type="Constant.type"/> +<xs:element name="rationals" type="Constant.type"/> +<xs:element name="reals" type="Constant.type"/> +<xs:element name="complexes" type="Constant.type"/> + +<!-- Empty set --> + +<xs:element name="emptyset" type="Constant.type"/> + +<!-- Basic constants --> + +<xs:element name="exponentiale" type="Constant.type"/> +<xs:element name="imaginaryi" type="Constant.type"/> +<xs:element name="pi" type="Constant.type"/> +<xs:element name="eulergamma" type="Constant.type"/> + +<!-- Boolean constants --> + +<xs:element name="true" type="Constant.type"/> +<xs:element name="false" type="Constant.type"/> + +<!-- Infinty --> + +<xs:element name="infinity" type="Constant.type"/> + +<!-- NotANumber --> + +<xs:element name="notanumber" type="Constant.type"/> + +<!-- And the group of everything --> + +<xs:group name="Content-constants.class"> + <xs:choice> + <xs:element ref="naturalnumbers"/> + <xs:element ref="primes"/> + <xs:element ref="integers"/> + <xs:element ref="rationals"/> + <xs:element ref="reals"/> + <xs:element ref="complexes"/> + <xs:element ref="emptyset"/> + <xs:element ref="exponentiale"/> + <xs:element ref="imaginaryi"/> + <xs:element ref="pi"/> + <xs:element ref="eulergamma"/> + <xs:element ref="true"/> + <xs:element ref="false"/> + <xs:element ref="infinity"/> + <xs:element ref="notanumber"/> + </xs:choice> +</xs:group> + +</xs:schema> +<!-- + Copyright û 2002 World Wide Web Consortium, (Massachusetts Institute + of Technology, Institut National de Recherche en Informatique et en + Automatique, Keio University). All Rights Reserved. See + http://www.w3.org/Consortium/Legal/. + --> |