Boost logo

Boost :

From: Mathew Robertson (mathew.robertson_at_[hidden])
Date: 2008-03-05 19:24:20


Hi guys,

It is possible to make MSIE work with xhtml, although your sanity may be
lost in the process.

1. the file extension itself needs to be ".xml" and the webserver should
set the mime-type of "application/xml".

2. the page itself should have the following header:

  <?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="copy.xsl"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  <html xmlns="http://www.w3.org/1999/xhtml" ...

3. the file "copy.xsl" specified above (could be any name really...)
should have the contents:

  <stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform">
    <template match="/">
      <copy-of select="."/>
    </template>
  </stylesheet>

Maybe this helps...
Mathew Robertson

Daniel James wrote:
> On 05/03/2008, John Maddock <john_at_[hidden]> wrote:
>
>> Daniel James wrote:
>>
>> > The website also has some information on serving MathML (although
>> > their Javascript looks a little dodgy).
>>
>>
>> Yep, and their author guidelines don't exactly inspire confidence in the
>> whole thing - basically that Firefox requires files to have an .xhtml
>> extension in order to interpret them as such, where as IE simply doesn't
>> know what to do with files of that type :-(
>>
>
> I think the plugin causes internet explorer to accept xhtml documents
> with mathml, at least when downloading them with the correct
> mime-type, I'm not sure what it does with local files. It sounds
> messy, but it apparently works quite well.
>
> Coincidentally, it was announced today that IE8 will have better
> support for namespaces within HTML (not XHTML which it won't support)
> to give better support for this kind of plugin. But it looks like
> other browsers are moving in a different direction (at least that's
> what the HTML5 website seems to suggest) so it doesn't look like it's
> about to settle down just yet.
>
> Daniel
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk