W3C home > Mailing lists > Public > www-math@w3.org > August 2006

Re: mathml with netscape 7.1 and Mozilla Firefox 1.5.0.6

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 29 Aug 2006 15:34:28 +0100
Message-Id: <200608291434.k7TEYSB7007100@edinburgh.nag.co.uk>
To: www-math@w3.org


> 
> Hi, you are omiting the DTD for correct sniffing. For the Firefox, Mozilla
> people also recommends a different namespace declaration in the math
> element:
> 
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="pmathml.xsl"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
>                "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd" [
>   <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">
> ]>
> <html xmlns="http://www.w3.org/1999/xhtml">
> 
> ...

It's not usually a good idea to specify the dtd if using pmathml.xsl, it
will not have any effect on mozilla (unless entity refererences are used
in the file) but in IE it will cause the browser to fetch the dtd from
the w3c site which slows things down considerably, and even if the dtd
is already in the browser cache just reading the dtd can take a
noticable amount of time.
If you are specifying a DTD, then
http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd
is not the correct DTD to specify, that is an old version. The DTD is
specified in MathML 2 (2nd ed) as
http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd

If you are not using pmathml and are allowing mathplayer to auto-detect
mathml then specifying the doctype is necessary, and doesn't have an
effect on performance as the dtd is not actually fetched in that case.

David
Received on Tuesday, 29 August 2006 14:34:51 GMT

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