Skip NavigationDesign Science: How Science Communicates
Products Solutions Store Support Reference Company View Cart
 
 

back to Introduction to Using MathML

MathML in XHTML Reference

Summary of Required Declarations

Declaration Mozilla/Firefox Internet Explorer 6 + MathPlayer
MIME type text/xml text/html
DOCTYPE required, but read from cache optional, but read if given
Namespaces required, may be specified either by scope or prefix required, must be specified by prefix
OBJECT tag and Behavior Processing Instruction ignored required for MathPlayer or Techexplorer

Declaration Examples

DOCTYPE
<!DOCTYPE html SYSTEM "..//xhtml-math11-f.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"../DTD/xhtml1-strict.dtd">

<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"
[<!ENTITY mathml http://www.w3.org/1998/Math/MathML"> ]>
Namespaces
<html xmlns="http://www.w3.org/1999/xhtml">
  ...
  <math xmlns="http://www.w3.org/1998/Math/MathML">
    <mi>x</mi><mo>+</mo><mn>2</mn>
  </math>
  ...
</html>

<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:m="http://www.w3.org/1998/Math/MathML">
  ...
  <m:math>
    <m:mi>x</m:mi><m:mo>+</m:mo><m:mn>2</m:mn>
  </m:math>
  ...
</html>
OBJECT tag and Behavior PI
<OBJECT
   ID="mathplayer"
   CLASSID="clsid:32F66A20-7614-11D4-BD11-00104BD3F987">
</OBJECT>

<?IMPORT NAMESPACE="M" IMPLEMENTATION="#mathplayer" ?>
Stylesheet PI
<?xml-stylesheet type="text/xsl" href="style/mathml.xsl"?>

Software Links

Amaya http://www.w3.org/Amaya/
Firefox http://www.mozilla.com
IE XML tools (iexmltls.exe) http://www.microsoft.com/downloads/details.aspx?FamilyID=d23c1d2c-1571-4d61-bda8-adf9f6849df9&displaylang=en
MathFlow http://www.dessci.com/mathflow
MathPlayer http://www.dessci.com/mathplayer
MathType http://www.dessci.com/en/products/mathtype/default.htm
MikTeX http://www.miktex.org/
TeX4ht http://www.cse.ohio-state.edu/~gurari/TeX4ht/

back to Introduction to Using MathML

Copyright ©1996-2018 Design Science, a Wiris company. All rights reserved. | Privacy statement