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.
Files changed (336) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +9 -0
  3. data/.rubocop.yml +4 -0
  4. data/.rubocop_todo.yml +83 -18
  5. data/Gemfile +0 -2
  6. data/README.adoc +176 -47
  7. data/Rakefile +16 -1
  8. data/lib/mml/base/common_attributes.rb +44 -0
  9. data/lib/mml/base/content/annotation.rb +28 -0
  10. data/lib/mml/base/content/annotation_xml.rb +31 -0
  11. data/lib/mml/base/content/apply.rb +27 -0
  12. data/lib/mml/base/content/arith.rb +243 -0
  13. data/lib/mml/base/content/bind.rb +27 -0
  14. data/lib/mml/base/content/bvar.rb +20 -0
  15. data/lib/mml/base/content/calculus.rb +103 -0
  16. data/lib/mml/base/content/cbytes.rb +24 -0
  17. data/lib/mml/base/content/cerror.rb +24 -0
  18. data/lib/mml/base/content/ci.rb +77 -0
  19. data/lib/mml/base/content/cn.rb +33 -0
  20. data/lib/mml/base/content/condition.rb +20 -0
  21. data/lib/mml/base/content/constants.rb +173 -0
  22. data/lib/mml/base/content/cs.rb +22 -0
  23. data/lib/mml/base/content/csymbol.rb +79 -0
  24. data/lib/mml/base/content/declare.rb +34 -0
  25. data/lib/mml/base/content/degree.rb +20 -0
  26. data/lib/mml/base/content/elementary_functions.rb +309 -0
  27. data/lib/mml/base/content/fn.rb +25 -0
  28. data/lib/mml/base/content/functions.rb +85 -0
  29. data/lib/mml/base/content/interval.rb +24 -0
  30. data/lib/mml/base/content/inverse.rb +25 -0
  31. data/lib/mml/base/content/lambda.rb +20 -0
  32. data/lib/mml/base/content/linear_algebra.rb +122 -0
  33. data/lib/mml/base/content/logic.rb +93 -0
  34. data/lib/mml/base/content/otherwise.rb +20 -0
  35. data/lib/mml/base/content/piece.rb +20 -0
  36. data/lib/mml/base/content/piecewise.rb +20 -0
  37. data/lib/mml/base/content/relations.rb +113 -0
  38. data/lib/mml/base/content/reln.rb +19 -0
  39. data/lib/mml/base/content/semantics.rb +27 -0
  40. data/lib/mml/base/content/sep.rb +19 -0
  41. data/lib/mml/base/content/sets.rb +163 -0
  42. data/lib/mml/base/content/share.rb +22 -0
  43. data/lib/mml/base/content/statistics.rb +95 -0
  44. data/lib/mml/base/content/vector_calculus.rb +63 -0
  45. data/lib/mml/base/content_loader.rb +195 -0
  46. data/lib/mml/base/maction.rb +1 -0
  47. data/lib/mml/base/math.rb +47 -0
  48. data/lib/mml/base/menclose.rb +1 -1
  49. data/lib/mml/base/mfenced.rb +2 -2
  50. data/lib/mml/base/mglyph.rb +2 -2
  51. data/lib/mml/base/mi.rb +9 -6
  52. data/lib/mml/base/mlabeledtr.rb +2 -6
  53. data/lib/mml/base/mn.rb +3 -2
  54. data/lib/mml/base/mo.rb +3 -3
  55. data/lib/mml/base/mrow.rb +0 -2
  56. data/lib/mml/base/ms.rb +4 -6
  57. data/lib/mml/base/mscarries.rb +1 -1
  58. data/lib/mml/base/mspace.rb +0 -2
  59. data/lib/mml/base/mstyle.rb +4 -8
  60. data/lib/mml/base/mtable.rb +8 -0
  61. data/lib/mml/base/mtd.rb +6 -0
  62. data/lib/mml/base/mtext.rb +0 -2
  63. data/lib/mml/base/semantics.rb +4 -2
  64. data/lib/mml/base/universal_presentation_attributes.rb +46 -0
  65. data/lib/mml/base/v3_common.rb +16 -0
  66. data/lib/mml/base/v3_presentation_attributes.rb +15 -0
  67. data/lib/mml/base/v4_attributes.rb +4 -18
  68. data/lib/mml/base.rb +11 -0
  69. data/lib/mml/common_elements.rb +336 -0
  70. data/lib/mml/context_configuration.rb +29 -0
  71. data/lib/mml/v2/annotation.rb +9 -0
  72. data/lib/mml/v2/annotation_xml.rb +9 -0
  73. data/lib/mml/v2/apply.rb +9 -0
  74. data/lib/mml/v2/arith.rb +93 -0
  75. data/lib/mml/v2/bind.rb +9 -0
  76. data/lib/mml/v2/bvar.rb +9 -0
  77. data/lib/mml/v2/calculus.rb +33 -0
  78. data/lib/mml/v2/ci.rb +9 -0
  79. data/lib/mml/v2/cn.rb +9 -0
  80. data/lib/mml/v2/common_elements.rb +34 -0
  81. data/lib/mml/v2/condition.rb +9 -0
  82. data/lib/mml/v2/configuration.rb +13 -0
  83. data/lib/mml/v2/constants.rb +65 -0
  84. data/lib/mml/v2/csymbol.rb +9 -0
  85. data/lib/mml/v2/degree.rb +9 -0
  86. data/lib/mml/v2/elementary_functions.rb +121 -0
  87. data/lib/mml/v2/fn.rb +9 -0
  88. data/lib/mml/v2/functions.rb +29 -0
  89. data/lib/mml/v2/interval.rb +9 -0
  90. data/lib/mml/v2/inverse.rb +9 -0
  91. data/lib/mml/v2/lambda.rb +9 -0
  92. data/lib/mml/v2/linear_algebra.rb +41 -0
  93. data/lib/mml/v2/logic.rb +33 -0
  94. data/lib/mml/v2/maction.rb +9 -0
  95. data/lib/mml/v2/maligngroup.rb +9 -0
  96. data/lib/mml/v2/malignmark.rb +9 -0
  97. data/lib/mml/v2/math.rb +11 -0
  98. data/lib/mml/v2/menclose.rb +9 -0
  99. data/lib/mml/v2/merror.rb +9 -0
  100. data/lib/mml/v2/mfenced.rb +9 -0
  101. data/lib/mml/v2/mfrac.rb +9 -0
  102. data/lib/mml/v2/mfraction.rb +9 -0
  103. data/lib/mml/v2/mglyph.rb +9 -0
  104. data/lib/mml/v2/mi.rb +9 -0
  105. data/lib/mml/v2/mlabeledtr.rb +9 -0
  106. data/lib/mml/v2/mlongdiv.rb +9 -0
  107. data/lib/mml/v2/mmultiscripts.rb +9 -0
  108. data/lib/mml/v2/mn.rb +9 -0
  109. data/lib/mml/v2/mo.rb +10 -0
  110. data/lib/mml/v2/mover.rb +9 -0
  111. data/lib/mml/v2/mpadded.rb +9 -0
  112. data/lib/mml/v2/mphantom.rb +9 -0
  113. data/lib/mml/v2/mprescripts.rb +9 -0
  114. data/lib/mml/v2/mroot.rb +9 -0
  115. data/lib/mml/v2/mrow.rb +9 -0
  116. data/lib/mml/v2/ms.rb +9 -0
  117. data/lib/mml/v2/mscarries.rb +9 -0
  118. data/lib/mml/v2/mscarry.rb +9 -0
  119. data/lib/mml/v2/msgroup.rb +9 -0
  120. data/lib/mml/v2/msline.rb +9 -0
  121. data/lib/mml/v2/mspace.rb +9 -0
  122. data/lib/mml/v2/msqrt.rb +9 -0
  123. data/lib/mml/v2/msrow.rb +9 -0
  124. data/lib/mml/v2/mstack.rb +9 -0
  125. data/lib/mml/v2/mstyle.rb +10 -0
  126. data/lib/mml/v2/msub.rb +9 -0
  127. data/lib/mml/v2/msubsup.rb +9 -0
  128. data/lib/mml/v2/msup.rb +9 -0
  129. data/lib/mml/v2/mtable.rb +9 -0
  130. data/lib/mml/v2/mtd.rb +9 -0
  131. data/lib/mml/v2/mtext.rb +9 -0
  132. data/lib/mml/v2/mtr.rb +9 -0
  133. data/lib/mml/v2/munder.rb +9 -0
  134. data/lib/mml/v2/munderover.rb +9 -0
  135. data/lib/mml/v2/namespace.rb +7 -0
  136. data/lib/mml/v2/none.rb +9 -0
  137. data/lib/mml/v2/otherwise.rb +9 -0
  138. data/lib/mml/v2/piece.rb +9 -0
  139. data/lib/mml/v2/piecewise.rb +9 -0
  140. data/lib/mml/v2/relations.rb +41 -0
  141. data/lib/mml/v2/reln.rb +13 -0
  142. data/lib/mml/v2/semantics.rb +9 -0
  143. data/lib/mml/v2/sep.rb +9 -0
  144. data/lib/mml/v2/sets.rb +57 -0
  145. data/lib/mml/v2/statistics.rb +33 -0
  146. data/lib/mml/v2/vector_calculus.rb +21 -0
  147. data/lib/mml/v2.rb +311 -0
  148. data/lib/mml/v3/annotation.rb +10 -0
  149. data/lib/mml/v3/annotation_xml.rb +10 -0
  150. data/lib/mml/v3/apply.rb +10 -0
  151. data/lib/mml/v3/arith.rb +115 -0
  152. data/lib/mml/v3/bind.rb +10 -0
  153. data/lib/mml/v3/calculus.rb +40 -0
  154. data/lib/mml/v3/cbytes.rb +10 -0
  155. data/lib/mml/v3/cerror.rb +10 -0
  156. data/lib/mml/v3/ci.rb +10 -0
  157. data/lib/mml/v3/cn.rb +10 -0
  158. data/lib/mml/v3/common_elements.rb +34 -0
  159. data/lib/mml/v3/constants.rb +80 -0
  160. data/lib/mml/v3/constructs.rb +55 -0
  161. data/lib/mml/v3/cs.rb +10 -0
  162. data/lib/mml/v3/csymbol.rb +10 -0
  163. data/lib/mml/v3/deprecated_content.rb +29 -0
  164. data/lib/mml/v3/elementary_functions.rb +145 -0
  165. data/lib/mml/v3/functions.rb +35 -0
  166. data/lib/mml/v3/linear_algebra.rb +50 -0
  167. data/lib/mml/v3/logic.rb +40 -0
  168. data/lib/mml/v3/maction.rb +1 -1
  169. data/lib/mml/v3/math.rb +7 -1
  170. data/lib/mml/v3/mi.rb +1 -0
  171. data/lib/mml/v3/mn.rb +1 -0
  172. data/lib/mml/v3/mo.rb +1 -0
  173. data/lib/mml/v3/mrow.rb +1 -0
  174. data/lib/mml/v3/ms.rb +1 -0
  175. data/lib/mml/v3/mstyle.rb +1 -0
  176. data/lib/mml/v3/mtext.rb +1 -0
  177. data/lib/mml/v3/relations.rb +50 -0
  178. data/lib/mml/v3/sets.rb +70 -0
  179. data/lib/mml/v3/statistics.rb +40 -0
  180. data/lib/mml/v3/vector_calculus.rb +25 -0
  181. data/lib/mml/v3.rb +25 -0
  182. data/lib/mml/v4/a.rb +4 -3
  183. data/lib/mml/v4/annotation.rb +10 -0
  184. data/lib/mml/v4/annotation_xml.rb +14 -0
  185. data/lib/mml/v4/apply.rb +9 -0
  186. data/lib/mml/v4/arith.rb +93 -0
  187. data/lib/mml/v4/calculus.rb +25 -0
  188. data/lib/mml/v4/cbytes.rb +9 -0
  189. data/lib/mml/v4/cerror.rb +9 -0
  190. data/lib/mml/v4/ci.rb +9 -0
  191. data/lib/mml/v4/cn.rb +9 -0
  192. data/lib/mml/v4/common_elements.rb +33 -0
  193. data/lib/mml/v4/constants.rb +65 -0
  194. data/lib/mml/v4/constructs.rb +49 -0
  195. data/lib/mml/v4/cs.rb +9 -0
  196. data/lib/mml/v4/csymbol.rb +9 -0
  197. data/lib/mml/v4/deprecated_content.rb +25 -0
  198. data/lib/mml/v4/elementary_functions.rb +118 -0
  199. data/lib/mml/v4/factorof.rb +9 -0
  200. data/lib/mml/v4/functions.rb +30 -0
  201. data/lib/mml/v4/limit.rb +9 -0
  202. data/lib/mml/v4/linear_algebra.rb +41 -0
  203. data/lib/mml/v4/logic.rb +33 -0
  204. data/lib/mml/v4/maction.rb +1 -2
  205. data/lib/mml/v4/maligngroup.rb +0 -1
  206. data/lib/mml/v4/malignmark.rb +0 -1
  207. data/lib/mml/v4/math.rb +1 -1
  208. data/lib/mml/v4/menclose.rb +0 -1
  209. data/lib/mml/v4/merror.rb +0 -1
  210. data/lib/mml/v4/mfenced.rb +0 -1
  211. data/lib/mml/v4/mfrac.rb +0 -1
  212. data/lib/mml/v4/mfraction.rb +0 -1
  213. data/lib/mml/v4/mglyph.rb +0 -1
  214. data/lib/mml/v4/mi.rb +1 -1
  215. data/lib/mml/v4/mlabeledtr.rb +0 -1
  216. data/lib/mml/v4/mlongdiv.rb +0 -1
  217. data/lib/mml/v4/mmultiscripts.rb +0 -1
  218. data/lib/mml/v4/mn.rb +1 -1
  219. data/lib/mml/v4/mo.rb +1 -1
  220. data/lib/mml/v4/mover.rb +0 -1
  221. data/lib/mml/v4/mpadded.rb +0 -1
  222. data/lib/mml/v4/mphantom.rb +0 -1
  223. data/lib/mml/v4/mprescripts.rb +0 -1
  224. data/lib/mml/v4/mroot.rb +0 -1
  225. data/lib/mml/v4/mrow.rb +1 -1
  226. data/lib/mml/v4/ms.rb +1 -1
  227. data/lib/mml/v4/mscarries.rb +0 -1
  228. data/lib/mml/v4/mscarry.rb +0 -1
  229. data/lib/mml/v4/msgroup.rb +0 -1
  230. data/lib/mml/v4/msline.rb +0 -1
  231. data/lib/mml/v4/mspace.rb +0 -1
  232. data/lib/mml/v4/msqrt.rb +0 -1
  233. data/lib/mml/v4/msrow.rb +0 -1
  234. data/lib/mml/v4/mstack.rb +0 -1
  235. data/lib/mml/v4/mstyle.rb +1 -1
  236. data/lib/mml/v4/msub.rb +0 -1
  237. data/lib/mml/v4/msubsup.rb +0 -1
  238. data/lib/mml/v4/msup.rb +0 -1
  239. data/lib/mml/v4/mtable.rb +0 -1
  240. data/lib/mml/v4/mtd.rb +0 -1
  241. data/lib/mml/v4/mtext.rb +1 -1
  242. data/lib/mml/v4/mtr.rb +0 -1
  243. data/lib/mml/v4/munder.rb +0 -1
  244. data/lib/mml/v4/munderover.rb +0 -1
  245. data/lib/mml/v4/none.rb +0 -1
  246. data/lib/mml/v4/relations.rb +37 -0
  247. data/lib/mml/v4/semantics.rb +0 -1
  248. data/lib/mml/v4/sets.rb +57 -0
  249. data/lib/mml/v4/statistics.rb +33 -0
  250. data/lib/mml/v4/tendsto.rb +9 -0
  251. data/lib/mml/v4/vector_calculus.rb +21 -0
  252. data/lib/mml/v4.rb +421 -44
  253. data/lib/mml/version.rb +1 -1
  254. data/lib/mml/versioned_parser.rb +1 -1
  255. data/lib/mml.rb +3 -1
  256. data/reference-docs/mathml-source/pubtext/mathmlspec.dtd +150 -0
  257. data/reference-docs/mathml-source/pubtext/xmlspec.dtd +2649 -0
  258. data/reference-docs/mathml-source/readme.txt +40 -0
  259. data/reference-docs/mathml-source/run +296 -0
  260. data/reference-docs/mathml-source/style/html/html2xhtml.xsl +216 -0
  261. data/reference-docs/mathml-source/style/html/images.xsl +98 -0
  262. data/reference-docs/mathml-source/style/html/mml6.xsl +1156 -0
  263. data/reference-docs/mathml-source/style/html/mmldiff.xsl +566 -0
  264. data/reference-docs/mathml-source/style/html/mmlspec.xsl +2531 -0
  265. data/reference-docs/mathml-source/style/html/slices-common.xsl +312 -0
  266. data/reference-docs/mathml-source/style/html/slices.xsl +48 -0
  267. data/reference-docs/mathml-source/style/html/xmlspec.xsl +2542 -0
  268. data/reference-docs/mathml-source/style/pdf/mathmlspec.xsl +2510 -0
  269. data/reference-docs/mathml-source/xml/changes.xml +773 -0
  270. data/reference-docs/mathml-source/xml/character-set.xml +1011 -0
  271. data/reference-docs/mathml-source/xml/content-element-def.xml +6143 -0
  272. data/reference-docs/mathml-source/xml/content-markup.xml +8178 -0
  273. data/reference-docs/mathml-source/xml/contributors.xml +425 -0
  274. data/reference-docs/mathml-source/xml/dom-bindings.xml +20 -0
  275. data/reference-docs/mathml-source/xml/dom-intro.xml +114 -0
  276. data/reference-docs/mathml-source/xml/fundamentals.xml +1646 -0
  277. data/reference-docs/mathml-source/xml/glossary.xml +519 -0
  278. data/reference-docs/mathml-source/xml/interface.xml +1096 -0
  279. data/reference-docs/mathml-source/xml/introduction.xml +724 -0
  280. data/reference-docs/mathml-source/xml/mathml-css-sample.xml +304 -0
  281. data/reference-docs/mathml-source/xml/mathml-dom.xml +3813 -0
  282. data/reference-docs/mathml-source/xml/mathml-spec.xml +356 -0
  283. data/reference-docs/mathml-source/xml/mixing.xml +982 -0
  284. data/reference-docs/mathml-source/xml/operator-dict.xml +551 -0
  285. data/reference-docs/mathml-source/xml/parsing.xml +2565 -0
  286. data/reference-docs/mathml-source/xml/presentation-markup.xml +6834 -0
  287. data/reference-docs/mathml-source/xml/references.xml +323 -0
  288. data/reference-docs/mathml-source/xml/validation-grammar.xml +877 -0
  289. data/schemas/README.adoc +17 -0
  290. data/schemas/mathml2/common/common-attribs.xsd +41 -0
  291. data/schemas/mathml2/common/math.xsd +126 -0
  292. data/schemas/mathml2/common/xlink-href.xsd +20 -0
  293. data/schemas/mathml2/content/CVS/Entries +16 -0
  294. data/schemas/mathml2/content/CVS/Repository +1 -0
  295. data/schemas/mathml2/content/CVS/Root +1 -0
  296. data/schemas/mathml2/content/arith.xsd +90 -0
  297. data/schemas/mathml2/content/calculus.xsd +146 -0
  298. data/schemas/mathml2/content/common-attrib.xsd +30 -0
  299. data/schemas/mathml2/content/constants.xsd +83 -0
  300. data/schemas/mathml2/content/constructs.xsd +260 -0
  301. data/schemas/mathml2/content/elementary-functions.xsd +117 -0
  302. data/schemas/mathml2/content/functions.xsd +73 -0
  303. data/schemas/mathml2/content/linear-algebra.xsd +173 -0
  304. data/schemas/mathml2/content/logic.xsd +53 -0
  305. data/schemas/mathml2/content/relations.xsd +55 -0
  306. data/schemas/mathml2/content/semantics.xsd +85 -0
  307. data/schemas/mathml2/content/sets.xsd +236 -0
  308. data/schemas/mathml2/content/statistics.xsd +136 -0
  309. data/schemas/mathml2/content/tokens.xsd +120 -0
  310. data/schemas/mathml2/content/tokens.xsd.~1.3.~ +119 -0
  311. data/schemas/mathml2/content/vector-calculus.xsd +88 -0
  312. data/schemas/mathml2/mathml2.xsd +59 -0
  313. data/schemas/mathml2/presentation/action.xsd +44 -0
  314. data/schemas/mathml2/presentation/characters.xsd +37 -0
  315. data/schemas/mathml2/presentation/common-attribs.xsd +113 -0
  316. data/schemas/mathml2/presentation/common-types.xsd +103 -0
  317. data/schemas/mathml2/presentation/error.xsd +40 -0
  318. data/schemas/mathml2/presentation/layout.xsd +195 -0
  319. data/schemas/mathml2/presentation/scripts.xsd +186 -0
  320. data/schemas/mathml2/presentation/space.xsd +52 -0
  321. data/schemas/mathml2/presentation/style.xsd +69 -0
  322. data/schemas/mathml2/presentation/table.xsd +216 -0
  323. data/schemas/mathml2/presentation/tokens.xsd +124 -0
  324. data/schemas/mathml3/mathml3-common.xsd +99 -0
  325. data/schemas/mathml3/mathml3-content.xsd +684 -0
  326. data/schemas/mathml3/mathml3-presentation.xsd +2151 -0
  327. data/schemas/mathml3/mathml3-strict-content.xsd +186 -0
  328. data/schemas/mathml3/mathml3.xsd +9 -0
  329. data/schemas/mathml4/mathml4-content.rnc +382 -0
  330. data/schemas/mathml4/mathml4-core.rnc +361 -0
  331. data/schemas/mathml4/mathml4-presentation.rnc +358 -0
  332. data/schemas/mathml4/mathml4-strict-content.rnc +86 -0
  333. data/schemas/mathml4/mathml4.rnc +21 -0
  334. data/schemas/mathml4/mathml4.rnc.1 +21 -0
  335. data/schemas/mathml4/mathml4.rng +37 -0
  336. metadata +249 -2
@@ -0,0 +1,119 @@
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
+ content part of MathML.
14
+ Author: St&#233;phane Dalmas, INRIA.
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+
18
+ <!-- common content for the token elements -->
19
+
20
+ <xs:group name="Content-token.content">
21
+ <xs:sequence>
22
+ <xs:group ref="Presentation-expr.class"/>
23
+ </xs:sequence>
24
+ </xs:group>
25
+
26
+ <!-- "cn" -->
27
+
28
+ <xs:attributeGroup name="cn.attlist">
29
+ <xs:attribute name="base">
30
+ <xs:simpleType>
31
+ <xs:restriction base="xs:positiveInteger">
32
+ <xs:minInclusive value="2"/>
33
+ <xs:maxInclusive value="36"/>
34
+ </xs:restriction>
35
+ </xs:simpleType>
36
+ </xs:attribute>
37
+ <xs:attribute name="type">
38
+ <xs:simpleType>
39
+ <xs:restriction base="xs:NMTOKEN">
40
+ <xs:enumeration value="integer"/>
41
+ <xs:enumeration value="rational"/>
42
+ <xs:enumeration value="real"/>
43
+ <xs:enumeration value="complex-cartesian"/>
44
+ <xs:enumeration value="complex-polar"/>
45
+ <xs:enumeration value="constant"/>
46
+ </xs:restriction>
47
+ </xs:simpleType>
48
+ </xs:attribute>
49
+ <xs:attributeGroup ref="Definition.attrib"/>
50
+ <xs:attributeGroup ref="Common.attrib"/>
51
+ </xs:attributeGroup>
52
+
53
+ <!-- the content of "cn" may have <sep> elements in it -->
54
+
55
+ <xs:complexType name="sep.type">
56
+ </xs:complexType>
57
+
58
+ <xs:element name="sep" type="sep.type"/>
59
+
60
+ <xs:group name="cn.content">
61
+ <xs:choice>
62
+ <xs:group ref="Presentation-expr.class"/>
63
+ <xs:element ref="sep"/>
64
+ </xs:choice>
65
+ </xs:group>
66
+
67
+ <xs:complexType name="cn.type" mixed="true">
68
+ <xs:group ref="cn.content" minOccurs="0" maxOccurs="unbounded"/>
69
+ <xs:attributeGroup ref="cn.attlist"/>
70
+ </xs:complexType>
71
+
72
+ <xs:element name="cn" type="cn.type"/>
73
+
74
+ <!-- "ci" -->
75
+
76
+ <xs:attributeGroup name="ci.attlist">
77
+ <xs:attribute name="type" type="xs:string"/>
78
+ <xs:attributeGroup ref="Definition.attrib"/>
79
+ <xs:attributeGroup ref="Common.attrib"/>
80
+ </xs:attributeGroup>
81
+
82
+ <xs:complexType name="ci.type" mixed="true">
83
+ <xs:group ref="Content-token.content" minOccurs="0"/>
84
+ <xs:attributeGroup ref="ci.attlist"/>
85
+ </xs:complexType>
86
+
87
+ <xs:element name="ci" type="ci.type"/>
88
+
89
+ <!-- "csymbol" -->
90
+
91
+ <xs:attributeGroup name="csymbol.attlist">
92
+ <xs:attributeGroup ref="Definition.attrib"/>
93
+ <xs:attributeGroup ref="Common.attrib"/>
94
+ </xs:attributeGroup>
95
+
96
+ <xs:complexType name="csymbol.type" mixed="true">
97
+ <xs:group ref="Content-token.content" minOccurs="0"/>
98
+ <xs:attributeGroup ref="csymbol.attlist"/>
99
+ </xs:complexType>
100
+
101
+ <xs:element name="csymbol" type="csymbol.type"/>
102
+
103
+ <!-- And the group of everything -->
104
+
105
+ <xs:group name="Content-tokens.class">
106
+ <xs:choice>
107
+ <xs:element ref="cn"/>
108
+ <xs:element ref="ci"/>
109
+ <xs:element ref="csymbol"/>
110
+ </xs:choice>
111
+ </xs:group>
112
+
113
+ </xs:schema>
114
+ <!--
115
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
116
+ of Technology, Institut National de Recherche en Informatique et en
117
+ Automatique, Keio University). All Rights Reserved. See
118
+ http://www.w3.org/Consortium/Legal/.
119
+ -->
@@ -0,0 +1,88 @@
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 the vector calculs operators of content
13
+ MathML.
14
+ Author: St&#233;phane Dalmas, INRIA.
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+
18
+ <!-- "divergence" -->
19
+
20
+ <xs:attributeGroup name="divergence.attlist">
21
+ <xs:attributeGroup ref="Definition.attrib"/>
22
+ <xs:attributeGroup ref="Common.attrib"/>
23
+ </xs:attributeGroup>
24
+
25
+ <xs:complexType name="divergence.type">
26
+ <xs:attributeGroup ref="divergence.attlist"/>
27
+ </xs:complexType>
28
+
29
+ <xs:element name="divergence" type="divergence.type"/>
30
+
31
+ <!-- "grad" -->
32
+
33
+ <xs:attributeGroup name="grad.attlist">
34
+ <xs:attributeGroup ref="Definition.attrib"/>
35
+ <xs:attributeGroup ref="Common.attrib"/>
36
+ </xs:attributeGroup>
37
+
38
+ <xs:complexType name="grad.type">
39
+ <xs:attributeGroup ref="grad.attlist"/>
40
+ </xs:complexType>
41
+
42
+ <xs:element name="grad" type="grad.type"/>
43
+
44
+ <!-- "curl" -->
45
+
46
+ <xs:attributeGroup name="curl.attlist">
47
+ <xs:attributeGroup ref="Definition.attrib"/>
48
+ <xs:attributeGroup ref="Common.attrib"/>
49
+ </xs:attributeGroup>
50
+
51
+ <xs:complexType name="curl.type">
52
+ <xs:attributeGroup ref="curl.attlist"/>
53
+ </xs:complexType>
54
+
55
+ <xs:element name="curl" type="curl.type"/>
56
+
57
+ <!-- "laplacian" -->
58
+
59
+ <xs:attributeGroup name="laplacian.attlist">
60
+ <xs:attributeGroup ref="Definition.attrib"/>
61
+ <xs:attributeGroup ref="Common.attrib"/>
62
+ </xs:attributeGroup>
63
+
64
+ <xs:complexType name="laplacian.type">
65
+ <xs:attributeGroup ref="laplacian.attlist"/>
66
+ </xs:complexType>
67
+
68
+ <xs:element name="laplacian" type="laplacian.type"/>
69
+
70
+ <!-- And the group of everything -->
71
+
72
+ <xs:group name="Content-vector-calculus.class">
73
+ <xs:choice>
74
+ <xs:element ref="divergence"/>
75
+ <xs:element ref="grad"/>
76
+ <xs:element ref="curl"/>
77
+ <xs:element ref="laplacian"/>
78
+ </xs:choice>
79
+ </xs:group>
80
+
81
+
82
+ </xs:schema>
83
+ <!--
84
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
85
+ of Technology, Institut National de Recherche en Informatique et en
86
+ Automatique, Keio University). All Rights Reserved. See
87
+ http://www.w3.org/Consortium/Legal/.
88
+ -->
@@ -0,0 +1,59 @@
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
+ <xs:annotation>
10
+ <xs:documentation>
11
+ This is an XML Schema for MathML.
12
+ Author: St&#233;phane Dalmas, INRIA.
13
+ </xs:documentation>
14
+ </xs:annotation>
15
+
16
+ <!-- common stuff -->
17
+
18
+ <xs:include schemaLocation="common/math.xsd"/>
19
+ <xs:include schemaLocation="common/common-attribs.xsd"/>
20
+
21
+ <!-- Presentation -->
22
+ <xs:include schemaLocation="presentation/common-types.xsd"/>
23
+ <xs:include schemaLocation="presentation/common-attribs.xsd"/>
24
+ <xs:include schemaLocation="presentation/characters.xsd"/>
25
+ <xs:include schemaLocation="presentation/tokens.xsd"/>
26
+ <xs:include schemaLocation="presentation/scripts.xsd"/>
27
+ <xs:include schemaLocation="presentation/space.xsd"/>
28
+ <xs:include schemaLocation="presentation/layout.xsd"/>
29
+ <xs:include schemaLocation="presentation/table.xsd"/>
30
+ <xs:include schemaLocation="presentation/style.xsd"/>
31
+ <xs:include schemaLocation="presentation/error.xsd"/>
32
+ <xs:include schemaLocation="presentation/action.xsd"/>
33
+
34
+ <!-- Content -->
35
+
36
+ <xs:include schemaLocation="content/common-attrib.xsd"/>
37
+ <xs:include schemaLocation="content/tokens.xsd"/>
38
+ <xs:include schemaLocation="content/arith.xsd"/>
39
+ <xs:include schemaLocation="content/functions.xsd"/>
40
+ <xs:include schemaLocation="content/logic.xsd"/>
41
+ <xs:include schemaLocation="content/constructs.xsd"/>
42
+ <xs:include schemaLocation="content/constants.xsd"/>
43
+ <xs:include schemaLocation="content/elementary-functions.xsd"/>
44
+ <xs:include schemaLocation="content/relations.xsd"/>
45
+ <xs:include schemaLocation="content/semantics.xsd"/>
46
+ <xs:include schemaLocation="content/sets.xsd"/>
47
+ <xs:include schemaLocation="content/linear-algebra.xsd"/>
48
+ <xs:include schemaLocation="content/calculus.xsd"/>
49
+ <xs:include schemaLocation="content/vector-calculus.xsd"/>
50
+ <xs:include schemaLocation="content/statistics.xsd"/>
51
+
52
+
53
+ </xs:schema>
54
+ <!--
55
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
56
+ of Technology, Institut National de Recherche en Informatique et en
57
+ Automatique, Keio University). All Rights Reserved. See
58
+ http://www.w3.org/Consortium/Legal/.
59
+ -->
@@ -0,0 +1,44 @@
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 MathML "maction" element.
13
+ Author: St&#233;phane Dalmas, INRIA.
14
+ </xs:documentation>
15
+ </xs:annotation>
16
+
17
+ <xs:attributeGroup name="maction.attlist">
18
+ <xs:attribute name="actiontype" type="xs:string" use="required"/>
19
+ <xs:attribute name="selection" type="xs:positiveInteger" default="1"/>
20
+ <xs:attributeGroup ref="Common.attrib"/>
21
+ </xs:attributeGroup>
22
+
23
+ <xs:group name="maction.content">
24
+ <xs:sequence>
25
+ <xs:group ref="Presentation-expr.class"/>
26
+ </xs:sequence>
27
+ </xs:group>
28
+
29
+ <xs:complexType name="maction.type">
30
+ <xs:group ref="maction.content" minOccurs="1" maxOccurs="unbounded"/>
31
+ <xs:attributeGroup ref="maction.attlist"/>
32
+ </xs:complexType>
33
+
34
+ <xs:element name="maction" type="maction.type"/>
35
+
36
+ </xs:schema>
37
+
38
+
39
+ <!--
40
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
41
+ of Technology, Institut National de Recherche en Informatique et en
42
+ Automatique, Keio University). All Rights Reserved. See
43
+ http://www.w3.org/Consortium/Legal/.
44
+ -->
@@ -0,0 +1,37 @@
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 MathML "mglyph" element.
13
+ Author: St&#233;phane Dalmas, INRIA.
14
+ </xs:documentation>
15
+ </xs:annotation>
16
+
17
+ <xs:attributeGroup name="mglyph.attlist">
18
+ <xs:attribute name="alt" type="xs:string"/>
19
+ <xs:attribute name="fontfamily" type="xs:string"/>
20
+ <xs:attribute name="index" type="xs:positiveInteger"/>
21
+ </xs:attributeGroup>
22
+
23
+ <xs:complexType name="mglyph.type">
24
+ <xs:attributeGroup ref="mglyph.attlist"/>
25
+ </xs:complexType>
26
+
27
+ <xs:element name="mglyph" type="mglyph.type"/>
28
+
29
+ </xs:schema>
30
+
31
+
32
+ <!--
33
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
34
+ of Technology, Institut National de Recherche en Informatique et en
35
+ Automatique, Keio University). All Rights Reserved. See
36
+ http://www.w3.org/Consortium/Legal/.
37
+ -->
@@ -0,0 +1,113 @@
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 schema module defines sets of attributes common to several elements
13
+ of presentation MathML.
14
+ Author: St&#233;phane Dalmas, INRIA.
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+
18
+ <!-- The mathematics style attributes. These attributes are valid on all
19
+ presentation token elements except "mspace" and "mglyph", and on no
20
+ other elements except "mstyle". -->
21
+
22
+ <xs:attributeGroup name="Token-style.attrib">
23
+ <xs:attribute name="mathvariant">
24
+ <xs:simpleType>
25
+ <xs:restriction base="xs:string">
26
+ <xs:enumeration value="normal"/>
27
+ <xs:enumeration value="bold"/>
28
+ <xs:enumeration value="italic"/>
29
+ <xs:enumeration value="bold-italic"/>
30
+ <xs:enumeration value="double-struck"/>
31
+ <xs:enumeration value="bold-fraktur"/>
32
+ <xs:enumeration value="script"/>
33
+ <xs:enumeration value="bold-script"/>
34
+ <xs:enumeration value="fraktur"/>
35
+ <xs:enumeration value="sans-serif"/>
36
+ <xs:enumeration value="bold-sans-serif"/>
37
+ <xs:enumeration value="sans-serif-italic"/>
38
+ <xs:enumeration value="sans-serif-bold-italic"/>
39
+ <xs:enumeration value="monospace"/>
40
+ </xs:restriction>
41
+ </xs:simpleType>
42
+ </xs:attribute>
43
+ <xs:attribute name="mathsize">
44
+ <xs:simpleType>
45
+ <xs:union memberTypes="simple-size length-with-unit"/>
46
+ </xs:simpleType>
47
+ </xs:attribute>
48
+ <!-- For both of the following attributes the types should be
49
+ more restricted -->
50
+ <xs:attribute name="mathcolor" type="xs:string"/>
51
+ <xs:attribute name="mathbackground" type="xs:string"/>
52
+ </xs:attributeGroup>
53
+
54
+ <!-- These operators are all related to operators. They are valid on "mo"
55
+ and "mstyle". -->
56
+
57
+ <xs:attributeGroup name="Operator.attrib">
58
+ <!-- this attribute value is normally inferred from the position of
59
+ the operator in its "<mrow"> -->
60
+ <xs:attribute name="form">
61
+ <xs:simpleType>
62
+ <xs:restriction base="xs:string">
63
+ <xs:enumeration value="prefix"/>
64
+ <xs:enumeration value="infix"/>
65
+ <xs:enumeration value="postfix"/>
66
+ </xs:restriction>
67
+ </xs:simpleType>
68
+ </xs:attribute>
69
+ <!-- set by dictionnary, else it is "thickmathspace" -->
70
+ <xs:attribute name="lspace">
71
+ <xs:simpleType>
72
+ <xs:union memberTypes="length-with-unit named-space"/>
73
+ </xs:simpleType>
74
+ </xs:attribute>
75
+ <!-- set by dictionnary, else it is "thickmathspace" -->
76
+ <xs:attribute name="rspace">
77
+ <xs:simpleType>
78
+ <xs:union memberTypes="length-with-unit named-space"/>
79
+ </xs:simpleType>
80
+ </xs:attribute>
81
+ <!-- set by dictionnary, else it is "false" -->
82
+ <xs:attribute name="fence" type="xs:boolean"/>
83
+ <!-- set by dictionnary, else it is "false" -->
84
+ <xs:attribute name="separator" type="xs:boolean"/>
85
+ <!-- set by dictionnary, else it is "false" -->
86
+ <xs:attribute name="stretchy" type="xs:boolean"/>
87
+ <!-- set by dictionnary, else it is "true" -->
88
+ <xs:attribute name="symmetric" type="xs:boolean"/>
89
+ <!-- set by dictionnary, else it is "false" -->
90
+ <xs:attribute name="movablelimits" type="xs:boolean"/>
91
+ <!-- set by dictionnary, else it is "false" -->
92
+ <xs:attribute name="accent" type="xs:boolean"/>
93
+ <!-- set by dictionnary, else it is "false" -->
94
+ <xs:attribute name="largeop" type="xs:boolean"/>
95
+ <xs:attribute name="minsize">
96
+ <xs:simpleType>
97
+ <xs:union memberTypes="length-with-unit named-space"/>
98
+ </xs:simpleType>
99
+ </xs:attribute>
100
+ <xs:attribute name="maxsize">
101
+ <xs:simpleType>
102
+ <xs:union memberTypes="length-with-unit named-space infinity xs:float"/>
103
+ </xs:simpleType>
104
+ </xs:attribute>
105
+ </xs:attributeGroup>
106
+
107
+ </xs:schema>
108
+ <!--
109
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
110
+ of Technology, Institut National de Recherche en Informatique et en
111
+ Automatique, Keio University). All Rights Reserved. See
112
+ http://www.w3.org/Consortium/Legal/.
113
+ -->
@@ -0,0 +1,103 @@
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 containing some type definitions for MathML.
13
+ Author: St&#233;phane Dalmas, INRIA.
14
+ </xs:documentation>
15
+ </xs:annotation>
16
+
17
+ <!-- Simple sizes -->
18
+
19
+ <xs:simpleType name="simple-size">
20
+ <xs:restriction base="xs:string">
21
+ <xs:enumeration value="small"/>
22
+ <xs:enumeration value="normal"/>
23
+ <xs:enumeration value="big"/>
24
+ </xs:restriction>
25
+ </xs:simpleType>
26
+
27
+ <!-- Centering values -->
28
+
29
+ <xs:simpleType name="centering">
30
+ <xs:restriction base="xs:string">
31
+ <xs:enumeration value="left"/>
32
+ <xs:enumeration value="center"/>
33
+ <xs:enumeration value="right"/>
34
+ </xs:restriction>
35
+ </xs:simpleType>
36
+
37
+ <!-- The named spaces -->
38
+
39
+ <!-- this is also used in the value of the "width" attribute on the
40
+ "mpadded" element -->
41
+ <xs:simpleType name="named-space">
42
+ <xs:restriction base="xs:string">
43
+ <xs:enumeration value="veryverythinmathspace"/>
44
+ <xs:enumeration value="verythinmathspace"/>
45
+ <xs:enumeration value="thinmathspace"/>
46
+ <xs:enumeration value="mediummathspace"/>
47
+ <xs:enumeration value="thickmathspace"/>
48
+ <xs:enumeration value="verythickmathspace"/>
49
+ <xs:enumeration value="veryverythickmathspace"/>
50
+ </xs:restriction>
51
+ </xs:simpleType>
52
+
53
+ <!-- Thickness -->
54
+
55
+ <xs:simpleType name="thickness">
56
+ <xs:restriction base="xs:string">
57
+ <xs:enumeration value="thin"/>
58
+ <xs:enumeration value="medium"/>
59
+ <xs:enumeration value="thick"/>
60
+ </xs:restriction>
61
+ </xs:simpleType>
62
+
63
+
64
+ <!-- number with units used to specified lengths -->
65
+
66
+ <xs:simpleType name="length-with-unit">
67
+ <xs:restriction base="xs:string">
68
+ <xs:pattern
69
+ value="(-?([0-9]+|[0-9]*\.[0-9]+)*(em|ex|px|in|cm|mm|pt|pc|%))|0"/>
70
+ </xs:restriction>
71
+ </xs:simpleType>
72
+
73
+ <xs:simpleType name="length-with-optional-unit">
74
+ <xs:restriction base="xs:string">
75
+ <xs:pattern
76
+ value="-?([0-9]+|[0-9]*\.[0-9]+)*(em|ex|px|in|cm|mm|pt|pc|%)?"/>
77
+ </xs:restriction>
78
+ </xs:simpleType>
79
+
80
+ <!-- This is just "infinity" that can be used as a length -->
81
+
82
+ <xs:simpleType name="infinity">
83
+ <xs:restriction base="xs:string">
84
+ <xs:enumeration value="infinity"/>
85
+ </xs:restriction>
86
+ </xs:simpleType>
87
+
88
+ <!-- colors defined as RGB -->
89
+
90
+ <xs:simpleType name="RGB-color">
91
+ <xs:restriction base="xs:string">
92
+ <xs:pattern value="#(([0-9]|[a-f]){3}|([0-9]|[a-f]){6})"/>
93
+ </xs:restriction>
94
+ </xs:simpleType>
95
+
96
+ </xs:schema>
97
+
98
+ <!--
99
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
100
+ of Technology, Institut National de Recherche en Informatique et en
101
+ Automatique, Keio University). All Rights Reserved. See
102
+ http://www.w3.org/Consortium/Legal/.
103
+ -->
@@ -0,0 +1,40 @@
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 MathML "merror" element.
13
+ Author: St&#233;phane Dalmas, INRIA.
14
+ </xs:documentation>
15
+ </xs:annotation>
16
+
17
+ <xs:attributeGroup name="merror.attlist">
18
+ <xs:attributeGroup ref="Common.attrib"/>
19
+ </xs:attributeGroup>
20
+
21
+ <xs:group name="merror.content">
22
+ <xs:sequence>
23
+ <xs:group ref="Presentation-expr.class"/>
24
+ </xs:sequence>
25
+ </xs:group>
26
+
27
+ <xs:complexType name="merror.type">
28
+ <xs:group ref="merror.content" minOccurs="0" maxOccurs="unbounded"/>
29
+ <xs:attributeGroup ref="merror.attlist"/>
30
+ </xs:complexType>
31
+
32
+ <xs:element name="merror" type="merror.type"/>
33
+
34
+ </xs:schema>
35
+ <!--
36
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
37
+ of Technology, Institut National de Recherche en Informatique et en
38
+ Automatique, Keio University). All Rights Reserved. See
39
+ http://www.w3.org/Consortium/Legal/.
40
+ -->