Skip to content

Extra mrow within a math tag

Volker Sorge edited this page Apr 20, 2015 · 3 revisions

Issue. Back to list of issues.

Do we want an extra mrow within a math tag to hold semantic information?

Consider the following example:

Original MathML:

<math>
  <mi>a</mi>
  <mo>+</mo>
  <mi>b</mi>
  <mo>+</mo>
  <mi>c</mi>
</math>

Version 1 of semantically enriched MathML:

<math>
  <mrow type="infixop" role="addition" id="5" content="1,3" children="0,2,4">
    <mi type="identifier" role="latinletter" id="0" parent="5">a</mi>
    <mo type="operator" role="addition" id="1" operator="infixop,+" parent="5">+</mo>
    <mi type="identifier" role="latinletter" id="2" parent="5">b</mi>
    <mo type="operator" role="addition" id="3" operator="infixop,+" parent="5">+</mo>
    <mi type="identifier" role="latinletter" id="4" parent="5">c</mi>
  </mrow>
</math>

Version 2 of semantically enriched MathML:

<math type="infixop" role="addition" id="5" children="0,2,4" content="1,3">
  <mi type="identifier" role="latinletter" id="0" parent="5">a</mi>
  <mo type="operator" role="addition" id="1" operator="infixop,+" parent="5">+</mo>
  <mi type="identifier" role="latinletter" id="2" parent="5">b</mi>
  <mo type="operator" role="addition" id="3" operator="infixop,+" parent="5">+</mo>
  <mi type="identifier" role="latinletter" id="4" parent="5">c</mi>
</math>
Clone this wiki locally