Re: character entity

"Roger B. Sidje" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.mathml
Message-ID <[email protected]>
On 12/11/2006 3:06 AM, William F Hammond wrote:

> "Jack" <[email protected]> writes:
> 
> 
>>&Fscr; can not be showed right.
>>&Cscr; is ok.
> 
> 
> In Mozilla?  Really?
> 
> 
>>http://www.zede.info:8000/temp/200609/probabilityI/midterm.xml
>>I have already installed all the fonts.
> 
> 
> If each named entity were converted to its numeric form, e.g.,
> &Fscr; converted to &#x02131; (or the actual character
> inserted under, say, the UTF-8 text encoding), this document
> should then be OK regarding entities
> 
> It will be easier simply to add a reference to a suitable
> external DTD, e.g., add
> 
>   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
>             "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
> 
> between the xml declaration and the root element.
> 
> But note that an XML user agent, in general, is not required to fetch
> an external entity; in this case Mozilla will.

Actually, not at all. It is the Formal Public Identifier (FPI) that 
drives Mozilla (at present). It has a knowledge of a few FPIs (in 
particular all the MathML ones, including therefore "-//W3C//DTD XHTML 
1.1 plus MathML 2.0//EN").

It does not fetch external DTDs for performance reasons. Imagine if one 
had to fetch the mathml.dtd @ W3C worth a hefty 0.3-0.5GB just to 
display <math><mi>x</mi></math>, and this every time, with the 
implication that it has to be blocking -- so that one could then resolve 
what &Fscr; maps to. If users had to wait for that, it is doubtful that 
they will have the needed patience (which apparently has plummeted down 
to 2-3s these days) before they move to another website.

The bugzilla entry on the matter is bug 22942:
https://bugzilla.mozilla.org/show_bug.cgi?id=22942

---
RBS

> 
> To avoid external entity fetching by Mozilla use this instead:
> 
>   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
>             "mathml.dtd">
> 
> 
>                                     -- Bill
> 
> _______________________________________________
> dev-tech-mathml mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-mathml
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.