W3C home > Mailing lists > Public > www-math@w3.org > June 2003

Implementing MathML on the web

From: Guest, Arlene USA <aguest@nps.navy.mil>
Date: Mon, 2 Jun 2003 15:37:42 -0700
Message-ID: <FA6039B362EB3741BDCF5F2F07D79D076F23DC@grasp.ad.nps.navy.mil>
To: <www-math@w3c.org>



> Dear W3C Math Working Group,
>   I have made some progress in implementing mathml on a webserver following the directions on http://www.w3.org/Math/XSL/ but I have a couple problems that I'm hoping you can give me some advice on.  I have a test page at http://www.oc.nps.navy.mil/~bird/mathml/mathml_samples.xml  My goal is to have the math displayed without use of any plug-in such as MathPlayer.  It doesn't seem to be finding the ctop.xsl file, but that is in the same directory as the xml files.  ( I have the files ctop.xsl mathml.xsl, pmathml.xsl, pmathmlcss.xsl.  all locally).  All the examples render on machines that have Mathplayer installed, but not when I put in a preference for css.  Another problem is that entities aren't displayed in Netscape with the css preference, but they do work with Mathplayer.  I have the <!DOCTYPE ...> statement in my code that I thought fixed that problem at first - I'm including the code below.  Any help or suggestions will be appreciated.   I also tried to get xlink to work, so I could link from withn a math statement.  Do you have any examples I could follow to get that to work too?
> 
> Arlene Guest
> Arlene Guest
> Senior Lecturer
> Naval Postgraduate School
> Monterey, CA 93943
> email: aguest@nps.navy.mil
> 
> 
> Here's the mathml_samples.xml code -
>  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <?xml-stylesheet type="text/xsl" href="mathml.xsl"?>
> <!DOCTYPE html PUBLIC "-/W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:pref="http://www.w3.org/2002/Math/preference" pref:renderer="css" xml:lang="en">
> 
> <head>
> <title>MathML Testing</title>
> <meta http-equiv="content-type" content="mathml"/>
> </head>
> <body bgcolor="white">
> 
> <h3><center>MathML Test Equations</center></h3>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>   <reln>
>     <neq/>
>      <ci>a</ci>
>      <ci>b</ci>
>    </reln>
> </math>
> <p>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
>      <mi>&pi;</mi>
> </math>
> </p>
> <p>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
> <mi>x</mi>
>  <mo>+</mo>
>  <mn>3</mn>
> </math>
> </p>
> 
> 
> <math xmlns="http://www.w3.org/1998/Math/MathML">
> <msub>
> <mi>x</mi>
>  <mn>1</mn>
> </msub>
> 
> <mo>+</mo>
> <msub>
> <mi>x</mi>
>   <mn>2</mn>
>   </msub>
> 
> </math>
> 
> <p>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
> <mrow>
> <msup>
>      <mfenced>
>      <mi>a</mi>
>      <mo>+</mo>
>      <mi>b</mi>
>      </mfenced>
>    <mn>3</mn>
>   </msup>
>  </mrow>
> 
> </math>
> </p>
> 
> 
> <p>
> 
> <math xmlns="http://www.w3.org/1998/Math/MathML">
> <apply>
>    <power/>
>      <apply>
>        <plus/>
>            <ci>a</ci>
>            <ci>b</ci>
>      </apply>
>     <cn>3</cn>
>   </apply>
> 
> 
> </math>
> 
> </p>
> <p>
> <math xmlns="http://www.w3.org/1998/Math/MathML">
> <mfrac linethickness="1">
>    <mrow>
>      <mn>2</mn>
>    <mi>w</mi>
>    </mrow>
>     <mrow>
>      <mo>(</mo>
>       <mi>x</mi>
>       <mo>+</mo>
>       <mi>y</mi>
>      <mo>)</mo>
>      </mrow>
>   </mfrac>
> 
> 
> </math>
> </p>
> 
> 
> </body>
> </html>
> 
> 
> 
Received on Monday, 2 June 2003 18:37:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:55 GMT