From a09ed7100e07c0416017c06de9e22fa888377d15 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 22 Jun 2018 18:20:46 +0200 Subject: 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 --- schema/mathml2/README | 2 + schema/mathml2/common/common-attribs.xsd | 41 ++++ schema/mathml2/common/math.xsd | 126 ++++++++++++ schema/mathml2/common/xlink-href.xsd | 20 ++ schema/mathml2/content/arith.xsd | 90 ++++++++ schema/mathml2/content/calculus.xsd | 146 +++++++++++++ schema/mathml2/content/common-attrib.xsd | 30 +++ schema/mathml2/content/constants.xsd | 83 ++++++++ schema/mathml2/content/constructs.xsd | 260 ++++++++++++++++++++++++ schema/mathml2/content/elementary-functions.xsd | 117 +++++++++++ schema/mathml2/content/functions.xsd | 73 +++++++ schema/mathml2/content/linear-algebra.xsd | 173 ++++++++++++++++ schema/mathml2/content/logic.xsd | 53 +++++ schema/mathml2/content/relations.xsd | 55 +++++ schema/mathml2/content/semantics.xsd | 85 ++++++++ schema/mathml2/content/sets.xsd | 236 +++++++++++++++++++++ schema/mathml2/content/statistics.xsd | 136 +++++++++++++ schema/mathml2/content/tokens.xsd | 120 +++++++++++ schema/mathml2/content/vector-calculus.xsd | 88 ++++++++ schema/mathml2/mathml2.xsd | 59 ++++++ schema/mathml2/presentation/action.xsd | 44 ++++ schema/mathml2/presentation/characters.xsd | 37 ++++ schema/mathml2/presentation/common-attribs.xsd | 113 ++++++++++ schema/mathml2/presentation/common-types.xsd | 103 ++++++++++ schema/mathml2/presentation/error.xsd | 40 ++++ schema/mathml2/presentation/layout.xsd | 195 ++++++++++++++++++ schema/mathml2/presentation/scripts.xsd | 186 +++++++++++++++++ schema/mathml2/presentation/space.xsd | 52 +++++ schema/mathml2/presentation/style.xsd | 69 +++++++ schema/mathml2/presentation/table.xsd | 216 ++++++++++++++++++++ schema/mathml2/presentation/tokens.xsd | 124 +++++++++++ 31 files changed, 3172 insertions(+) create mode 100644 schema/mathml2/README create mode 100644 schema/mathml2/common/common-attribs.xsd create mode 100644 schema/mathml2/common/math.xsd create mode 100644 schema/mathml2/common/xlink-href.xsd create mode 100644 schema/mathml2/content/arith.xsd create mode 100644 schema/mathml2/content/calculus.xsd create mode 100644 schema/mathml2/content/common-attrib.xsd create mode 100644 schema/mathml2/content/constants.xsd create mode 100644 schema/mathml2/content/constructs.xsd create mode 100644 schema/mathml2/content/elementary-functions.xsd create mode 100644 schema/mathml2/content/functions.xsd create mode 100644 schema/mathml2/content/linear-algebra.xsd create mode 100644 schema/mathml2/content/logic.xsd create mode 100644 schema/mathml2/content/relations.xsd create mode 100644 schema/mathml2/content/semantics.xsd create mode 100644 schema/mathml2/content/sets.xsd create mode 100644 schema/mathml2/content/statistics.xsd create mode 100644 schema/mathml2/content/tokens.xsd create mode 100644 schema/mathml2/content/vector-calculus.xsd create mode 100644 schema/mathml2/mathml2.xsd create mode 100644 schema/mathml2/presentation/action.xsd create mode 100644 schema/mathml2/presentation/characters.xsd create mode 100644 schema/mathml2/presentation/common-attribs.xsd create mode 100644 schema/mathml2/presentation/common-types.xsd create mode 100644 schema/mathml2/presentation/error.xsd create mode 100644 schema/mathml2/presentation/layout.xsd create mode 100644 schema/mathml2/presentation/scripts.xsd create mode 100644 schema/mathml2/presentation/space.xsd create mode 100644 schema/mathml2/presentation/style.xsd create mode 100644 schema/mathml2/presentation/table.xsd create mode 100644 schema/mathml2/presentation/tokens.xsd diff --git a/schema/mathml2/README b/schema/mathml2/README new file mode 100644 index 000000000000..6a06be0fa9dd --- /dev/null +++ b/schema/mathml2/README @@ -0,0 +1,2 @@ +Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang). This software or document includes material copied from or derived from Mathematical Markup Language (MathML) Version 2.0 https://www.w3.org/TR/MathML2/ https://www.w3.org/Math/XMLSchema/mathml2.tgz +STATUS: W3C Recommendation diff --git a/schema/mathml2/common/common-attribs.xsd b/schema/mathml2/common/common-attribs.xsd new file mode 100644 index 000000000000..33698b8f86d6 --- /dev/null +++ b/schema/mathml2/common/common-attribs.xsd @@ -0,0 +1,41 @@ + + + + + + + This is the common attributes module for MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/common/math.xsd b/schema/mathml2/common/math.xsd new file mode 100644 index 000000000000..51eb51c87d5b --- /dev/null +++ b/schema/mathml2/common/math.xsd @@ -0,0 +1,126 @@ + + + + + + + This is an XML Schema module defining the "math" element of MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/common/xlink-href.xsd b/schema/mathml2/common/xlink-href.xsd new file mode 100644 index 000000000000..a386bc9fba5e --- /dev/null +++ b/schema/mathml2/common/xlink-href.xsd @@ -0,0 +1,20 @@ + + + + This schema provides the XLink href attribute for use in the MathML2 + schema. Written by Max Froumentin, W3C. + + + + + + + + diff --git a/schema/mathml2/content/arith.xsd b/schema/mathml2/content/arith.xsd new file mode 100644 index 000000000000..fdb508f7e4c3 --- /dev/null +++ b/schema/mathml2/content/arith.xsd @@ -0,0 +1,90 @@ + + + + + + + This is an XML Schema module for the "arithmetic" operators of content + MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/calculus.xsd b/schema/mathml2/content/calculus.xsd new file mode 100644 index 000000000000..1b8fdb0e0305 --- /dev/null +++ b/schema/mathml2/content/calculus.xsd @@ -0,0 +1,146 @@ + + + + + + + This is an XML Schema module for the calculs operators of content + MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/common-attrib.xsd b/schema/mathml2/content/common-attrib.xsd new file mode 100644 index 000000000000..b0d599f4a36c --- /dev/null +++ b/schema/mathml2/content/common-attrib.xsd @@ -0,0 +1,30 @@ + + + + + + + This is the XML schema module defining common attributes for the + content part of MathML. + Authors: Stéphane Dalmas, INRIA. + + + + + + + + + + + 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 @@ + + + + + This is the XML Schema module for the basic constants of MathML content. + Author: Stéphane Dalmas. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/constructs.xsd b/schema/mathml2/content/constructs.xsd new file mode 100644 index 000000000000..4cfc21af8a3d --- /dev/null +++ b/schema/mathml2/content/constructs.xsd @@ -0,0 +1,260 @@ + + + + + + + + This is an XML Schema module for the basic constructs of content MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/elementary-functions.xsd b/schema/mathml2/content/elementary-functions.xsd new file mode 100644 index 000000000000..b106f0d170b1 --- /dev/null +++ b/schema/mathml2/content/elementary-functions.xsd @@ -0,0 +1,117 @@ + + + + + + This is an XML Schema module for the elementary functions in content + MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/functions.xsd b/schema/mathml2/content/functions.xsd new file mode 100644 index 000000000000..11a5768dcc2a --- /dev/null +++ b/schema/mathml2/content/functions.xsd @@ -0,0 +1,73 @@ + + + + + + This is an XML Schema module for operators dealing with functions in content + MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/linear-algebra.xsd b/schema/mathml2/content/linear-algebra.xsd new file mode 100644 index 000000000000..eb62bcb6f218 --- /dev/null +++ b/schema/mathml2/content/linear-algebra.xsd @@ -0,0 +1,173 @@ + + + + + + + This is an XML Schema module for the linear algebra part of content MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/logic.xsd b/schema/mathml2/content/logic.xsd new file mode 100644 index 000000000000..6dac2abe4a31 --- /dev/null +++ b/schema/mathml2/content/logic.xsd @@ -0,0 +1,53 @@ + + + + + This is an XML Schema module for the logic operators of content MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/relations.xsd b/schema/mathml2/content/relations.xsd new file mode 100644 index 000000000000..87496e5c3a66 --- /dev/null +++ b/schema/mathml2/content/relations.xsd @@ -0,0 +1,55 @@ + + + + + This is an XML Schema module for the relational operators of content MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/semantics.xsd b/schema/mathml2/content/semantics.xsd new file mode 100644 index 000000000000..d337ee76f11c --- /dev/null +++ b/schema/mathml2/content/semantics.xsd @@ -0,0 +1,85 @@ + + + + + + + This is an XML Schema module for the "sematics" element of content MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/sets.xsd b/schema/mathml2/content/sets.xsd new file mode 100644 index 000000000000..7a7f7f6851dd --- /dev/null +++ b/schema/mathml2/content/sets.xsd @@ -0,0 +1,236 @@ + + + + + + + This is an XML Schema module for the part of content MathML dealing with + sets and lists. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/statistics.xsd b/schema/mathml2/content/statistics.xsd new file mode 100644 index 000000000000..cf0f20e329fb --- /dev/null +++ b/schema/mathml2/content/statistics.xsd @@ -0,0 +1,136 @@ + + + + + + + This is an XML Schema module for the statistical operators of content MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/tokens.xsd b/schema/mathml2/content/tokens.xsd new file mode 100644 index 000000000000..7e7f9b81d4dc --- /dev/null +++ b/schema/mathml2/content/tokens.xsd @@ -0,0 +1,120 @@ + + + + + + + This is the XML schema module for the token elements of the + content part of MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/content/vector-calculus.xsd b/schema/mathml2/content/vector-calculus.xsd new file mode 100644 index 000000000000..3e5dd9ce2244 --- /dev/null +++ b/schema/mathml2/content/vector-calculus.xsd @@ -0,0 +1,88 @@ + + + + + + + This is an XML Schema module for the vector calculs operators of content + MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/mathml2.xsd b/schema/mathml2/mathml2.xsd new file mode 100644 index 000000000000..2bd76bfb67d4 --- /dev/null +++ b/schema/mathml2/mathml2.xsd @@ -0,0 +1,59 @@ + + + + + + This is an XML Schema for MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/action.xsd b/schema/mathml2/presentation/action.xsd new file mode 100644 index 000000000000..9633698509c4 --- /dev/null +++ b/schema/mathml2/presentation/action.xsd @@ -0,0 +1,44 @@ + + + + + + + This is the XML Schema module for the MathML "maction" element. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/characters.xsd b/schema/mathml2/presentation/characters.xsd new file mode 100644 index 000000000000..32b4d3f78cdd --- /dev/null +++ b/schema/mathml2/presentation/characters.xsd @@ -0,0 +1,37 @@ + + + + + + + This is the XML Schema module for the MathML "mglyph" element. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/common-attribs.xsd b/schema/mathml2/presentation/common-attribs.xsd new file mode 100644 index 000000000000..2dff7e33a0e1 --- /dev/null +++ b/schema/mathml2/presentation/common-attribs.xsd @@ -0,0 +1,113 @@ + + + + + + + This schema module defines sets of attributes common to several elements + of presentation MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/common-types.xsd b/schema/mathml2/presentation/common-types.xsd new file mode 100644 index 000000000000..a44c3bfc8cb5 --- /dev/null +++ b/schema/mathml2/presentation/common-types.xsd @@ -0,0 +1,103 @@ + + + + + + + This is an XML Schema module containing some type definitions for MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/error.xsd b/schema/mathml2/presentation/error.xsd new file mode 100644 index 000000000000..01b5b960069e --- /dev/null +++ b/schema/mathml2/presentation/error.xsd @@ -0,0 +1,40 @@ + + + + + + + This is the XML Schema module for the MathML "merror" element. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/layout.xsd b/schema/mathml2/presentation/layout.xsd new file mode 100644 index 000000000000..80b005efd7e9 --- /dev/null +++ b/schema/mathml2/presentation/layout.xsd @@ -0,0 +1,195 @@ + + + + + + This is the XML schema module for the layout elements of the + presentation part of MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/scripts.xsd b/schema/mathml2/presentation/scripts.xsd new file mode 100644 index 000000000000..cf7eea1543f9 --- /dev/null +++ b/schema/mathml2/presentation/scripts.xsd @@ -0,0 +1,186 @@ + + + + + + + This is an XML Schema module for the presentation elements of MathML + dealing with subscripts and superscripts. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/space.xsd b/schema/mathml2/presentation/space.xsd new file mode 100644 index 000000000000..243735385d76 --- /dev/null +++ b/schema/mathml2/presentation/space.xsd @@ -0,0 +1,52 @@ + + + + + + + This is the XML Schema module for the MathML "mspace" element. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/style.xsd b/schema/mathml2/presentation/style.xsd new file mode 100644 index 000000000000..a0181218b303 --- /dev/null +++ b/schema/mathml2/presentation/style.xsd @@ -0,0 +1,69 @@ + + + + + + + This is an XML Schema for the "mstyle" element of MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/table.xsd b/schema/mathml2/presentation/table.xsd new file mode 100644 index 000000000000..968f7bc82e59 --- /dev/null +++ b/schema/mathml2/presentation/table.xsd @@ -0,0 +1,216 @@ + + + + + + + This is an XML Schema module for tables in MathML presentation. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/mathml2/presentation/tokens.xsd b/schema/mathml2/presentation/tokens.xsd new file mode 100644 index 000000000000..56d156c6590f --- /dev/null +++ b/schema/mathml2/presentation/tokens.xsd @@ -0,0 +1,124 @@ + + + + + + + This is the XML schema module for the token elements of the + presentation part of MathML. + Author: Stéphane Dalmas, INRIA. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit