I appear to be unable to insert an m:mrow element as a child of m:mfrac in the attached docbook 5 source "formula.xml".

That file explains what I want exactly (with an image) and how I fail to make the formula with MathML in xxe 8.5.0

I'm very probably overlooking something, but after several hours of browsing the web I cannot find what's wrong.

I'd be very grateful if someone pointed that out to me.

Thanks in advance,

Erik Leunissen.
--
<?xml version="1.0" encoding="UTF-8"?>
<section version="5.0" xmlns="http://docbook.org/ns/docbook";
         xmlns:xlink="http://www.w3.org/1999/xlink";
         xmlns:xi="http://www.w3.org/2001/XInclude";
         xmlns:svg="http://www.w3.org/2000/svg";
         xmlns:m="http://www.w3.org/1998/Math/MathML";
         xmlns:html="http://www.w3.org/1999/xhtml";
         xmlns:db="http://docbook.org/ns/docbook";>
  <title>MathML issue: how to insert m:mrow as a child of m:mfrac?</title>

  <para>Chemical reaction:</para>

  <equation>
    <mathphrase>H<subscript>2</subscript>CO<subscript>3</subscript> +
    H<subscript>2</subscript>O ⇄
    HCO<subscript>3</subscript><superscript>-</superscript> +
    H<subscript>3</subscript>O<superscript>+</superscript></mathphrase>
  </equation>

  <para>Corresponding equilibrium condition (image):</para>

  <mediaobject>
    <imageobject>
      <imagedata align="center" fileref="./formula.png"/>
    </imageobject>
  </mediaobject>

  <para>I believe to need the m;mfrac element and the m:mrow element as its
  first child element. The MathML example in
  <uri>http://www.xmlmind.com/tutorials/MathML/</uri> does exactly that.
  However, when editing this document in xxe 5.8.0, I cannot choose to do that
  (xxe just offers m:malignmark and m:mglyph):</para>

  <equation>
    <m:math display="block">
      <m:mrow>
        <m:mfrac>
          <m:mi>[H+][HCO3-]</m:mi>

          <m:mi>[H2CO3]</m:mi>
        </m:mfrac>

        <m:mo>=</m:mo>

        <m:msub>
          <m:mi>K</m:mi>

          <m:mi>1</m:mi>
        </m:msub>
      </m:mrow>
    </m:math>
  </equation>
</section>

<<attachment: formula.png>>

--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to