Re: [xsl] Parameter entity must be defined before it is used

Subject: Re: [xsl] Parameter entity must be defined before it is used
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 6 May 2004 10:09:58 +0100
  Well afaict there is something wrong with the dtd - but its far too big
  to dicpher :)

hey watch it, that's "my" DTD:-)

Actually there is something wrong with the DTD (and IE wouldn't read
that one anyway as there is something wrong with IE)

the correct URI is

http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd

> The xhtml will display in your browser because most likely it makes no
> attempt to get the dtd (I don't know about Mozilla but IE certainly
> doesn't use an xml parser for xhtml).

IE will only render XHTML+MathML if it is served with an XML mime type
and if it is so served it will use an XML parser and will use the
specified DTD.
For this reason it iis a good idea not to specify the DTD on teh files
that are being served as the XHTML+MathML DTD is rather large and teh
time taken to download that can have a very significant effect on
rendering time.

> Are you sure that the dtd really is an xml dtd?

That was addressed to the original poster, but _I'm_ sure of that:-)

The error message in the subject line is in fact caused by a bug in IEs
parser not being able to read the original version. The version at the
specified location has an "equivalent" setup of parameter entities that
does work in IE although you have to have IE6 SP1 otherwise you get a
different error  as older versions of IE used an XML parser that would
not accept any character references above hex FFFF.

As I say above, the simple solution is not to reference the DTD at all.

David

(Co Chair, W3C Math Interest Group and editor of the MathML DTD when I'm
not chatting on xsl-list)

-- 
The LaTeX Companion
  http://www.awprofessional.com/bookstore/product.asp?isbn=0201362996
  http://www.amazon.co.uk/exec/obidos/tg/detail/-/0201362996/202-7257897-0619804


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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
________________________________________________________________________

Current Thread