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:   http://www.soft4science.com/MathML_Sample.xml
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)



Bernhard


mailto:Bernhard.Keil@soft4science.com
http://www.soft4science.com
http://mathml.net


-----Original Message-----
From: www-math-request@w3.org [mailto:www-math-request@w3.org]On Behalf
Of Robert Miner
Sent: Thursday, July 18, 2002 5:14 PM
To: hammond@math.albany.edu
Cc: davidc@nag.co.uk; www-math@w3.org
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"
               "http://www.w3.org/Math/DTD/xhtml-math11-f.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:m="http://www.w3.org/1998/Math/MathML">
  <head>
   <title>An xhtml+dtd example</title>
   <OBJECT ID="MathPlayer"
CLASSID="clsid:32F66A20-7614-11D4-BD11-00104BD3F987"></OBJECT>
   <?IMPORT NAMESPACE="m" IMPLEMENTATION="#MathPlayer"?>
  </head>
  <body>
    <h2>An xhtml+dtd example</h2>
    <m:math>

<m:mi>y</m:mi><m:mo>&ap;</m:mo><m:mfrac><m:mi>x</m:mi><m:mn>3</m:mn></m:mfra
c>
    </m:math>
  </body>
</html>


----------------------------------------------------------------------
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="http://www.w3.org/1999/xhtml">
  <head>
   <title>Universal Math Style Sheet example (no DTD)</title>
  </head>
  <body>
    <h2>Universal Math Style Sheet example (no DTD)</h2>
    <math xmlns="http://www.w3.org/1998/Math/MathML">
      <mi>y</mi><mo>&#x02248;</mo><mfrac><mi>x</mi><mn>3</mn></mfrac>
    </math>
  </body>
</html>


--Robert

------------------------------------------------------------------
Robert Miner                                    RobertM@dessci.com
MathML 2.0 Specification Co-editor                    651-223-2883
Design Science, Inc.   "How Science Communicates"   www.dessci.com
------------------------------------------------------------------

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