Re: <math><mfrac><numerator> which need namespace prefix?

David Carlisle <[email protected]>
Newsgroups gmane.comp.mozilla.devel.mathml
Message-ID <[email protected]>

MathML doesn't have elements <numerator and <denominator so both your
examples are in error, and it would be unspecified what the browser
should do in those cases. Also all the elements need to be in the MathML
namespace. 

Valid forms are

<mathml:math xmlns:mathml="http://www.w3.org/1998/Math/MathML">
<mathml:mfrac>
<mathml:mn>3</mathml:mn>
<mathml:mn>4</mathml:mn>
</mathml:mfrac>
</mathml:math>

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


The main advantage of the prefixed form in an xhtml+mathml context is
that you only need declare the namespace once, say on the <html> element
and it's in scope for the whole document. But depending on the number of
elements per expression, and the length  of the prefix, the file size
may in fact be smaller by using teh unprefixed form and repeating the
namespace decln.

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.