Dear Fop-Devs,

I've just recently encountered a possible "bug" in the jeuclid plugin
for fop. A complete .fo file is added at the end of the mail.

In this file there is a foreign math object:
        <fo:instream-foreign-object>
          <mml:math>
            <mml:mstyle mathsize="6pt">
              <mml:mi>x</mml:mi>
            </mml:mstyle>
          </mml:math>
        </fo:instream-foreign-object>,

which, as you can see, uses the "mathsize" attribute. HOWEVER, the
attribute gets ignored, because it is in the default namespace, and only
the attributes in the mml namespace are actually processed by the
plugin. So the above needed to be fixed to:

            <mml:mstyle mml:mathsize="6pt">
              <mml:mi>x</mml:mi>
            </mml:mstyle>

to work properly.

So here are my questions:

- Is this indeed the expected behavior? It seems unintuitive.
- If it is, should it be? Should the plugin not also process attributes
from the default namespace?
- If it is not, where do i need to start looking for the bug? Jeuclid
completely ignores namespaces in attributes, so it is either in the
fop/plugin interface, fop itself, or the xerces parser?


Thanks

Max

---

<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";
         xmlns:mml="http://www.w3.org/1998/Math/MathML";
         font-size="10pt">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="page">
      <fo:region-body region-name="flow"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="page">
    <fo:flow flow-name="flow">
      <fo:block>
        Normal
        <fo:instream-foreign-object>
          <mml:math>
            <mml:mi>x</mml:mi>
          </mml:math>
        </fo:instream-foreign-object>,
        small
        <fo:instream-foreign-object>
          <mml:math>
            <mml:mstyle mathsize="6pt">
              <mml:mi>x</mml:mi>
            </mml:mstyle>
          </mml:math>
        </fo:instream-foreign-object>,
        big
        <fo:instream-foreign-object>
          <mml:math>
            <mml:mstyle mathsize="24pt">
              <mml:mi>x</mml:mi>
            </mml:mstyle>
          </mml:math>
        </fo:instream-foreign-object>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Reply via email to