W3C

The MathML DTD

MathML Home

The MathML 3 DTD

The MathML3 DTD is a non normative grammar derived from the RelaxNG Schema presented in Appendix A of the MathML 3 specification.

mathml3.dtd

A DTD for MathML

This DTD is the top level file. A copy of which should be referenced in any DOCTYPE declaration. It includes several other files, related to namespace support and entity definitions.

mathml3-dtd.zip

A zip file including the DTD and associated entity files.

xhtml-mathml3-f.dtd

Combined XHTML + MathML DTD. Not Yet Available


Older Releases of the MathML DTD

The MathML 2 DTD

DTD updates

The version of the DTD available from this page will be updated gradually to incorporate any corrections or changes since the MathML2 Recommendation.

Details of the character mappings and entity sets used may be found on the MathML Character description pages. As described in the MathML2 Errata document the files distributed from these directories should be considered updates to tables in Chapter 6 and to Appendix A of the First Edition of the MathML 2 Recommendation. These errata have been incorporated into the text of the Second Edition, which now refers to this page for the machine readable copy of the DTD.

As in Appendix A of the First edition of the MathML 2 Recommendation, the DTD is available as a stand alone DTD and also combined with XHTML to make a combined document type for XHTML + MathML Documents.

mathml2.dtd

A "stand alone" DTD for MathML

It now also optionally includes extra constraints if the %MathMLstrict; parameter is set to INCLUDE.

xhtml-math11-f.dtd
Combined XHTML + MathML DTD.

This file incorporates the above DTD for MathML and also uses the published version of the DTD for XHTML 1.1 (The MathML2 Recommendation was pulished shortly before the XHTML1.1 Recommendation, and an "almost final" draft of the XHTML DTD was used for the combined DTD in Appendix A.

This version of the combined DTD uses the new XHTML+MathML+SVG file driver file written by Masayasu Ishikawa.

mathml2.tgz
A gzipped tar file including these DTD and associated entity files.
mathml2-a.dtd
xhtml-math11-f-a.dtd
Earlier versions (2002-05-05) released for the MathML2 Erratum E13

Copyright  © 1998-2003 W3C (MIT, ERCIM, Keio ), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.

Valid HTML 4.0!    Valid CSS!

The MathML 1.01 DTD

The MathML 1.01 Recommendation included a zip archive of an XML DTD. We now make the DTD available in unarchived form at this URL http://www.w3.org/Math/DTD/mathml1/mathml.dtd.

A typical use of this DTD would be:

<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">
<math>
....

Maintained by: David Carlisle for the W3C Math working group