Template for XHTML + MathML + SVG
   + JavaScript + iframe + CSS

In July 2009, I again spent days seeing if I would be able to upgrade my web site to make it available to a wider browser audience, by re-writing all my code in XHTML.

Unfortunately, as this test page illustrates, I am still unable to do what I need to do in any environment other than PC + Internet Explorer + MathPlayer.

So... the good news is that I won't be spending hundreds of hours converting my code to XHTML.
This way, I'll have lots more time to devote to learning how to write math apps for the iPod Touch/iPhone.

The bad news is that my site will remain fully functional only to those people using a PC, with Internet Explorer as the browser, and with MathPlayer installed.
On the newer MACS, my site is fully functional in "PC-mode," providing again that you use Internet Explorer and have downloaded MathPlayer.
(Since I'm now primarily a MAC-user, I have to go into "PC-mode" to use my own web site!)

Sorry, everyone. Again, I've tried.
If anyone reading this page has ideas about overcoming the difficulties illustrated in this test document,
then I'd be very appreciative if you'd contact me with your insights. Thanks!

Reference for the DTD (Document Type Definition) used in this file:
http://www.w3.org/TR/XHTMLplusMathMLplusSVG/#howto-xhtml

When you save the file, the file extension must be ".xml";
this is an eXtensible Markup Language document.

This file has been validated:
XHTML: http://validator.w3.org/
CSS: http://jigsaw.w3.org/css-validator

MathML (Math Markup Language)

This is an IMAGE of the "horizontal fraction" that you will see below, if MathML is displaying properly:    a horizontal fraction

MathML:    x+1 x+2

SVG (Scalable Vector Graphics)

This is an IMAGE of the circle that you will see below, if SVG is displaying properly:    a circle

SVG:

IFRAME WITH DYNAMIC TEXT CONTAINING HTML CODE,
USING JAVASCRIPT (NO MathML)

The <iframe> tag does not validate, but it works as indicated in the chart below.

Click on "new problem" to get started!


Simplify:


Put your answer here:


Click here or press "tab" to check your answer:

July
2009
MathML?SVG? iframe with dynamic text containing HTML code, using JavaScript
(no MathML)
NOTES
Firefox (on MAC)
(Version 3.5)
NO:
Text inside HTML tags is completely ignored.
 
Internet Explorer
(Version 6.0, implemented on the MAC with VMWare Fusion)
NONONO As a LOCAL file on my machine:
MathML works, but not SVG;
Unicode checkmark does not display;
iframe with dynamic text containing HTML code, using JavaScript, works.

However, once I uploaded to my web server and tried to access the file, it wouldn't display at all. I got the following error:
"The XML page cannot be displayed. Cannot view XML input using style sheet.
The character '>' was expected.
Error processing resource 'http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd..."
Opera (on MAC)
(Version 9.64)
NONO:
Text inside HTML tags appears, but HTML formatting is not applied.
 
Safari (on MAC)
(Version 4.0.1)
NONO:
Text inside HTML tags is completely ignored.
 
Firefox (on PC)
(Version 3.5)
NO:
Text inside HTML tags is completely ignored.
 
Internet Explorer (on PC)
(Version 8.0)
NONONOFile would not display at all. I got the following error:
"Cannot view XML input using XSL style sheet.
Use of default namespace declaration attribute in DTD not supported."
Chrome (on PC)
(Version 2.0)
NONO:
Text inside HTML tags is completely ignored.