Jon Thackray
2004-11-02 20:29:35 UTC
I'm trying to build some mathml for a paper. I've got the mathml2 dtd,
and the style sheets also from the canonical website
http://www.w3.org/Math/. But I'm having some trouble. I've input the
example from page 90 of the mathml handbook, which is a simple bounded
integral. The mathml is as follows, where I've substituted the
numerical values for the named entities:-
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE math SYSTEM "../mathml2/mathml2.dtd">
<math
xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<munderover>
<mo>∫</mo>
<mi>a</mi>
<mi>b</mi>
</munderover>
<mi>f</mi>
<mo>⁡</mo>
<mrow>
<mo>(</mo><mi>x</mi><mo>)</mo>
</mrow>
<mo>ⅆ</mo><mi>x</mi>
</mrow>
</math>
The result of applying the mathml.xsl stylesheet, using pmathmlcss.xsl
in place of pmathml.xsl, is given below. However, this doesn't display
as the book shows it. The integral and its limits look fine, but the
function f(x) appears underneath it instead of to the right. IE 6 and
Mozilla 0.9.9 both display it the same way, so I guess there must be
something wrong with the original markup. Any idea what?
<span xmlns:m="http://www.w3.org/1998/Math/MathML" id="d0e1"
class="mrow"><span id="d0e3" class="mrow">
<table class="munderover">
<tr>
<td><span class="mi1">b</span></td>
</tr>
<tr>
<td><span id="d0e7" class="mo">∫</span></td>
</tr>
<tr>
<td><span class="mi1">a</span></td>
</tr>
</table><span class="mi1">f</span><span id="d0e20"
class="mrow"><span id="d0e22" class="mo">(</span><span
class="mi1">x</span><span id="d0e26"
class="mo">)</span></span><script>
var mrowH = d0e20.offsetHeight;
mrowStretch(d0e22,"æ","ç","ç","è");
mrowStretch(d0e26,"ö","÷","÷","ø");</script><span id="d0e30"
class="mo">ⅆ</span><span class="mi1">x</span></span></span>
and the style sheets also from the canonical website
http://www.w3.org/Math/. But I'm having some trouble. I've input the
example from page 90 of the mathml handbook, which is a simple bounded
integral. The mathml is as follows, where I've substituted the
numerical values for the named entities:-
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE math SYSTEM "../mathml2/mathml2.dtd">
<math
xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<munderover>
<mo>∫</mo>
<mi>a</mi>
<mi>b</mi>
</munderover>
<mi>f</mi>
<mo>⁡</mo>
<mrow>
<mo>(</mo><mi>x</mi><mo>)</mo>
</mrow>
<mo>ⅆ</mo><mi>x</mi>
</mrow>
</math>
The result of applying the mathml.xsl stylesheet, using pmathmlcss.xsl
in place of pmathml.xsl, is given below. However, this doesn't display
as the book shows it. The integral and its limits look fine, but the
function f(x) appears underneath it instead of to the right. IE 6 and
Mozilla 0.9.9 both display it the same way, so I guess there must be
something wrong with the original markup. Any idea what?
<span xmlns:m="http://www.w3.org/1998/Math/MathML" id="d0e1"
class="mrow"><span id="d0e3" class="mrow">
<table class="munderover">
<tr>
<td><span class="mi1">b</span></td>
</tr>
<tr>
<td><span id="d0e7" class="mo">∫</span></td>
</tr>
<tr>
<td><span class="mi1">a</span></td>
</tr>
</table><span class="mi1">f</span><span id="d0e20"
class="mrow"><span id="d0e22" class="mo">(</span><span
class="mi1">x</span><span id="d0e26"
class="mo">)</span></span><script>
var mrowH = d0e20.offsetHeight;
mrowStretch(d0e22,"æ","ç","ç","è");
mrowStretch(d0e26,"ö","÷","÷","ø");</script><span id="d0e30"
class="mo">ⅆ</span><span class="mi1">x</span></span></span>