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: Bruce Miller <bruce.miller@nist.gov>
Date: Mon, 28 Aug 2006 11:07:43 -0400
Message-ID: <44F306BF.4010605@nist.gov>
To: wopsch <wopsch@nefkom.net>
CC: www-math@w3.org

wopsch wrote:
> 
> hello,
> 
> sorry, but my english is not so well. I write from nuremberg, germany.
> 
> My problem, and I hope you can help me, is:
> I want to create a website with mathematical content by using mathml.
> I have no problems with IE/mathplayer. IE/mathplayer displays the 
> notation correctly.
> I have problems with netscape and firefox. Every site in the web which 
> use mathml is correctly displayed, but not my website.
> Is the problem the serverconfiguration?
> 
> My code:
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="pmathml.xsl"?>
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
>   <meta http-equiv="Content-Type" content="text/html" />

You'll want to use "application/xhtml+xml"
And you'll probably also need to add a mime-type mapping
for your web server.  Assuming you're using the
extension .xhtml for such files, with apache you'd put
   AddType application/xhtml+xml .xhtml
into your httpd.conf

>   <title>Test</title>
> </head>
> 
> <body>
> 
> <math display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
> 
>   <mrow>
>    <mfrac>
>     <mn>1</mn>
>     <mn>2</mn>
>    </mfrac>
>    <msup>
>     <mi>x</mi>
>     <mn>2</mn>
>    </msup>
>    <mo>&#x2212;</mo><mn>4</mn><mi>x</mi>
>   </mrow>
> 
> </math>
> 
> </body>
> </html>
> 
> thank you
> Wolfgang, Nuremberg (Germany)
> 
> 
> 
> 
> 


-- 
bruce.miller@nist.gov
http://math.nist.gov/~BMiller/
Received on Monday, 28 August 2006 15:08:12 GMT

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