W3C home > Mailing lists > Public > www-math@w3.org > November 2003

⁢ missing from DTD

From: Bill Naylor <Bill.Naylor@mcs.vuw.ac.nz>
Date: Mon, 3 Nov 2003 14:22:04 +1300 (NZDT)
To: www-math@w3.org
Message-ID: <Pine.SOL.4.56.0311031414490.844@debretts.mcs.vuw.ac.nz>


Unless I am doing something totally wrong(!) it seems to me that
&InvisibleTimes; is missing from the MathML dtd. In mozilla, the document:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE math
                     PUBLIC "-//W3C//DTD MathML 2.0//EN"

"http://www.w3.org/Math/DTD/mathml2/mathml2.dtd"
 >
  <html xmlns:htm="http://www.w3.org/TR/html4/">
   <head/>
   <body>
      <math xmlns="http://www.w3.org/1998/Math/MathML">
        <mrow>
          <mi>x</mi><mo>&InvisibleTimes;</mo><mi>y</mi>
        </mrow>
      </math>
    </body>
  </html>

gives me the message:

XML Parsing Error: undefined entity
Location: file:///u/staff/bill/doesntwork.mml
Line Number 11, Column 25:
<mi>x</mi><mo>&InvisibleTimes;</mo><mi>y</mi>
------------------------^

whereas If I add an Entity def:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE math
                     PUBLIC "-//W3C//DTD MathML 2.0//EN"

"http://www.w3.org/Math/DTD/mathml2/mathml2.dtd"

[<!ENTITY InvisibleTimes "&#x02062;">]
 >
  <html xmlns:htm="http://www.w3.org/TR/html4/">
   <head/>
   <body>
      <math xmlns="http://www.w3.org/1998/Math/MathML">
        <mrow>
          <mi>x</mi><mo>&InvisibleTimes;</mo><mi>y</mi>
        </mrow>
      </math>
    </body>
  </html>

I get what I wanted,

cheers

Bill.
Received on Sunday, 2 November 2003 20:22:07 GMT

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