XHTML & XML + MathML

Hi,
     I'm the administrator of the MathStudio project (
<http://mathstudio.sourceforge.net/> http://mathstudio.sourceforge.net);
MathStudio is an open source application with MathML
content/presentation export support. To complete the project, I need
some information:
 
1)      MathML documents can be exported both in pure XML and in XHTML,
right ?
2)   Is XML tag validation case-dependent ?
2)      What is the correct header for an XML file embedding MathML ?
3)      What is the correct header for an XHTML file embedding MathML ?
I have found various headers:
 
This is the header used as example in MathML specifications section 1
(working with Mozilla\Netscape but not with IE+MathPlayer):
 

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

 

<head>

<title>MathML's Hello Square</title>

</head>

 

<body>

 

<p> This is a perfect square:</p>

 

<math xmlns="http://www.w3.org/1998/Math/MathML">

 <mrow>

   <msup>

     <mfenced>

       <mrow>

         <mi>a</mi>

         <mo>+</mo>

         <mi>b</mi>

       </mrow>

     </mfenced>

     <mn>2</mn>

   </msup>

 </mrow> 

</math>

 

</body>

</html>
 
This is the header used in the examples of MathML support at Mozilla.org
(working only with Mozilla\Netscape):
 

<?xml version="1.0"?>

<!DOCTYPE html PUBLIC

  "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"

  "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"

[

  <!ENTITY mathml "http://www.w3.org/1998/Math/MathML">

]>

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

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

<!--

  *  The contents of this file are subject to the Mozilla Public

  *  License Version 1.1 (the "License"); you may not use this file

  *  except in compliance with the License. You may obtain a copy of

  *  the License at http://www.mozilla.org/MPL/

  *

  *  Software distributed under the License is distributed on an "AS

  *  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or

  *  implied. See the License for the specific language governing

  *  rights and limitations under the License.

  *

  *  The Original Code is Mozilla MathML Project.

  *

  *  The Initial Developer of the Original Code is The University of

  *  Queensland.  Portions created by The University of Queensland are

  *  Copyright (C) 1999 The University of Queensland.  All

  *  Rights Reserved.

  *

  *  Contributor(s):

  *    Roger B. Sidje <rbs@maths.uq.edu.au>

  -->

<head>

  <title>MathML Extras</title>

</head>

 

<body>

 

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">

<mrow>

<mrow>

  <msub title="Base-a log">

    <mi>log</mi>

    <mi>a</mi>

  </msub>

  <mo>&ApplyFunction;</mo>

  <mi>x</mi>

</mrow>

<mo>=</mo>

<mfrac>

  <mrow>

    <mi title="Natural log">ln</mi>

    <mo>&ApplyFunction;</mo>

    <mi>x</mi>

  </mrow>

  <mrow>

    <mi title="Natural log">ln</mi>

    <mo>&ApplyFunction;</mo>

    <mi>a</mi>

  </mrow>

</mfrac>

</mrow>

</math>

</body>

</html>

 
 
With IE, using the header above I get:
Before using the entity parameter, it's necessary to define it. Error
during the processing of the resource
"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd". Riga 148,
posizione 2 
%xhtml-prefw-redecl.mod;
-^
 

Which is correct ? 
 
Thank you all very much,
Francesco Montorsi

Received on Monday, 21 July 2003 05:32:54 UTC