RE: details for /Math/XSL/ at w3

It is possible to use entity names when using the universal stylesheet
in an inline doctype declaration

So if the application which generates the XHTML+MathML document
takes care about inserting the entity declarations wich are used in the
current document
as an inline doctype declaration, that could be an alternative.

Here is an example:
This uses the universal stylesheet and be be viewed in Mozilla as well.
(There was a bug in Mozilla which caused problems viewing this example,
 this Bug in Mozilla is fixed in the current version)


-----Original Message-----
From: []On Behalf
Of Robert Miner
Sent: Thursday, July 18, 2002 5:14 PM
Subject: Re: details for /Math/XSL/ at w3


The killer is that this single file has to be served as XML to NS7 and
HTML to IE6, which requires server-side trickery or something.

So, the better alternative is to use David's stylesheet which does the
MIME type switching for you client-side.  And, since it can write out
the other declarations as well, you don't have to put in the awkward bits
that have to be ignored by one browser or the other when preparing a
single, common file.  So, going this route, you need

0) a proper XHTML + MathML document with

       1) no DOCTYPE (which means you can't use entity names)

2) MathML namespace indicated whatever way you find most convenient
3) the stylesheet processing instruction (and stylesheet, of course)

Anyway, that's my summary of the situation.  And, just to finish it
off, I include minimal sample docs below, showing each method:

Document which works in both IE6 and NS7 if served with the
appropriate MIME type for each

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"

<html xmlns=""
   <title>An xhtml+dtd example</title>
   <OBJECT ID="MathPlayer"
    <h2>An xhtml+dtd example</h2>


Simpler Document which works in both IE6 and NS7 when used with
David Carlisle's stylesheet

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="pmathml.xsl"?>
<html xmlns="">
   <title>Universal Math Style Sheet example (no DTD)</title>
    <h2>Universal Math Style Sheet example (no DTD)</h2>
    <math xmlns="">


Robert Miner                          
MathML 2.0 Specification Co-editor                    651-223-2883
Design Science, Inc.   "How Science Communicates"

Received on Thursday, 1 August 2002 13:00:17 UTC