From: Reini U. <ru...@x-...> - 2004-05-31 11:49:01
|
Malcolm Ross Kinsella Ryan schrieb: > I've written the plugin and got it producing valid MathML, but I > don't seem to be able to get my browser (FireFox) to display it. > > The actual Wiki page, produce with the plugin can be seen at: > http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/index.php?pagename=SandBox > The MathML does not display properly. > > I have copied the output into the file: /home/malcolmr/public_html/blart.xhtml > if I open this file directly it shows the MathML correctly. > > if I access it via the URL http://www/~malcolmr/blart.xhtml, all I see is > the straight xhtml file listing. > > I have a copy of the file in /home/malcolmr/public_html/blart.html > if I open this file directly it does not display the MathML correctly. > Likewise if I access it over the web. > > I haven't tested this out with IE yet. > > I'm not very XHTML-savvy. Does anyone have any ideas how I can get this to > do the right thing? Header and namespace wise everything is correct. But you need this header: "Content-Type: application/xhtml+xml" instead of "Content-Type: text/html" which phpwiki or php sends automatically. Your server even sends it as text/plain: $ GET -esSUd http://cgi.cse.unsw.edu.au/~malcolmr/blart.xhtml GET http://cgi.cse.unsw.edu.au/~malcolmr/blart.xhtml User-Agent: lwp-request/2.06 GET http://cgi.cse.unsw.edu.au/~malcolmr/blart.xhtml --> 200 OK Connection: close Date: Mon, 31 May 2004 11:45:30 GMT Accept-Ranges: bytes ETag: "17fbd-18d0-40bad2ac" Server: Apache/1.3.29 (Debian GNU/Linux) PHP/4.3.3 Content-Length: 6352 Content-Type: text/plain; charset=iso-8859-1 Last-Modified: Mon, 31 May 2004 06:37:32 GMT Client-Date: Mon, 31 May 2004 11:47:50 GMT Client-Peer: 129.94.242.40:80 Client-Response-Num: 1 and phpwiki: $ GET -esSUd http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/?SandBox GET http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/?SandBox User-Agent: lwp-request/2.06 GET http://cgi.cse.unsw.edu.au/~malcolmr/bushfire/?SandBox --> 200 OK Cache-Control: must-revalidate Connection: close Date: Mon, 31 May 2004 11:46:54 GMT ETag: W/"4aa174d88e7f1998ae8c0163651a3ef8" Server: Apache/1.3.29 (Debian GNU/Linux) PHP/4.3.3 Vary: Cookie Content-Type: text/html; charset=iso-8859-1 Content-Type: text/xhtml; charset=iso-8859-1 ..... I'll see what I can do. We need to override the Content-Type for pdf and svg also. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |