Re: Samples from the Internet

> Just by curiosity. There exists another online validator (from a famous
> CAS) that approves
> 
> <math xmlns='http://www.w3.org/1998/Math/MathML'>
> <apply>
>  <mo>&gg;</mo>  <!-- put entity for the operator here -->
>  <ci>x</ci>
>  <cn>0</cn>
> </apply>
> </math>
> 
> as valid MathML.

yes as I said, in my corrected messgage, the dtd won't flag this as an
error by default so it is valid in the technical definition of valid as
defined by XML. That doesn't mean however that it isn't an error as MathML.

http://www.w3.org/TR/MathML/appendixa.html

says

  ... and partly due to the fact that for reasons of compatibility with
  earlier releases, the DTD is intentionally forgiving in some places and
  does not enforce constraints that are specified in the text of this
  specification. 

A few paragraphs further down
http://www.w3.org/TR/MathML/appendixa.html#parsing.dtd.strict
it does explain how the DTD can be made to check some additional things,
including this.

David

Received on Monday, 27 November 2006 11:25:08 UTC