W3C home > Mailing lists > Public > www-math@w3.org > September 2004

Re: itex2MML doesn't support MATHML2.0

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 21 Sep 2004 17:52:20 +0100
Message-Id: <200409211652.RAA15885@penguin.nag.co.uk>
To: lidaobing@gmail.com
CC: www-math@w3.org



>   but I find that mathml2.0 doesn't support `&Integral;', 
> for example

MathML does have an entity of that name but always in XML if you use a
named entity other than the five predefined ones (apos amp quot lt gt)
you need to reference a DTD that defines the entities.

So in this case you need something like

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" 
               "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


....


Without that, the file is not well formed XML and so will generate an XML
error in any XML parser before the MathML system really sees the file at
all.


An alternative to referencing the DTDs to reference the character by
number rather than by name, so &#8747; in this case.


Appendix A of the MathML spec has some more suggestions regarding DTD
usage.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
Received on Tuesday, 21 September 2004 16:52:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:40 UTC