W3C home > Mailing lists > Public > www-math@w3.org > February 2009

Re: MathML Problems

From: Ray Kiddy <ray@ganymede.org>
Date: Thu, 12 Feb 2009 12:21:38 -0800
Message-Id: <8A326345-8D04-4C8C-A138-2A6D509A6F1A@ganymede.org>
To: www-math@w3.org

On Feb 7, 2009, at 12:36 AM, Wei Bin Chuah wrote:

> Hi,
> I am a math teacher planning to use MathML for my website. However,  
> when I copy and paste the code and save it as a HTML file, it does  
> not appear as it should be. May you guys help me solve the problem?
> Thanks.

Using MathML can, unfortunately, be a bit daunting at first. Are the  
browsers you will be using able to display MathML? Not all versions of  
all browsers are.

You also have to have your content as HTML. It needs to be declared as  
the right kind of stuff for it to work. I have been searching for an  
easy way to write MathML and I cannot find one, but I am on Mac OS X  
and there may be tools on other platforms.

As far as the document structure, I am seeing this in the test cases  
in the Mozilla repository used for testing Firefox. Note the "xml"  
file extension. Firefox, for one, needs this.

Hope this helps.

cheers - ray

% cat simple.xml
<?xml version="1.0"?>
   "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
   <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">

<!-- ***** BEGIN LICENSE BLOCK *****
    - Version: MPL 1.1/GPL 2.0/LGPL 2.1
(stuff added here...)
    - ***** END LICENSE BLOCK ***** -->

<html xmlns="http://www.w3.org/1999/xhtml">
   <title>Simple Document with MathML</title>

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

Received on Thursday, 12 February 2009 20:22:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:42:15 UTC