mml 2.3.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitmodules +9 -0
- data/.rubocop.yml +4 -0
- data/.rubocop_todo.yml +83 -18
- data/Gemfile +0 -2
- data/README.adoc +176 -47
- data/Rakefile +16 -1
- data/lib/mml/base/common_attributes.rb +44 -0
- data/lib/mml/base/content/annotation.rb +28 -0
- data/lib/mml/base/content/annotation_xml.rb +31 -0
- data/lib/mml/base/content/apply.rb +27 -0
- data/lib/mml/base/content/arith.rb +243 -0
- data/lib/mml/base/content/bind.rb +27 -0
- data/lib/mml/base/content/bvar.rb +20 -0
- data/lib/mml/base/content/calculus.rb +103 -0
- data/lib/mml/base/content/cbytes.rb +24 -0
- data/lib/mml/base/content/cerror.rb +24 -0
- data/lib/mml/base/content/ci.rb +77 -0
- data/lib/mml/base/content/cn.rb +33 -0
- data/lib/mml/base/content/condition.rb +20 -0
- data/lib/mml/base/content/constants.rb +173 -0
- data/lib/mml/base/content/cs.rb +22 -0
- data/lib/mml/base/content/csymbol.rb +79 -0
- data/lib/mml/base/content/declare.rb +34 -0
- data/lib/mml/base/content/degree.rb +20 -0
- data/lib/mml/base/content/elementary_functions.rb +309 -0
- data/lib/mml/base/content/fn.rb +25 -0
- data/lib/mml/base/content/functions.rb +85 -0
- data/lib/mml/base/content/interval.rb +24 -0
- data/lib/mml/base/content/inverse.rb +25 -0
- data/lib/mml/base/content/lambda.rb +20 -0
- data/lib/mml/base/content/linear_algebra.rb +122 -0
- data/lib/mml/base/content/logic.rb +93 -0
- data/lib/mml/base/content/otherwise.rb +20 -0
- data/lib/mml/base/content/piece.rb +20 -0
- data/lib/mml/base/content/piecewise.rb +20 -0
- data/lib/mml/base/content/relations.rb +113 -0
- data/lib/mml/base/content/reln.rb +19 -0
- data/lib/mml/base/content/semantics.rb +27 -0
- data/lib/mml/base/content/sep.rb +19 -0
- data/lib/mml/base/content/sets.rb +163 -0
- data/lib/mml/base/content/share.rb +22 -0
- data/lib/mml/base/content/statistics.rb +95 -0
- data/lib/mml/base/content/vector_calculus.rb +63 -0
- data/lib/mml/base/content_loader.rb +195 -0
- data/lib/mml/base/maction.rb +1 -0
- data/lib/mml/base/math.rb +47 -0
- data/lib/mml/base/menclose.rb +1 -1
- data/lib/mml/base/mfenced.rb +2 -2
- data/lib/mml/base/mglyph.rb +2 -2
- data/lib/mml/base/mi.rb +9 -6
- data/lib/mml/base/mlabeledtr.rb +2 -6
- data/lib/mml/base/mn.rb +3 -2
- data/lib/mml/base/mo.rb +3 -3
- data/lib/mml/base/mrow.rb +0 -2
- data/lib/mml/base/ms.rb +4 -6
- data/lib/mml/base/mscarries.rb +1 -1
- data/lib/mml/base/mspace.rb +0 -2
- data/lib/mml/base/mstyle.rb +4 -8
- data/lib/mml/base/mtable.rb +8 -0
- data/lib/mml/base/mtd.rb +6 -0
- data/lib/mml/base/mtext.rb +0 -2
- data/lib/mml/base/semantics.rb +4 -2
- data/lib/mml/base/universal_presentation_attributes.rb +46 -0
- data/lib/mml/base/v3_common.rb +16 -0
- data/lib/mml/base/v3_presentation_attributes.rb +15 -0
- data/lib/mml/base/v4_attributes.rb +4 -18
- data/lib/mml/base.rb +11 -0
- data/lib/mml/common_elements.rb +336 -0
- data/lib/mml/context_configuration.rb +29 -0
- data/lib/mml/v2/annotation.rb +9 -0
- data/lib/mml/v2/annotation_xml.rb +9 -0
- data/lib/mml/v2/apply.rb +9 -0
- data/lib/mml/v2/arith.rb +93 -0
- data/lib/mml/v2/bind.rb +9 -0
- data/lib/mml/v2/bvar.rb +9 -0
- data/lib/mml/v2/calculus.rb +33 -0
- data/lib/mml/v2/ci.rb +9 -0
- data/lib/mml/v2/cn.rb +9 -0
- data/lib/mml/v2/common_elements.rb +34 -0
- data/lib/mml/v2/condition.rb +9 -0
- data/lib/mml/v2/configuration.rb +13 -0
- data/lib/mml/v2/constants.rb +65 -0
- data/lib/mml/v2/csymbol.rb +9 -0
- data/lib/mml/v2/degree.rb +9 -0
- data/lib/mml/v2/elementary_functions.rb +121 -0
- data/lib/mml/v2/fn.rb +9 -0
- data/lib/mml/v2/functions.rb +29 -0
- data/lib/mml/v2/interval.rb +9 -0
- data/lib/mml/v2/inverse.rb +9 -0
- data/lib/mml/v2/lambda.rb +9 -0
- data/lib/mml/v2/linear_algebra.rb +41 -0
- data/lib/mml/v2/logic.rb +33 -0
- data/lib/mml/v2/maction.rb +9 -0
- data/lib/mml/v2/maligngroup.rb +9 -0
- data/lib/mml/v2/malignmark.rb +9 -0
- data/lib/mml/v2/math.rb +11 -0
- data/lib/mml/v2/menclose.rb +9 -0
- data/lib/mml/v2/merror.rb +9 -0
- data/lib/mml/v2/mfenced.rb +9 -0
- data/lib/mml/v2/mfrac.rb +9 -0
- data/lib/mml/v2/mfraction.rb +9 -0
- data/lib/mml/v2/mglyph.rb +9 -0
- data/lib/mml/v2/mi.rb +9 -0
- data/lib/mml/v2/mlabeledtr.rb +9 -0
- data/lib/mml/v2/mlongdiv.rb +9 -0
- data/lib/mml/v2/mmultiscripts.rb +9 -0
- data/lib/mml/v2/mn.rb +9 -0
- data/lib/mml/v2/mo.rb +10 -0
- data/lib/mml/v2/mover.rb +9 -0
- data/lib/mml/v2/mpadded.rb +9 -0
- data/lib/mml/v2/mphantom.rb +9 -0
- data/lib/mml/v2/mprescripts.rb +9 -0
- data/lib/mml/v2/mroot.rb +9 -0
- data/lib/mml/v2/mrow.rb +9 -0
- data/lib/mml/v2/ms.rb +9 -0
- data/lib/mml/v2/mscarries.rb +9 -0
- data/lib/mml/v2/mscarry.rb +9 -0
- data/lib/mml/v2/msgroup.rb +9 -0
- data/lib/mml/v2/msline.rb +9 -0
- data/lib/mml/v2/mspace.rb +9 -0
- data/lib/mml/v2/msqrt.rb +9 -0
- data/lib/mml/v2/msrow.rb +9 -0
- data/lib/mml/v2/mstack.rb +9 -0
- data/lib/mml/v2/mstyle.rb +10 -0
- data/lib/mml/v2/msub.rb +9 -0
- data/lib/mml/v2/msubsup.rb +9 -0
- data/lib/mml/v2/msup.rb +9 -0
- data/lib/mml/v2/mtable.rb +9 -0
- data/lib/mml/v2/mtd.rb +9 -0
- data/lib/mml/v2/mtext.rb +9 -0
- data/lib/mml/v2/mtr.rb +9 -0
- data/lib/mml/v2/munder.rb +9 -0
- data/lib/mml/v2/munderover.rb +9 -0
- data/lib/mml/v2/namespace.rb +7 -0
- data/lib/mml/v2/none.rb +9 -0
- data/lib/mml/v2/otherwise.rb +9 -0
- data/lib/mml/v2/piece.rb +9 -0
- data/lib/mml/v2/piecewise.rb +9 -0
- data/lib/mml/v2/relations.rb +41 -0
- data/lib/mml/v2/reln.rb +13 -0
- data/lib/mml/v2/semantics.rb +9 -0
- data/lib/mml/v2/sep.rb +9 -0
- data/lib/mml/v2/sets.rb +57 -0
- data/lib/mml/v2/statistics.rb +33 -0
- data/lib/mml/v2/vector_calculus.rb +21 -0
- data/lib/mml/v2.rb +311 -0
- data/lib/mml/v3/annotation.rb +10 -0
- data/lib/mml/v3/annotation_xml.rb +10 -0
- data/lib/mml/v3/apply.rb +10 -0
- data/lib/mml/v3/arith.rb +115 -0
- data/lib/mml/v3/bind.rb +10 -0
- data/lib/mml/v3/calculus.rb +40 -0
- data/lib/mml/v3/cbytes.rb +10 -0
- data/lib/mml/v3/cerror.rb +10 -0
- data/lib/mml/v3/ci.rb +10 -0
- data/lib/mml/v3/cn.rb +10 -0
- data/lib/mml/v3/common_elements.rb +34 -0
- data/lib/mml/v3/constants.rb +80 -0
- data/lib/mml/v3/constructs.rb +55 -0
- data/lib/mml/v3/cs.rb +10 -0
- data/lib/mml/v3/csymbol.rb +10 -0
- data/lib/mml/v3/deprecated_content.rb +29 -0
- data/lib/mml/v3/elementary_functions.rb +145 -0
- data/lib/mml/v3/functions.rb +35 -0
- data/lib/mml/v3/linear_algebra.rb +50 -0
- data/lib/mml/v3/logic.rb +40 -0
- data/lib/mml/v3/maction.rb +1 -1
- data/lib/mml/v3/math.rb +7 -1
- data/lib/mml/v3/mi.rb +1 -0
- data/lib/mml/v3/mn.rb +1 -0
- data/lib/mml/v3/mo.rb +1 -0
- data/lib/mml/v3/mrow.rb +1 -0
- data/lib/mml/v3/ms.rb +1 -0
- data/lib/mml/v3/mstyle.rb +1 -0
- data/lib/mml/v3/mtext.rb +1 -0
- data/lib/mml/v3/relations.rb +50 -0
- data/lib/mml/v3/sets.rb +70 -0
- data/lib/mml/v3/statistics.rb +40 -0
- data/lib/mml/v3/vector_calculus.rb +25 -0
- data/lib/mml/v3.rb +25 -0
- data/lib/mml/v4/a.rb +4 -3
- data/lib/mml/v4/annotation.rb +10 -0
- data/lib/mml/v4/annotation_xml.rb +14 -0
- data/lib/mml/v4/apply.rb +9 -0
- data/lib/mml/v4/arith.rb +93 -0
- data/lib/mml/v4/calculus.rb +25 -0
- data/lib/mml/v4/cbytes.rb +9 -0
- data/lib/mml/v4/cerror.rb +9 -0
- data/lib/mml/v4/ci.rb +9 -0
- data/lib/mml/v4/cn.rb +9 -0
- data/lib/mml/v4/common_elements.rb +33 -0
- data/lib/mml/v4/constants.rb +65 -0
- data/lib/mml/v4/constructs.rb +49 -0
- data/lib/mml/v4/cs.rb +9 -0
- data/lib/mml/v4/csymbol.rb +9 -0
- data/lib/mml/v4/deprecated_content.rb +25 -0
- data/lib/mml/v4/elementary_functions.rb +118 -0
- data/lib/mml/v4/factorof.rb +9 -0
- data/lib/mml/v4/functions.rb +30 -0
- data/lib/mml/v4/limit.rb +9 -0
- data/lib/mml/v4/linear_algebra.rb +41 -0
- data/lib/mml/v4/logic.rb +33 -0
- data/lib/mml/v4/maction.rb +1 -2
- data/lib/mml/v4/maligngroup.rb +0 -1
- data/lib/mml/v4/malignmark.rb +0 -1
- data/lib/mml/v4/math.rb +1 -1
- data/lib/mml/v4/menclose.rb +0 -1
- data/lib/mml/v4/merror.rb +0 -1
- data/lib/mml/v4/mfenced.rb +0 -1
- data/lib/mml/v4/mfrac.rb +0 -1
- data/lib/mml/v4/mfraction.rb +0 -1
- data/lib/mml/v4/mglyph.rb +0 -1
- data/lib/mml/v4/mi.rb +1 -1
- data/lib/mml/v4/mlabeledtr.rb +0 -1
- data/lib/mml/v4/mlongdiv.rb +0 -1
- data/lib/mml/v4/mmultiscripts.rb +0 -1
- data/lib/mml/v4/mn.rb +1 -1
- data/lib/mml/v4/mo.rb +1 -1
- data/lib/mml/v4/mover.rb +0 -1
- data/lib/mml/v4/mpadded.rb +0 -1
- data/lib/mml/v4/mphantom.rb +0 -1
- data/lib/mml/v4/mprescripts.rb +0 -1
- data/lib/mml/v4/mroot.rb +0 -1
- data/lib/mml/v4/mrow.rb +1 -1
- data/lib/mml/v4/ms.rb +1 -1
- data/lib/mml/v4/mscarries.rb +0 -1
- data/lib/mml/v4/mscarry.rb +0 -1
- data/lib/mml/v4/msgroup.rb +0 -1
- data/lib/mml/v4/msline.rb +0 -1
- data/lib/mml/v4/mspace.rb +0 -1
- data/lib/mml/v4/msqrt.rb +0 -1
- data/lib/mml/v4/msrow.rb +0 -1
- data/lib/mml/v4/mstack.rb +0 -1
- data/lib/mml/v4/mstyle.rb +1 -1
- data/lib/mml/v4/msub.rb +0 -1
- data/lib/mml/v4/msubsup.rb +0 -1
- data/lib/mml/v4/msup.rb +0 -1
- data/lib/mml/v4/mtable.rb +0 -1
- data/lib/mml/v4/mtd.rb +0 -1
- data/lib/mml/v4/mtext.rb +1 -1
- data/lib/mml/v4/mtr.rb +0 -1
- data/lib/mml/v4/munder.rb +0 -1
- data/lib/mml/v4/munderover.rb +0 -1
- data/lib/mml/v4/none.rb +0 -1
- data/lib/mml/v4/relations.rb +37 -0
- data/lib/mml/v4/semantics.rb +0 -1
- data/lib/mml/v4/sets.rb +57 -0
- data/lib/mml/v4/statistics.rb +33 -0
- data/lib/mml/v4/tendsto.rb +9 -0
- data/lib/mml/v4/vector_calculus.rb +21 -0
- data/lib/mml/v4.rb +421 -44
- data/lib/mml/version.rb +1 -1
- data/lib/mml/versioned_parser.rb +1 -1
- data/lib/mml.rb +3 -1
- data/reference-docs/mathml-source/pubtext/mathmlspec.dtd +150 -0
- data/reference-docs/mathml-source/pubtext/xmlspec.dtd +2649 -0
- data/reference-docs/mathml-source/readme.txt +40 -0
- data/reference-docs/mathml-source/run +296 -0
- data/reference-docs/mathml-source/style/html/html2xhtml.xsl +216 -0
- data/reference-docs/mathml-source/style/html/images.xsl +98 -0
- data/reference-docs/mathml-source/style/html/mml6.xsl +1156 -0
- data/reference-docs/mathml-source/style/html/mmldiff.xsl +566 -0
- data/reference-docs/mathml-source/style/html/mmlspec.xsl +2531 -0
- data/reference-docs/mathml-source/style/html/slices-common.xsl +312 -0
- data/reference-docs/mathml-source/style/html/slices.xsl +48 -0
- data/reference-docs/mathml-source/style/html/xmlspec.xsl +2542 -0
- data/reference-docs/mathml-source/style/pdf/mathmlspec.xsl +2510 -0
- data/reference-docs/mathml-source/xml/changes.xml +773 -0
- data/reference-docs/mathml-source/xml/character-set.xml +1011 -0
- data/reference-docs/mathml-source/xml/content-element-def.xml +6143 -0
- data/reference-docs/mathml-source/xml/content-markup.xml +8178 -0
- data/reference-docs/mathml-source/xml/contributors.xml +425 -0
- data/reference-docs/mathml-source/xml/dom-bindings.xml +20 -0
- data/reference-docs/mathml-source/xml/dom-intro.xml +114 -0
- data/reference-docs/mathml-source/xml/fundamentals.xml +1646 -0
- data/reference-docs/mathml-source/xml/glossary.xml +519 -0
- data/reference-docs/mathml-source/xml/interface.xml +1096 -0
- data/reference-docs/mathml-source/xml/introduction.xml +724 -0
- data/reference-docs/mathml-source/xml/mathml-css-sample.xml +304 -0
- data/reference-docs/mathml-source/xml/mathml-dom.xml +3813 -0
- data/reference-docs/mathml-source/xml/mathml-spec.xml +356 -0
- data/reference-docs/mathml-source/xml/mixing.xml +982 -0
- data/reference-docs/mathml-source/xml/operator-dict.xml +551 -0
- data/reference-docs/mathml-source/xml/parsing.xml +2565 -0
- data/reference-docs/mathml-source/xml/presentation-markup.xml +6834 -0
- data/reference-docs/mathml-source/xml/references.xml +323 -0
- data/reference-docs/mathml-source/xml/validation-grammar.xml +877 -0
- data/schemas/README.adoc +17 -0
- data/schemas/mathml2/common/common-attribs.xsd +41 -0
- data/schemas/mathml2/common/math.xsd +126 -0
- data/schemas/mathml2/common/xlink-href.xsd +20 -0
- data/schemas/mathml2/content/CVS/Entries +16 -0
- data/schemas/mathml2/content/CVS/Repository +1 -0
- data/schemas/mathml2/content/CVS/Root +1 -0
- data/schemas/mathml2/content/arith.xsd +90 -0
- data/schemas/mathml2/content/calculus.xsd +146 -0
- data/schemas/mathml2/content/common-attrib.xsd +30 -0
- data/schemas/mathml2/content/constants.xsd +83 -0
- data/schemas/mathml2/content/constructs.xsd +260 -0
- data/schemas/mathml2/content/elementary-functions.xsd +117 -0
- data/schemas/mathml2/content/functions.xsd +73 -0
- data/schemas/mathml2/content/linear-algebra.xsd +173 -0
- data/schemas/mathml2/content/logic.xsd +53 -0
- data/schemas/mathml2/content/relations.xsd +55 -0
- data/schemas/mathml2/content/semantics.xsd +85 -0
- data/schemas/mathml2/content/sets.xsd +236 -0
- data/schemas/mathml2/content/statistics.xsd +136 -0
- data/schemas/mathml2/content/tokens.xsd +120 -0
- data/schemas/mathml2/content/tokens.xsd.~1.3.~ +119 -0
- data/schemas/mathml2/content/vector-calculus.xsd +88 -0
- data/schemas/mathml2/mathml2.xsd +59 -0
- data/schemas/mathml2/presentation/action.xsd +44 -0
- data/schemas/mathml2/presentation/characters.xsd +37 -0
- data/schemas/mathml2/presentation/common-attribs.xsd +113 -0
- data/schemas/mathml2/presentation/common-types.xsd +103 -0
- data/schemas/mathml2/presentation/error.xsd +40 -0
- data/schemas/mathml2/presentation/layout.xsd +195 -0
- data/schemas/mathml2/presentation/scripts.xsd +186 -0
- data/schemas/mathml2/presentation/space.xsd +52 -0
- data/schemas/mathml2/presentation/style.xsd +69 -0
- data/schemas/mathml2/presentation/table.xsd +216 -0
- data/schemas/mathml2/presentation/tokens.xsd +124 -0
- data/schemas/mathml3/mathml3-common.xsd +99 -0
- data/schemas/mathml3/mathml3-content.xsd +684 -0
- data/schemas/mathml3/mathml3-presentation.xsd +2151 -0
- data/schemas/mathml3/mathml3-strict-content.xsd +186 -0
- data/schemas/mathml3/mathml3.xsd +9 -0
- data/schemas/mathml4/mathml4-content.rnc +382 -0
- data/schemas/mathml4/mathml4-core.rnc +361 -0
- data/schemas/mathml4/mathml4-presentation.rnc +358 -0
- data/schemas/mathml4/mathml4-strict-content.rnc +86 -0
- data/schemas/mathml4/mathml4.rnc +21 -0
- data/schemas/mathml4/mathml4.rnc.1 +21 -0
- data/schemas/mathml4/mathml4.rng +37 -0
- metadata +249 -2
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
|
|
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"
|
|
8
|
+
>
|
|
9
|
+
|
|
10
|
+
<xs:annotation>
|
|
11
|
+
<xs:documentation>
|
|
12
|
+
This is an XML Schema module for tables in MathML presentation.
|
|
13
|
+
Author: Stéphane Dalmas, INRIA.
|
|
14
|
+
</xs:documentation>
|
|
15
|
+
</xs:annotation>
|
|
16
|
+
|
|
17
|
+
<!-- Common attributes -->
|
|
18
|
+
|
|
19
|
+
<xs:attributeGroup name="Table-alignment.attrib">
|
|
20
|
+
<xs:attribute name="rowalign" default="baseline">
|
|
21
|
+
<xs:simpleType>
|
|
22
|
+
<xs:restriction base="xs:string">
|
|
23
|
+
<xs:pattern value="(top|bottom|center|baseline|axis)( top| bottom| center| baseline| axis)*"/>
|
|
24
|
+
</xs:restriction>
|
|
25
|
+
</xs:simpleType>
|
|
26
|
+
</xs:attribute>
|
|
27
|
+
<xs:attribute name="columnalign" default="center">
|
|
28
|
+
<xs:simpleType>
|
|
29
|
+
<xs:restriction base="xs:string">
|
|
30
|
+
<xs:pattern value="(left|center|right)( left| center| right)*"/>
|
|
31
|
+
</xs:restriction>
|
|
32
|
+
</xs:simpleType>
|
|
33
|
+
</xs:attribute>
|
|
34
|
+
<xs:attribute name="groupalign" type="xs:string"/>
|
|
35
|
+
</xs:attributeGroup>
|
|
36
|
+
|
|
37
|
+
<!-- "mtr" -->
|
|
38
|
+
|
|
39
|
+
<xs:attributeGroup name="mtr.attlist">
|
|
40
|
+
<xs:attributeGroup ref="Table-alignment.attrib"/>
|
|
41
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
42
|
+
</xs:attributeGroup>
|
|
43
|
+
|
|
44
|
+
<xs:group name="mtr.content">
|
|
45
|
+
<xs:sequence>
|
|
46
|
+
<xs:element ref="mtd"/>
|
|
47
|
+
</xs:sequence>
|
|
48
|
+
</xs:group>
|
|
49
|
+
|
|
50
|
+
<xs:complexType name="mtr.type">
|
|
51
|
+
<xs:group ref="mtr.content" minOccurs="1" maxOccurs="unbounded"/>
|
|
52
|
+
<xs:attributeGroup ref="mtr.attlist"/>
|
|
53
|
+
</xs:complexType>
|
|
54
|
+
|
|
55
|
+
<xs:element name="mtr" type="mtr.type"/>
|
|
56
|
+
|
|
57
|
+
<!-- "labeledtr" -->
|
|
58
|
+
|
|
59
|
+
<xs:attributeGroup name="mlabeledtr.attlist">
|
|
60
|
+
<xs:attributeGroup ref="Table-alignment.attrib"/>
|
|
61
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
62
|
+
</xs:attributeGroup>
|
|
63
|
+
|
|
64
|
+
<xs:group name="mlabeledtr.content">
|
|
65
|
+
<xs:sequence>
|
|
66
|
+
<xs:element ref="mtd"/>
|
|
67
|
+
</xs:sequence>
|
|
68
|
+
</xs:group>
|
|
69
|
+
|
|
70
|
+
<xs:complexType name="mlabeledtr.type">
|
|
71
|
+
<xs:group ref="mlabeledtr.content" minOccurs="1" maxOccurs="unbounded"/>
|
|
72
|
+
<xs:attributeGroup ref="mlabeledtr.attlist"/>
|
|
73
|
+
</xs:complexType>
|
|
74
|
+
|
|
75
|
+
<xs:element name="mlabeledtr" type="mlabeledtr.type"/>
|
|
76
|
+
|
|
77
|
+
<!-- "mtd" -->
|
|
78
|
+
|
|
79
|
+
<xs:attributeGroup name="mtd.attlist">
|
|
80
|
+
<xs:attributeGroup ref="Table-alignment.attrib"/>
|
|
81
|
+
<xs:attribute name="columnspan" type="xs:positiveInteger" default="1"/>
|
|
82
|
+
<xs:attribute name="rowspan" type="xs:positiveInteger" default="1"/>
|
|
83
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
84
|
+
</xs:attributeGroup>
|
|
85
|
+
|
|
86
|
+
<xs:group name="mtd.content">
|
|
87
|
+
<xs:sequence>
|
|
88
|
+
<xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="1"/>
|
|
89
|
+
</xs:sequence>
|
|
90
|
+
</xs:group>
|
|
91
|
+
|
|
92
|
+
<xs:complexType name="mtd.type">
|
|
93
|
+
<xs:group ref="mtd.content" minOccurs="1" maxOccurs="unbounded"/>
|
|
94
|
+
<xs:attributeGroup ref="mtd.attlist"/>
|
|
95
|
+
</xs:complexType>
|
|
96
|
+
|
|
97
|
+
<xs:element name="mtd" type="mtd.type"/>
|
|
98
|
+
|
|
99
|
+
<!-- "mtable" -->
|
|
100
|
+
|
|
101
|
+
<xs:attributeGroup name="mtable.attlist">
|
|
102
|
+
<xs:attributeGroup ref="Table-alignment.attrib"/>
|
|
103
|
+
<xs:attribute name="align" type="xs:string" default="axis"/>
|
|
104
|
+
<xs:attribute name="alignmentscope" default="true">
|
|
105
|
+
<xs:simpleType>
|
|
106
|
+
<xs:restriction base="xs:string">
|
|
107
|
+
<xs:pattern value="(true|false)( true| false)*"/>
|
|
108
|
+
</xs:restriction>
|
|
109
|
+
</xs:simpleType>
|
|
110
|
+
</xs:attribute>
|
|
111
|
+
<xs:attribute name="columnwidth" type="xs:string" default="auto"/>
|
|
112
|
+
<xs:attribute name="width" type="xs:string" default="auto"/>
|
|
113
|
+
<xs:attribute name="rowspacing" type="xs:string" default="1.0ex"/>
|
|
114
|
+
<xs:attribute name="columnspacing" type="xs:string" default="0.8em"/>
|
|
115
|
+
<xs:attribute name="rowlines" type="xs:string" default="none"/>
|
|
116
|
+
<xs:attribute name="columnlines" type="xs:string" default="none"/>
|
|
117
|
+
<xs:attribute name="frame" default="none">
|
|
118
|
+
<xs:simpleType>
|
|
119
|
+
<xs:restriction base="xs:string">
|
|
120
|
+
<xs:enumeration value="none"/>
|
|
121
|
+
<xs:enumeration value="solid"/>
|
|
122
|
+
<xs:enumeration value="dashed"/>
|
|
123
|
+
</xs:restriction>
|
|
124
|
+
</xs:simpleType>
|
|
125
|
+
</xs:attribute>
|
|
126
|
+
<xs:attribute name="framespacing" type="xs:string" default="0.4em 0.5ex"/>
|
|
127
|
+
<xs:attribute name="equalrows" type="xs:boolean" default="false"/>
|
|
128
|
+
<xs:attribute name="equalcolumns" type="xs:boolean" default="false"/>
|
|
129
|
+
<xs:attribute name="displaystyle" type="xs:boolean" default="false"/>
|
|
130
|
+
<xs:attribute name="side" default="right">
|
|
131
|
+
<xs:simpleType>
|
|
132
|
+
<xs:restriction base="xs:string">
|
|
133
|
+
<xs:enumeration value="left"/>
|
|
134
|
+
<xs:enumeration value="right"/>
|
|
135
|
+
<xs:enumeration value="leftoverlap"/>
|
|
136
|
+
<xs:enumeration value="rightoverlap"/>
|
|
137
|
+
</xs:restriction>
|
|
138
|
+
</xs:simpleType>
|
|
139
|
+
</xs:attribute>
|
|
140
|
+
<xs:attribute name="minlabelspacing" type="length-with-unit" default="0.8em"/>
|
|
141
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
142
|
+
</xs:attributeGroup>
|
|
143
|
+
|
|
144
|
+
<xs:group name="mtable.content">
|
|
145
|
+
<xs:choice>
|
|
146
|
+
<xs:element ref="mtr"/>
|
|
147
|
+
<xs:element ref="mlabeledtr"/>
|
|
148
|
+
</xs:choice>
|
|
149
|
+
</xs:group>
|
|
150
|
+
|
|
151
|
+
<xs:complexType name="mtable.type">
|
|
152
|
+
<xs:group ref="mtable.content" minOccurs="1" maxOccurs="unbounded"/>
|
|
153
|
+
<xs:attributeGroup ref="mtable.attlist"/>
|
|
154
|
+
</xs:complexType>
|
|
155
|
+
|
|
156
|
+
<xs:element name="mtable" type="mtable.type"/>
|
|
157
|
+
|
|
158
|
+
<!-- "maligngroup" -->
|
|
159
|
+
|
|
160
|
+
<xs:attributeGroup name="maligngroup.attlist">
|
|
161
|
+
<xs:attribute name="groupalign">
|
|
162
|
+
<xs:simpleType>
|
|
163
|
+
<xs:restriction base="xs:string">
|
|
164
|
+
<xs:enumeration value="left"/>
|
|
165
|
+
<xs:enumeration value="center"/>
|
|
166
|
+
<xs:enumeration value="right"/>
|
|
167
|
+
<xs:enumeration value="decimalpoint"/>
|
|
168
|
+
</xs:restriction>
|
|
169
|
+
</xs:simpleType>
|
|
170
|
+
</xs:attribute>
|
|
171
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
172
|
+
</xs:attributeGroup>
|
|
173
|
+
|
|
174
|
+
<xs:complexType name="maligngroup.type">
|
|
175
|
+
<xs:attributeGroup ref="maligngroup.attlist"/>
|
|
176
|
+
</xs:complexType>
|
|
177
|
+
|
|
178
|
+
<xs:element name="maligngroup" type="maligngroup.type"/>
|
|
179
|
+
|
|
180
|
+
<!-- "malignmark" -->
|
|
181
|
+
|
|
182
|
+
<xs:attributeGroup name="malignmark.attlist">
|
|
183
|
+
<xs:attribute name="edge" default="left">
|
|
184
|
+
<xs:simpleType>
|
|
185
|
+
<xs:restriction base="xs:string">
|
|
186
|
+
<xs:enumeration value="left"/>
|
|
187
|
+
<xs:enumeration value="right"/>
|
|
188
|
+
</xs:restriction>
|
|
189
|
+
</xs:simpleType>
|
|
190
|
+
</xs:attribute>
|
|
191
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
192
|
+
</xs:attributeGroup>
|
|
193
|
+
|
|
194
|
+
<xs:complexType name="malignmark.type">
|
|
195
|
+
<xs:attributeGroup ref="malignmark.attlist"/>
|
|
196
|
+
</xs:complexType>
|
|
197
|
+
|
|
198
|
+
<xs:element name="malignmark" type="malignmark.type"/>
|
|
199
|
+
|
|
200
|
+
<!-- The group of everything -->
|
|
201
|
+
|
|
202
|
+
<xs:group name="Presentation-table.class">
|
|
203
|
+
<xs:choice>
|
|
204
|
+
<xs:element ref="mtable"/>
|
|
205
|
+
<xs:element ref="maligngroup"/>
|
|
206
|
+
<xs:element ref="malignmark"/>
|
|
207
|
+
</xs:choice>
|
|
208
|
+
</xs:group>
|
|
209
|
+
|
|
210
|
+
</xs:schema>
|
|
211
|
+
<!--
|
|
212
|
+
Copyright û 2002 World Wide Web Consortium, (Massachusetts Institute
|
|
213
|
+
of Technology, Institut National de Recherche en Informatique et en
|
|
214
|
+
Automatique, Keio University). All Rights Reserved. See
|
|
215
|
+
http://www.w3.org/Consortium/Legal/.
|
|
216
|
+
-->
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
|
|
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"
|
|
8
|
+
>
|
|
9
|
+
|
|
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éphane Dalmas, INRIA.
|
|
15
|
+
</xs:documentation>
|
|
16
|
+
</xs:annotation>
|
|
17
|
+
|
|
18
|
+
<!-- The content of presentation token elements is either normal
|
|
19
|
+
characters, "mglyph" ones or alignment marks -->
|
|
20
|
+
|
|
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>
|
|
27
|
+
|
|
28
|
+
<!-- "mi" -->
|
|
29
|
+
|
|
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>
|
|
36
|
+
|
|
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>
|
|
41
|
+
|
|
42
|
+
<xs:element name="mi" type="mi.type"/>
|
|
43
|
+
|
|
44
|
+
<!-- "mo" -->
|
|
45
|
+
|
|
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>
|
|
51
|
+
|
|
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>
|
|
56
|
+
|
|
57
|
+
<xs:element name="mo" type="mo.type"/>
|
|
58
|
+
|
|
59
|
+
<!-- "mn" -->
|
|
60
|
+
|
|
61
|
+
<xs:attributeGroup name="mn.attlist">
|
|
62
|
+
<xs:attributeGroup ref="Token-style.attrib"/>
|
|
63
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
64
|
+
</xs:attributeGroup>
|
|
65
|
+
|
|
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>
|
|
70
|
+
|
|
71
|
+
<xs:element name="mn" type="mn.type"/>
|
|
72
|
+
|
|
73
|
+
<!-- "mtext" -->
|
|
74
|
+
|
|
75
|
+
<xs:attributeGroup name="mtext.attlist">
|
|
76
|
+
<xs:attributeGroup ref="Token-style.attrib"/>
|
|
77
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
78
|
+
</xs:attributeGroup>
|
|
79
|
+
|
|
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>
|
|
84
|
+
|
|
85
|
+
<xs:element name="mtext" type="mtext.type"/>
|
|
86
|
+
|
|
87
|
+
<!-- "ms" -->
|
|
88
|
+
|
|
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="""/>
|
|
93
|
+
<xs:attribute name="rquote" type="xs:string" default="""/>
|
|
94
|
+
<xs:attributeGroup ref="Token-style.attrib"/>
|
|
95
|
+
<xs:attributeGroup ref="Common.attrib"/>
|
|
96
|
+
</xs:attributeGroup>
|
|
97
|
+
|
|
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>
|
|
102
|
+
|
|
103
|
+
<xs:element name="ms" type="ms.type"/>
|
|
104
|
+
|
|
105
|
+
<!-- And the group of any token -->
|
|
106
|
+
|
|
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>
|
|
116
|
+
|
|
117
|
+
</xs:schema>
|
|
118
|
+
|
|
119
|
+
<!--
|
|
120
|
+
Copyright û 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/.
|
|
124
|
+
-->
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
3
|
+
xmlns:m="http://www.w3.org/1998/Math/MathML"
|
|
4
|
+
elementFormDefault="qualified"
|
|
5
|
+
targetNamespace="http://www.w3.org/1998/Math/MathML">
|
|
6
|
+
<xs:element name="math">
|
|
7
|
+
<xs:complexType>
|
|
8
|
+
<xs:group minOccurs="0" maxOccurs="unbounded" ref="m:MathExpression"/>
|
|
9
|
+
<xs:attributeGroup ref="m:math.attributes"/>
|
|
10
|
+
</xs:complexType>
|
|
11
|
+
</xs:element>
|
|
12
|
+
<xs:attributeGroup name="CommonDeprecatedAtt">
|
|
13
|
+
<xs:attribute name="other"/>
|
|
14
|
+
</xs:attributeGroup>
|
|
15
|
+
<xs:attributeGroup name="CommonAtt">
|
|
16
|
+
<xs:attribute name="id" type="xs:ID"/>
|
|
17
|
+
<xs:attribute name="xref"/>
|
|
18
|
+
<xs:attribute name="class" type="xs:NMTOKENS"/>
|
|
19
|
+
<xs:attribute name="style" type="xs:string"/>
|
|
20
|
+
<xs:attribute name="href" type="xs:anyURI"/>
|
|
21
|
+
<xs:attributeGroup ref="m:CommonDeprecatedAtt"/>
|
|
22
|
+
<xs:anyAttribute namespace="##other" processContents="skip"/>
|
|
23
|
+
</xs:attributeGroup>
|
|
24
|
+
<xs:attributeGroup name="math.deprecatedattributes">
|
|
25
|
+
<xs:attribute name="mode" type="xs:string"/>
|
|
26
|
+
<xs:attribute name="macros" type="xs:string"/>
|
|
27
|
+
</xs:attributeGroup>
|
|
28
|
+
<xs:attributeGroup name="name">
|
|
29
|
+
<xs:attribute name="name" use="required" type="xs:NCName"/>
|
|
30
|
+
</xs:attributeGroup>
|
|
31
|
+
<xs:attributeGroup name="cd">
|
|
32
|
+
<xs:attribute name="cd" use="required" type="xs:NCName"/>
|
|
33
|
+
</xs:attributeGroup>
|
|
34
|
+
<xs:attributeGroup name="src">
|
|
35
|
+
<xs:attribute name="src" type="xs:anyURI"/>
|
|
36
|
+
</xs:attributeGroup>
|
|
37
|
+
<xs:element name="annotation">
|
|
38
|
+
<xs:complexType mixed="true">
|
|
39
|
+
<xs:attributeGroup ref="m:annotation.attributes"/>
|
|
40
|
+
</xs:complexType>
|
|
41
|
+
</xs:element>
|
|
42
|
+
<xs:complexType name="annotation-xml.model"><!--content model altered for libxml (annotation-xml)--><xs:sequence>
|
|
43
|
+
<xs:any processContents="lax"/>
|
|
44
|
+
</xs:sequence>
|
|
45
|
+
</xs:complexType>
|
|
46
|
+
<xs:group name="anyElement">
|
|
47
|
+
<xs:choice>
|
|
48
|
+
<xs:any namespace="##other" processContents="skip"/>
|
|
49
|
+
<xs:any namespace="##local" processContents="skip"/>
|
|
50
|
+
</xs:choice>
|
|
51
|
+
</xs:group>
|
|
52
|
+
<xs:element name="annotation-xml">
|
|
53
|
+
<xs:complexType>
|
|
54
|
+
<xs:complexContent>
|
|
55
|
+
<xs:extension base="m:annotation-xml.model">
|
|
56
|
+
<xs:attributeGroup ref="m:annotation.attributes"/>
|
|
57
|
+
</xs:extension>
|
|
58
|
+
</xs:complexContent>
|
|
59
|
+
</xs:complexType>
|
|
60
|
+
</xs:element>
|
|
61
|
+
<xs:attributeGroup name="annotation.attributes">
|
|
62
|
+
<xs:attributeGroup ref="m:CommonAtt"/>
|
|
63
|
+
<xs:attribute name="cd" type="xs:NCName"/>
|
|
64
|
+
<xs:attribute name="name" type="xs:NCName"/>
|
|
65
|
+
<xs:attributeGroup ref="m:DefEncAtt"/>
|
|
66
|
+
<xs:attributeGroup ref="m:src"/>
|
|
67
|
+
</xs:attributeGroup>
|
|
68
|
+
<xs:attributeGroup name="DefEncAtt">
|
|
69
|
+
<xs:attribute name="encoding" type="xs:string"/>
|
|
70
|
+
<xs:attribute name="definitionURL" type="xs:anyURI"/>
|
|
71
|
+
</xs:attributeGroup>
|
|
72
|
+
<xs:group name="semantics">
|
|
73
|
+
<xs:sequence>
|
|
74
|
+
<xs:element name="semantics">
|
|
75
|
+
<xs:complexType>
|
|
76
|
+
<xs:sequence>
|
|
77
|
+
<xs:group ref="m:MathExpression"/>
|
|
78
|
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
|
79
|
+
<xs:element ref="m:annotation"/>
|
|
80
|
+
<xs:element ref="m:annotation-xml"/>
|
|
81
|
+
</xs:choice>
|
|
82
|
+
</xs:sequence>
|
|
83
|
+
<xs:attributeGroup ref="m:semantics.attributes"/>
|
|
84
|
+
</xs:complexType>
|
|
85
|
+
</xs:element>
|
|
86
|
+
</xs:sequence>
|
|
87
|
+
</xs:group>
|
|
88
|
+
<xs:attributeGroup name="semantics.attributes">
|
|
89
|
+
<xs:attributeGroup ref="m:CommonAtt"/>
|
|
90
|
+
<xs:attributeGroup ref="m:DefEncAtt"/>
|
|
91
|
+
<xs:attribute name="cd" type="xs:NCName"/>
|
|
92
|
+
<xs:attribute name="name" type="xs:NCName"/>
|
|
93
|
+
</xs:attributeGroup>
|
|
94
|
+
<xs:simpleType name="length">
|
|
95
|
+
<xs:restriction base="xs:string">
|
|
96
|
+
<xs:pattern value="\s*((-?[0-9]*([0-9]\.?|\.[0-9])[0-9]*(e[mx]|in|cm|mm|p[xtc]|%)?)|(negative)?((very){0,2}thi(n|ck)|medium)mathspace)\s*"/>
|
|
97
|
+
</xs:restriction>
|
|
98
|
+
</xs:simpleType>
|
|
99
|
+
</xs:schema>
|