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,17 @@
1
+ = W3C MathML schemas
2
+
3
+ The official MathML schemas are available from W3C.
4
+
5
+ MathML 4:: https://www.w3.org/TR/mathml4/. Link: https://www.w3.org/Math/RelaxNG/mathml4/*.{rnc,rng}
6
+
7
+ MathML 3:: From https://www.w3.org/Math/XMLSchema/. Link: https://www.w3.org/Math/XMLSchema/mathml3-xsd.zip
8
+
9
+ MathML 2:: From https://www.w3.org/Math/XMLSchema/. Link: https://www.w3.org/Math/XMLSchema/mathml2.tgz
10
+
11
+ == License
12
+
13
+ Copyright 1998-2024 W3C (MIT, ERCIM, Keio)
14
+
15
+ Use and distribution of this code are permitted under the terms
16
+ W3C Software Notice and License
17
+ http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
@@ -0,0 +1,41 @@
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
+ xmlns:xlink="http://www.w3.org/1999/xlink"
7
+ targetNamespace="http://www.w3.org/1998/Math/MathML"
8
+ elementFormDefault="qualified"
9
+ >
10
+
11
+ <xs:annotation>
12
+ <xs:documentation>
13
+ This is the common attributes module for MathML.
14
+ Author: St&#233;phane Dalmas, INRIA.
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+
18
+
19
+ <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink-href.xsd"/>
20
+ <xs:import/> <!-- import any foreign namespace -->
21
+
22
+
23
+ <!-- The type of "class" is from the XHTML modularization with Schema
24
+ document -->
25
+ <xs:attributeGroup name="Common.attrib">
26
+ <xs:attribute name="class" type="xs:NMTOKENS"/>
27
+ <xs:attribute name="style" type="xs:string"/>
28
+ <xs:attribute name="xref" type="xs:IDREF"/>
29
+ <xs:attribute name="id" type="xs:ID"/>
30
+ <xs:attribute ref="xlink:href"/>
31
+ <!-- allow attributes from foreign namespaces, and don't check them -->
32
+ <xs:anyAttribute namespace="##other" processContents="skip"/>
33
+ </xs:attributeGroup>
34
+
35
+ </xs:schema>
36
+ <!--
37
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
38
+ of Technology, Institut National de Recherche en Informatique et en
39
+ Automatique, Keio University). All Rights Reserved. See
40
+ http://www.w3.org/Consortium/Legal/.
41
+ -->
@@ -0,0 +1,126 @@
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 defining the "math" element of MathML.
13
+ Author: St&#233;phane Dalmas, INRIA.
14
+ </xs:documentation>
15
+ </xs:annotation>
16
+
17
+ <!-- The four groups that govern a lot of things -->
18
+
19
+ <!-- currently very lax. Should be tightened from Chapter 5 -->
20
+
21
+ <xs:group name="Presentation-expr.class">
22
+ <xs:choice>
23
+ <xs:group ref="PresExpr.class"/>
24
+ <xs:group ref="ContExpr.class"/>
25
+ </xs:choice>
26
+ </xs:group>
27
+
28
+ <xs:group name="Content-expr.class">
29
+ <xs:choice>
30
+ <xs:group ref="ContExpr.class"/>
31
+ <xs:group ref="PresExpr.class"/>
32
+ </xs:choice>
33
+ </xs:group>
34
+
35
+ <xs:group name="PresExpr.class">
36
+ <xs:choice>
37
+ <xs:group ref="Presentation-token.class"/>
38
+ <xs:group ref="Presentation-layout.class"/>
39
+ <xs:group ref="Presentation-script.class"/>
40
+ <xs:group ref="Presentation-table.class"/>
41
+ <xs:element ref="mspace"/>
42
+ <xs:element ref="maction"/>
43
+ <xs:element ref="merror"/>
44
+ <xs:element ref="mstyle"/>
45
+ </xs:choice>
46
+ </xs:group>
47
+
48
+ <xs:group name="ContExpr.class">
49
+ <xs:choice>
50
+ <xs:group ref="Content-tokens.class"/>
51
+ <xs:group ref="Content-arith.class"/>
52
+ <xs:group ref="Content-functions.class"/>
53
+ <xs:group ref="Content-logic.class"/>
54
+ <xs:group ref="Content-constants.class"/>
55
+ <xs:group ref="Content-sets.class"/>
56
+ <xs:group ref="Content-relations.class"/>
57
+ <xs:group ref="Content-elementary-functions.class"/>
58
+ <xs:group ref="Content-calculus.class"/>
59
+ <xs:group ref="Content-linear-algebra.class"/>
60
+ <xs:group ref="Content-vector-calculus.class"/>
61
+ <xs:group ref="Content-statistics.class"/>
62
+ <xs:group ref="Content-constructs.class"/>
63
+ <xs:element ref="semantics"/>
64
+ </xs:choice>
65
+ </xs:group>
66
+
67
+ <!-- "math" -->
68
+
69
+ <xs:attributeGroup name="Browser-interface.attrib">
70
+ <xs:attribute name="baseline" type="xs:string"/>
71
+ <xs:attribute name="overflow" default="scroll">
72
+ <xs:simpleType>
73
+ <xs:restriction base="xs:string">
74
+ <xs:enumeration value="scroll"/>
75
+ <xs:enumeration value="elide"/>
76
+ <xs:enumeration value="truncate"/>
77
+ <xs:enumeration value="scale"/>
78
+ </xs:restriction>
79
+ </xs:simpleType>
80
+ </xs:attribute>
81
+ <xs:attribute name="altimg" type="xs:anyURI"/>
82
+ <xs:attribute name="alttext" type="xs:string"/>
83
+ <xs:attribute name="type" type="xs:string"/>
84
+ <xs:attribute name="name" type="xs:string"/>
85
+ <xs:attribute name="height" type="xs:string"/>
86
+ <xs:attribute name="width" type="xs:string"/>
87
+ </xs:attributeGroup>
88
+
89
+ <xs:attributeGroup name="math.attlist">
90
+ <xs:attributeGroup ref="Browser-interface.attrib"/>
91
+ <xs:attribute name="macros" type="xs:string"/>
92
+ <!-- deprecated
93
+ <xs:attribute name="mode" type="xs:string"/>
94
+ -->
95
+ <xs:attribute name="display" default="inline">
96
+ <xs:simpleType>
97
+ <xs:restriction base="xs:string">
98
+ <xs:enumeration value="block"/>
99
+ <xs:enumeration value="inline"/>
100
+ </xs:restriction>
101
+ </xs:simpleType>
102
+ </xs:attribute>
103
+ <xs:attributeGroup ref="Common.attrib"/>
104
+ </xs:attributeGroup>
105
+
106
+ <xs:group name="math.content">
107
+ <xs:choice>
108
+ <xs:group ref="PresExpr.class"/>
109
+ <xs:group ref="ContExpr.class"/>
110
+ </xs:choice>
111
+ </xs:group>
112
+
113
+ <xs:complexType name="math.type">
114
+ <xs:group ref="math.content" minOccurs="0" maxOccurs="unbounded"/>
115
+ <xs:attributeGroup ref="math.attlist"/>
116
+ </xs:complexType>
117
+
118
+ <xs:element name="math" type="math.type"/>
119
+
120
+ </xs:schema>
121
+ <!--
122
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
123
+ of Technology, Institut National de Recherche en Informatique et en
124
+ Automatique, Keio University). All Rights Reserved. See
125
+ http://www.w3.org/Consortium/Legal/.
126
+ -->
@@ -0,0 +1,20 @@
1
+ <schema targetNamespace="http://www.w3.org/1999/xlink"
2
+ xmlns:xlink="http://www.w3.org/1999/xlink"
3
+ xmlns="http://www.w3.org/2001/XMLSchema">
4
+ <annotation>
5
+ <documentation xml:lang="en">
6
+ This schema provides the XLink href attribute for use in the MathML2
7
+ schema. Written by Max Froumentin, W3C.
8
+ </documentation>
9
+ </annotation>
10
+
11
+ <attribute name="href" type="anyURI"/>
12
+ </schema>
13
+
14
+
15
+ <!--
16
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
17
+ of Technology, Institut National de Recherche en Informatique et en
18
+ Automatique, Keio University). All Rights Reserved. See
19
+ http://www.w3.org/Consortium/Legal/.
20
+ -->
@@ -0,0 +1,16 @@
1
+ /arith.xsd/1.3/Wed May 12 16:10:20 2004//
2
+ /calculus.xsd/1.3/Wed May 12 16:10:20 2004//
3
+ /common-attrib.xsd/1.3/Wed May 12 16:10:20 2004//
4
+ /constants.xsd/1.3/Wed May 12 16:10:20 2004//
5
+ /constructs.xsd/1.6/Wed May 12 16:10:20 2004//
6
+ /elementary-functions.xsd/1.3/Wed May 12 16:10:20 2004//
7
+ /functions.xsd/1.3/Wed May 12 16:10:20 2004//
8
+ /linear-algebra.xsd/1.3/Wed May 12 16:10:20 2004//
9
+ /logic.xsd/1.3/Wed May 12 16:10:20 2004//
10
+ /relations.xsd/1.3/Wed May 12 16:10:20 2004//
11
+ /semantics.xsd/1.3/Wed May 12 16:10:20 2004//
12
+ /sets.xsd/1.3/Wed May 12 16:10:20 2004//
13
+ /statistics.xsd/1.3/Wed May 12 16:10:20 2004//
14
+ /tokens.xsd/1.3/Wed May 12 16:10:20 2004//
15
+ /vector-calculus.xsd/1.3/Wed May 12 16:10:20 2004//
16
+ D
@@ -0,0 +1 @@
1
+ WWW/Math/XMLSchema/mathml2/content
@@ -0,0 +1 @@
1
+ :ext:cvs.w3.org:/w3ccvs
@@ -0,0 +1,90 @@
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 "arithmetic" operators of content
13
+ MathML.
14
+ Author: St&#233;phane Dalmas, INRIA.
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+
18
+ <!-- a common type for all this -->
19
+
20
+ <xs:complexType name="Arith.type">
21
+ <xs:attributeGroup ref="Definition.attrib"/>
22
+ <xs:attributeGroup ref="Common.attrib"/>
23
+ </xs:complexType>
24
+
25
+ <!-- The elements -->
26
+
27
+ <xs:element name="abs" type="Arith.type"/>
28
+ <xs:element name="conjugate" type="Arith.type"/>
29
+ <xs:element name="arg" type="Arith.type"/>
30
+ <xs:element name="real" type="Arith.type"/>
31
+ <xs:element name="imaginary" type="Arith.type"/>
32
+
33
+ <xs:element name="floor" type="Arith.type"/>
34
+ <xs:element name="ceiling" type="Arith.type"/>
35
+
36
+ <xs:element name="power" type="Arith.type"/>
37
+ <xs:element name="root" type="Arith.type"/>
38
+
39
+ <xs:element name="minus" type="Arith.type"/>
40
+ <xs:element name="plus" type="Arith.type"/>
41
+ <xs:element name="sum" type="Arith.type"/>
42
+ <xs:element name="times" type="Arith.type"/>
43
+ <xs:element name="product" type="Arith.type"/>
44
+
45
+ <xs:element name="max" type="Arith.type"/>
46
+ <xs:element name="min" type="Arith.type"/>
47
+
48
+ <xs:element name="factorial" type="Arith.type"/>
49
+ <xs:element name="quotient" type="Arith.type"/>
50
+ <xs:element name="divide" type="Arith.type"/>
51
+ <xs:element name="rem" type="Arith.type"/>
52
+ <xs:element name="gcd" type="Arith.type"/>
53
+ <xs:element name="lcm" type="Arith.type"/>
54
+
55
+ <!-- And the group of everything -->
56
+
57
+ <xs:group name="Content-arith.class">
58
+ <xs:choice>
59
+ <xs:element ref="abs"/>
60
+ <xs:element ref="conjugate"/>
61
+ <xs:element ref="factorial"/>
62
+ <xs:element ref="arg"/>
63
+ <xs:element ref="real"/>
64
+ <xs:element ref="imaginary"/>
65
+ <xs:element ref="floor"/>
66
+ <xs:element ref="ceiling"/>
67
+ <xs:element ref="quotient"/>
68
+ <xs:element ref="divide"/>
69
+ <xs:element ref="rem"/>
70
+ <xs:element ref="minus"/>
71
+ <xs:element ref="plus"/>
72
+ <xs:element ref="times"/>
73
+ <xs:element ref="power"/>
74
+ <xs:element ref="root"/>
75
+ <xs:element ref="max"/>
76
+ <xs:element ref="min"/>
77
+ <xs:element ref="gcd"/>
78
+ <xs:element ref="lcm"/>
79
+ <xs:element ref="sum"/>
80
+ <xs:element ref="product"/>
81
+ </xs:choice>
82
+ </xs:group>
83
+
84
+ </xs:schema>
85
+ <!--
86
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
87
+ of Technology, Institut National de Recherche en Informatique et en
88
+ Automatique, Keio University). All Rights Reserved. See
89
+ http://www.w3.org/Consortium/Legal/.
90
+ -->
@@ -0,0 +1,146 @@
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 calculs operators of content
13
+ MathML.
14
+ Author: St&#233;phane Dalmas, INRIA.
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+
18
+ <!-- "int" -->
19
+
20
+ <xs:attributeGroup name="int.attlist">
21
+ <xs:attributeGroup ref="Definition.attrib"/>
22
+ <xs:attributeGroup ref="Common.attrib"/>
23
+ </xs:attributeGroup>
24
+
25
+ <xs:complexType name="int.type">
26
+ <xs:attributeGroup ref="int.attlist"/>
27
+ </xs:complexType>
28
+
29
+ <xs:element name="int" type="int.type"/>
30
+
31
+ <!-- "diff" -->
32
+
33
+ <xs:attributeGroup name="diff.attlist">
34
+ <xs:attributeGroup ref="Definition.attrib"/>
35
+ <xs:attributeGroup ref="Common.attrib"/>
36
+ </xs:attributeGroup>
37
+
38
+ <xs:complexType name="diff.type">
39
+ <xs:attributeGroup ref="diff.attlist"/>
40
+ </xs:complexType>
41
+
42
+ <xs:element name="diff" type="diff.type"/>
43
+
44
+ <!-- "partialdiff" -->
45
+
46
+ <xs:attributeGroup name="partialdiff.attlist">
47
+ <xs:attributeGroup ref="Definition.attrib"/>
48
+ <xs:attributeGroup ref="Common.attrib"/>
49
+ </xs:attributeGroup>
50
+
51
+ <xs:complexType name="partialdiff.type">
52
+ <xs:attributeGroup ref="partialdiff.attlist"/>
53
+ </xs:complexType>
54
+
55
+ <xs:element name="partialdiff" type="partialdiff.type"/>
56
+
57
+ <!-- "limit" -->
58
+
59
+ <xs:attributeGroup name="limit.attlist">
60
+ <xs:attributeGroup ref="Definition.attrib"/>
61
+ <xs:attributeGroup ref="Common.attrib"/>
62
+ </xs:attributeGroup>
63
+
64
+
65
+ <xs:complexType name="limit.type">
66
+ <xs:attributeGroup ref="limit.attlist"/>
67
+ </xs:complexType>
68
+
69
+ <xs:element name="limit" type="limit.type"/>
70
+
71
+ <!-- "lowlimit" -->
72
+
73
+ <xs:attributeGroup name="lowlimit.attlist">
74
+ <xs:attributeGroup ref="Definition.attrib"/>
75
+ <xs:attributeGroup ref="Common.attrib"/>
76
+ </xs:attributeGroup>
77
+
78
+ <xs:group name="lowlimit.content">
79
+ <xs:sequence>
80
+ <xs:group ref="Content-expr.class"/>
81
+ </xs:sequence>
82
+ </xs:group>
83
+
84
+ <xs:complexType name="lowlimit.type">
85
+ <xs:group ref="lowlimit.content" minOccurs="1" maxOccurs="unbounded"/>
86
+ <xs:attributeGroup ref="lowlimit.attlist"/>
87
+ </xs:complexType>
88
+
89
+ <xs:element name="lowlimit" type="lowlimit.type"/>
90
+
91
+ <!-- "uplimit" -->
92
+
93
+ <xs:attributeGroup name="uplimit.attlist">
94
+ <xs:attributeGroup ref="Definition.attrib"/>
95
+ <xs:attributeGroup ref="Common.attrib"/>
96
+ </xs:attributeGroup>
97
+
98
+ <xs:group name="uplimit.content">
99
+ <xs:sequence>
100
+ <xs:group ref="Content-expr.class"/>
101
+ </xs:sequence>
102
+ </xs:group>
103
+
104
+ <xs:complexType name="uplimit.type">
105
+ <xs:group ref="uplimit.content" minOccurs="1" maxOccurs="unbounded"/>
106
+ <xs:attributeGroup ref="uplimit.attlist"/>
107
+ </xs:complexType>
108
+
109
+ <xs:element name="uplimit" type="uplimit.type"/>
110
+
111
+ <!-- "tendsto" -->
112
+
113
+ <xs:attributeGroup name="tendsto.attlist">
114
+ <xs:attribute name="type" type="xs:string"/>
115
+ <xs:attributeGroup ref="Definition.attrib"/>
116
+ <xs:attributeGroup ref="Common.attrib"/>
117
+ </xs:attributeGroup>
118
+
119
+
120
+ <xs:complexType name="tendsto.type">
121
+ <xs:attributeGroup ref="tendsto.attlist"/>
122
+ </xs:complexType>
123
+
124
+ <xs:element name="tendsto" type="tendsto.type"/>
125
+
126
+ <!-- And the group of everything -->
127
+
128
+ <xs:group name="Content-calculus.class">
129
+ <xs:choice>
130
+ <xs:element ref="int"/>
131
+ <xs:element ref="diff"/>
132
+ <xs:element ref="partialdiff"/>
133
+ <xs:element ref="limit"/>
134
+ <xs:element ref="lowlimit"/>
135
+ <xs:element ref="uplimit"/>
136
+ <xs:element ref="tendsto"/>
137
+ </xs:choice>
138
+ </xs:group>
139
+
140
+ </xs:schema>
141
+ <!--
142
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
143
+ of Technology, Institut National de Recherche en Informatique et en
144
+ Automatique, Keio University). All Rights Reserved. See
145
+ http://www.w3.org/Consortium/Legal/.
146
+ -->
@@ -0,0 +1,30 @@
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 defining common attributes for the
13
+ content part of MathML.
14
+ Authors: St&#233;phane Dalmas, INRIA.
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+
18
+ <xs:attributeGroup name="Definition.attrib">
19
+ <xs:attribute name="encoding" type="xs:string"/>
20
+ <xs:attribute name="definitionURL" type="xs:anyURI"/>
21
+ </xs:attributeGroup>
22
+
23
+ </xs:schema>
24
+
25
+ <!--
26
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
27
+ of Technology, Institut National de Recherche en Informatique et en
28
+ Automatique, Keio University). All Rights Reserved. See
29
+ http://www.w3.org/Consortium/Legal/.
30
+ -->
@@ -0,0 +1,83 @@
1
+ <xs:schema
2
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
3
+ xmlns="http://www.w3.org/1998/Math/MathML"
4
+ targetNamespace="http://www.w3.org/1998/Math/MathML"
5
+ elementFormDefault="qualified"
6
+ >
7
+
8
+ <xs:annotation>
9
+ <xs:documentation>
10
+ This is the XML Schema module for the basic constants of MathML content.
11
+ Author: St&#233;phane Dalmas.
12
+ </xs:documentation>
13
+ </xs:annotation>
14
+
15
+ <!-- a common type for all this -->
16
+
17
+ <xs:complexType name="Constant.type">
18
+ <xs:attributeGroup ref="Definition.attrib"/>
19
+ <xs:attributeGroup ref="Common.attrib"/>
20
+ </xs:complexType>
21
+
22
+ <!-- Basic sets -->
23
+
24
+ <xs:element name="naturalnumbers" type="Constant.type"/>
25
+ <xs:element name="primes" type="Constant.type"/>
26
+ <xs:element name="integers" type="Constant.type"/>
27
+ <xs:element name="rationals" type="Constant.type"/>
28
+ <xs:element name="reals" type="Constant.type"/>
29
+ <xs:element name="complexes" type="Constant.type"/>
30
+
31
+ <!-- Empty set -->
32
+
33
+ <xs:element name="emptyset" type="Constant.type"/>
34
+
35
+ <!-- Basic constants -->
36
+
37
+ <xs:element name="exponentiale" type="Constant.type"/>
38
+ <xs:element name="imaginaryi" type="Constant.type"/>
39
+ <xs:element name="pi" type="Constant.type"/>
40
+ <xs:element name="eulergamma" type="Constant.type"/>
41
+
42
+ <!-- Boolean constants -->
43
+
44
+ <xs:element name="true" type="Constant.type"/>
45
+ <xs:element name="false" type="Constant.type"/>
46
+
47
+ <!-- Infinty -->
48
+
49
+ <xs:element name="infinity" type="Constant.type"/>
50
+
51
+ <!-- NotANumber -->
52
+
53
+ <xs:element name="notanumber" type="Constant.type"/>
54
+
55
+ <!-- And the group of everything -->
56
+
57
+ <xs:group name="Content-constants.class">
58
+ <xs:choice>
59
+ <xs:element ref="naturalnumbers"/>
60
+ <xs:element ref="primes"/>
61
+ <xs:element ref="integers"/>
62
+ <xs:element ref="rationals"/>
63
+ <xs:element ref="reals"/>
64
+ <xs:element ref="complexes"/>
65
+ <xs:element ref="emptyset"/>
66
+ <xs:element ref="exponentiale"/>
67
+ <xs:element ref="imaginaryi"/>
68
+ <xs:element ref="pi"/>
69
+ <xs:element ref="eulergamma"/>
70
+ <xs:element ref="true"/>
71
+ <xs:element ref="false"/>
72
+ <xs:element ref="infinity"/>
73
+ <xs:element ref="notanumber"/>
74
+ </xs:choice>
75
+ </xs:group>
76
+
77
+ </xs:schema>
78
+ <!--
79
+ Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
80
+ of Technology, Institut National de Recherche en Informatique et en
81
+ Automatique, Keio University). All Rights Reserved. See
82
+ http://www.w3.org/Consortium/Legal/.
83
+ -->