Thomas Dumm wrote:
> Dreas Mr. Shafie,
>
> Thank you! I did not succeed completely:
>
> 1) I see the message "MathML Here!" when using your first suggestion. So the
> code in the css-file is read/active.
> 2) I see an icon "unknwn document format" instead of the equation when using
> your secong suggestion. (see screenshots)
>
> Does this mean anything to you? It looks as if the JEuclid package is not
> recognized when the MathML code is met by the processor?
>
Well, after reading the code of the JEuclid add-on (which, like JEuclid,
is Open Source: the .java source file + build.xml are both included in
jeuclid_imagetoolkit.zip), I found this code:
---
private static final Name MATH = Name.get(Namespace.MATHML, "math");
...
public ImageRenderer getImageRenderer(Element element) {
if (element.getName() != MATH)
return null;
return new MathMLImageRenderer(/*isODF*/ false);
}
---
In practice, this means that for JEuclid to be used, your document must
embed a {http://www.w3.org/1998/Math/MathML}math element. Unfortunately,
using XXE v3.8, your document looks as if it embedded a {}m:math element
(because XXE v3.8 is not namespace-aware for documents conforming to DTDs).
Solving this problem would require modifying the JEuclid add-on (not
JEuclid itself, just the add-on which is a very thin layer: ~300lines).