- From: <juanrgonzaleza@canonicalscience.com>
- Date: Tue, 29 Aug 2006 11:13:59 -0700 (PDT)
- To: <www-math@w3.org>
David Carlisle said: > >> >> 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. Well, whereas i could try to understand usage of mathml.xsl on Mozilla i do not understand usage of pmathml.xsl. Therefore i would simply to eliminate the second line. Moreover, a PI element in the prolog for linking external XSLT looks great for the text/xml or application/xml mimes with xml extension but can generate problems with a /xhtml mime with .xhtml file. See further discussion on [http://www.hixie.ch/specs/html/link/001] About the absence of DTD, it is a non issue. Without the correct DOCTYPE sniffing, Mozilla will force the quirks mode (non W3C standard) with different behavior for parsing, scripts, and CSS: [http://developer.mozilla.org/en/docs/Mozilla_Quirks_Mode_Behavior] > 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 I was just citing the last DTD recommended by Mozilla developers for the Firefox. I did not test 'new' DTDs. > 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 > Juan R. Center for CANONICAL |SCIENCE)
Received on Tuesday, 29 August 2006 18:14:11 UTC