To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=69088





------- Additional comments from [email protected] Fri Nov 20 08:23:22 
+0000 2009 -------
This file was taken from OOo (I corrected and resaved the file, prepaired with 
Tex4ht). OK, I cleaned up all errors found with ODF validator manually and the 
file passed the check.

After that, I removed the "annotation" tag from the MathML file (attachment 
66205 http://www.openoffice.org/nonav/issues/showattachment.cgi/66205/
content_valid_wo_annotate.mml). ODF validator suggested this to be an error:

upload:///test2.odt/test-m2//test-m2/content.xml[2,953]:Error:cvc-complex-
type.2.4.b: The content of element 'math:semantics' is not complete. One of 
'{"http://www.w3.org/1998/Math/MathML":annotation, "http://www.w3.org/1998/Math/
MathML":annotation-xml}' is expected.

So, ODF validator requires "annotation" tag. Next, look at the MathML page in 
Wikipedia (http://en.wikipedia.org/wiki/MathML). There is an example of MathML 
code with two "annotation" tags, one in TeX format, another in "StarMath 
format":
  <annotation encoding="TeX">
     x=\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
  </annotation>
  <annotation encoding="StarMath 5.0">
     x={-b plusminus sqrt {b^2 - 4 ac}} over {2 a}
  </annotation>
The software should distinguish the annotation format with "encoding" token. 
But ODF validator claims "encoding" token to be incorrect!

upload:///test1.odt/test-m2//test-m2/content.xml[2,1136]:Error:cvc-complex-
type.3.2.2: Attribute 'math:encoding' is not allowed to appear in element 
'math:annotation'.

Next, I placed the annotation in TeX format to the MathMl file and removed the 
"encoding" token (which is ignored by ODF validator and OOo). ODF validator 
detects this:

upload:///test2.odt/test-m2//test-m2/content.xml[2,948]:Error:cvc-complex-
type.2.4.a: Invalid content was found starting with element 'annotation'. One 
of '{"http://www.w3.org/1998/Math/MathML":annotation, "http://www.w3.org/1998/
Math/MathML":annotation-xml}' is expected.

The results. ODF validator requires MathML, embedded into ODF, to have 
"annotation" tag and it should be exactly in StarMath format. Otherwise the 
file would be suggested to be incorrect. But Open Document Format itself is the 
standard irrespective to the particular software, like StarMath. Unfortunatelly 
its current version lacks the description of the formula format. Maybe the root 
of this problem lays here. I haven't found any mention of "StarMath 5.0" if the 
ODF standard and in http://www.w3.org/1998/Math/MathML.

So now, the ODF validator http://tools.services.openoffice.org/odfvalidator/ 
check files not to be complicant to the Open Document Format standard, but to 
be compartible with OpenOffice. It's the OOo validator.

By the way, OOMath incorrectly displays the MathML formulas from official 
MathML testsuite http://www.w3.org/Math/testsuite/

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to