Equation element remains empty in HTML
Posted: Fri Apr 29, 2022 8:06 pm
Hello, everyone!
I crammed Eliot Kimber's tutorials about specialization and custom attributes. I got good results while following the step by steps and I start to better understand the principles between .mod, .ent and .dtd.
However, I am struggling now to understand how to debug a plugin based on mathml and using equations.
A client sent me a project were equations are written like this:
So far, so good. However, when I publish my project with an HTML scenario, the source outputs an empty element instead of the maths:
When exploring the dtd, it seems a .mod file contains elements that may produce the problem because Oxygen indicates that the bolded elements below are not declared. However, I assume %image and %basic.ph are regular elements in DITA-OT
.
Is there any way or methodology to unravel this issue? Something that would help determining which file is problematic.
Thanks a lot for any feedback and support
I crammed Eliot Kimber's tutorials about specialization and custom attributes. I got good results while following the step by steps and I start to better understand the principles between .mod, .ent and .dtd.
However, I am struggling now to understand how to debug a plugin based on mathml and using equations.
A client sent me a project were equations are written like this:
Code: Select all
<equation-inline>
<mathml>
<m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
<m:mn>0</m:mn>
<m:mo>.</m:mo>
<m:mn>4</m:mn>
<m:mi>L</m:mi>
</m:math>
</mathml>
</equation-inline>
Code: Select all
<span class="ph equation-inline"></span>
.
Code: Select all
<!ENTITY % equation.cnt
"#PCDATA |
mathml |
[b]%basic.ph; |
%data.elements.incl; |
%foreign.unknown.incl; |
%image; |
%txt.incl;[/b]
">
Thanks a lot for any feedback and support
