[1] To make it simpler, please remove our MathML add-on and keep just
the JEuclid add-on.
[2] Unlike future v4, XMLmind XML Editor v3 is not namespace-aware when
the document being edited conforms to a DTD. Therefore please do not use
namespaces in your CSS.
Please try something like this:
---
m\:math {
display: inline;
}
FormulaEntity > m\:math {
content: "MathML Here!";
}
---
And if it works, try:
---
m\:math {
display: inline;
}
FormulaEntity > m\:math {
content: image-viewport(data-type, XML);
}
---
Thomas Dumm wrote:
>
> I do not manage to make XMLMind 3.8.1 & JEuclid to properly ***display***
> MathML contained in the xml File obeying a dtd.
> (I know, that presently it is not possible to natively ***edit*** MathML
> with XMLMind in document s abeying a dtd. Looking forward to release 4 :-) )
>
> My css file contains this:
> -------------------------------------
>
> @namespace m "http://www.w3.org/1998/Math/MathML";
>
> m|math {
> display: inline;
> }
>
> FormulaEntity> m|math {
> content: image-viewport(data-type, XML);
> }
>
>
> My xml File contains this:
> ----------------------------------------
>
> <Body>Here comes an inline equation with an exponent and a fraction:
> <FormulaEntity>
> <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
> <m:mrow xmlns:m="http://www.w3.org/1998/Math/MathML">
> <m:mfrac xmlns:m="http://www.w3.org/1998/Math/MathML">
> <m:mrow xmlns:m="http://www.w3.org/1998/Math/MathML">
> <m:msup xmlns:m="http://www.w3.org/1998/Math/MathML">
> <m:mrow xmlns:m="http://www.w3.org/1998/Math/MathML">
> <m:mi xmlns:m="http://www.w3.org/1998/Math/MathML">a</m:mi>
> </m:mrow>
> <m:mrow xmlns:m="http://www.w3.org/1998/Math/MathML">
> <m:mn xmlns:m="http://www.w3.org/1998/Math/MathML">2</m:mn>
> </m:mrow>
> </m:msup>
> </m:mrow>
> <m:mrow xmlns:m="http://www.w3.org/1998/Math/MathML">
> <m:mn xmlns:m="http://www.w3.org/1998/Math/MathML">3</m:mn>
> </m:mrow>
> </m:mfrac>
> </m:mrow>
> </m:math>
> </FormulaEntity>
> </Body>