<mathml>

The <mathml> element contains MathML markup or other content that contributes to a semantic equation.

Usage information

The <mathml> element can contain MathML elements, references to MathML elements stored in separate, non-DITA documents, or <data> elements.

The <mathml> element is not intended to represent a semantic equation, only content that contributes to a semantic equation. Use the equation domain elements or their equivalent to represent equations semantically, for example, to enable numbering of equations.

The MathML markup must have a root element of <math> within the MathML namespace: http://www.w3.org/1998/Math/MathML.

Specialization hierarchy

The <mathml> element is specialized from <foreign>. It is defined in the MathML domain module.

Attributes

The following attributes are available on this element: universal attributes.

The following attributes are available on this element: universal attributes.

Example

This section is non-normative.

The following code sample shows how to use a <mathml> element to include MathML content:

<equation-block>
  <mathml>
    <m:math>
      <m:semantics>
        <m:mrow>
          <m:msqrt>
            <m:mrow>
              <m:msup>
                <m:mi>a</m:mi>
                <m:mn>2</m:mn></m:msup>
                <m:mo>+</m:mo>
                <m:msup>
                  <m:mi>b</m:mi>
                  <m:mn>2</m:mn>
                </m:msup>
              </m:mrow>
            </m:msqrt>        
          </m:mrow>
        </m:semantics>
      </m:math>
    </mathml>
</equation-block>