W3C home > Mailing lists > Public > www-math@w3.org > October 2006

RE: The problems with namespaces in text/html

From: White Lynx <whitelynx@operamail.com>
Date: Tue, 10 Oct 2006 16:50:04 +0400
To: www-math@w3.org
Message-Id: <20061010125004.C00BD43D76@ws5-1.us4.outblaze.com>

> Beyond that I
> would like to see the HTML elements <a>, <em>, and <b> (or <strong>)
> incorporated in the XHTML+MathML document type definition as elements
> that are allowed in <mtext>.

Technically you can't do such a things in DTD, if you allow em, b, a in mtext then you effectively allow all inline elements (including MathML math) to be descendands of mtext element (however such a compound of HTML and MathML, probably, can be properly defined in RelaxNG). It is not a problem in HTML5 as it has no DTD/Schema at all.

> > Is <b> really needed, when one has <mstyle  mathvariant="bold"> (which
> > works everywhere in MathML)?
> Yes, <b> (or something) is needed.

It is there even if it is not needed.

> <mstyle> is not allowed in <mtext> even though Mozilla seems to
> tolerate it there.

You can use something like
	<mtext>normal text </mtext><mtext mathvariant="bold">bold, </mtext><mtext mathvariant="italic">italic, </mtext><mtext mathvariant="monospace">teletype</mtext>

But the real issue here is that if (on practice "if" can be omitted) one will try to stir tagsoup like
	<mtext>normal text <b>bold,</b> <i>italic</i>, <tt>teletype</tt></mtext>
or stir it further and replace
	<math xmlns="http://www.w3.org/1998/Math/MathML">
	<i>a</i><var>x</var><sup>2</sup> + <i>b</i><var>x</var> + <i>c</i> = 0
then it does not make sense to call everything this MathML. 

Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze
Received on Tuesday, 10 October 2006 12:49:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:38 UTC