MathML

Hello.

I have been trying to use MathML, from the examples on:

	http://www.w3.org/TR/MathML2/chapter2.html#N1828

So far, they do not appear to work, using ManDrake 8.0, and the
Netscape that shipped with it (I am not sure the version used).

I get output that appears as follows:


Implementing --- sqrt(2x): 

    2x 

Implementing --- 2/x: 

    2x 

Implementing --- 2^^x: 

    2x 

Implementing --- x^^2: 

    x 2 

Implementing --- using sup notation ... Einstien's e = mc^^2: 

    e = m c 2 

Implementing --- a = two X two matrix ... x y z w: 

    A = x y z w 

Implementing --- Integral of 1/x dx from one to "t": 

    ∫ 1 t ⅆ x x x 1 t 1 x 

Implementing --- Integral of 1/x dx from one to "t": 

    x 1 t 1 x ∫ 1 t ⅆ x x 




My source code is:

<H2> MathML: </H2>
 
<math xmlns="http://www.w3.org/1998/Math/MathML">

<p> Implementing --- sqrt(2x):
<ul>
<mrow>
  <msqrt><mrow><mn>2</mn><mi>x</mi></mrow></msqrt>
  </mrow>
</ul>

<p> Implementing --- 2/x:
<ul>
  <mrow>
  <mfrac><mrow><mn>2</mn><mi>x</mi></mrow></mfrac>
  </mrow>
</ul>

<p> Implementing --- 2^^x:
<ul>
  <mrow>
  <mrow><mn>2</mn><sup><mi>x</mi></sup></mrow>
  </mrow>
</ul>

<p> Implementing --- x^^2:
<ul>
  <mrow>
    <mrow>
      <apply>
        <power/>
          <ci>x</ci>
          <cn>2</cn>
      </apply>
    </mrow>
  </mrow>
</ul>

<p> Implementing --- using sup notation ... Einstien's e = mc^^2:
<ul>
  <mrow>
    <m1>e</m1>
    <mo>=</mo>
    <mrow>
      <m1>m</m1>
      <mrow>
         <ci>c</ci>
         <sup> <cn>2</cn> </sup>
      </mrow>
    </mrow>
  </mrow>
</ul>
 
<p> Implementing --- a = two X two matrix ... x  y  z w:
<ul>
<mrow>
  <mi>A</mi>
  <mo>=</mo>
  <mfenced open="[" close="]">
    <mtable>
      <mtr>
        <mtd><mi>x</mi></mtd>
        <mtd><mi>y</mi></mtd>
      </mtr>
      <mtr>
        <mtd><mi>z</mi></mtd>
        <mtd><mi>w</mi></mtd>
      </mtr>
    </mtable>
  </mfenced>
</mrow>
</ul>
 
<p> Implementing --- Integral  of 1/x dx from one to "t":
<ul>
<mrow>
  <semantics>
  <mrow>
    <msubsup>
      <mo>&int;</mo>
      <mn>1</mn>
      <mi>t</mi>
    </msubsup>
    <mfrac>
      <mrow>
        <mo>&dd;</mo>
        <mi>x</mi>
      </mrow>
      <mi>x</mi>
    </mfrac>
  </mrow>
  <annotation-xml encoding="MathML-Content">
  <apply>
    <int/>
    <bvar><ci>x</ci></bvar>
    <lowlimit><cn>1</cn></lowlimit>
    <uplimit><ci>t</ci></uplimit>
    <apply>
      <divide/>
        <cn>1</cn>
        <ci>x</ci>
    </apply>
  </apply>
  </annotation-xml>
  </semantics>
</mrow>
</ul>
 
<p> Implementing --- Integral  of 1/x dx from one to "t":
<ul>
<semantics>
<apply>
<int/>
<bvar><ci>x</ci></bvar>
<lowlimit><cn>1</cn></lowlimit>
<uplimit><ci>t</ci></uplimit>
<apply>
<divide/>
<cn>1</cn>
<ci>x</ci>
</apply>
</apply>
<annotation-xml encoding="MathML-Presentation">
<mrow>
<msubsup>
<mo>&int;</mo>
<mn>1</mn>
<mi>t</mi>
</msubsup>
<mfrac>
<mrow>
<mo>&dd;</mo>
<mi>x</mi>
</mrow>
<mi>x</mi>
</mfrac>
</mrow>
</annotation-xml>
</semantics>
</ul>
 
 
</math>
</body>
</html>


ALL from the examples.


What I am doing wrong???


Thanks!!!


John

Received on Thursday, 28 March 2002 04:35:17 UTC