W3C home > Mailing lists > Public > www-math@w3.org > October 2001

Re: Thanks and "including" mathml

From: David Carlisle <davidc@nag.co.uk>
Date: Wed, 24 Oct 2001 18:20:42 +0100
Message-Id: <200110241720.SAA06415@penguin.nag.co.uk>
To: leo@iems.nwu.edu
CC: www-math@w3c.org
  I would expect someone writing a solver to be able to
  access a MathML/openmath object relatively easily,

there has been some work on some generic openmath phrasebooks at
Eindhoven, which might give you some ideas.
http://crystal.win.tue.nl/projects/om/lib/guide/index.html

> If there aren't people working on that, that
> makes me worried.
There are people working....

> Actually, I am trying to do the easy thing: To extend my DTD to understand
> (some) mathml.

well that was my point: DTD's don't understand, they just allow.
So if you have a DTD that has a para element and you want to allow
mathematics in paragraphs you just need to change one line of the dtd,
and add two:

Change
<!ELEMENT para (#PCDATA|a|b|c)*>
to
<!ELEMENT para (#PCDATA|a|b|c|math)*>

and add

<!ENTITY % mathml SYSTEM "some/path/to/a/copy/of/mathml.dtd">
%mathml;

Then you are done as far as the dtd is concerned and you can validate
documents containg mathml with your parser.

But of course any tools that you were using to read documents conforming
to your old dtd will fall over until you teach them about mathml, and
then it depends a lot what your tools are doing, as to how hard this is.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
Received on Wednesday, 24 October 2001 13:21:12 GMT

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