W3C home > Mailing lists > Public > www-math@w3.org > July 2003

Re: Entity-references and Doctype declarations

From: David Carlisle <davidc@nag.co.uk>
Date: Fri, 11 Jul 2003 00:21:19 +0100
Message-Id: <200307102321.AAA14013@e3000>
To: mortena@mip.sdu.dk
CC: www-math@w3.org




> Can doctype declarations be avoided when it is crucial to use entity 
> references?

No. An undefined entity reference with no DOCTYPE is a fatal error
mandated by the XML specification so your file is rejected by the parser
before XSLt (or any other application) ever starts.
Probably it would work if you didn't use xml and just used html and
mathplayer as (I think) in that case mathplayer gets the string
directly but then it wouldn't work on mozilla or netscape and would be
relying on non standard behaviour.

Of course you don't need to load the entire DTD, if you are building teh
files from some other source you can just load a special DTD taht just
has the entity definitions that you need. Or you can use &#12324;
syntax instead of the named entities then you don't need a DTD/

> Can it be avoided that the overflow parameter is added? (Should it be 
> avoided, or is that a BAD thing to do?)
you could modify your local copy of the dtd not to default that, if you
need to.

David
Received on Thursday, 10 July 2003 19:21:26 GMT

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