Apache OpenOffice (AOO) Bugzilla – Issue 78357
MathML attributes incorrectly namespaced
Last modified: 2014-12-16 20:22:26 UTC
When saving as MathML, attributes are in the http://www.w3.org/1998/Math/MathML namespace when they should be in the null namespace. For example, "left [ right ]" is exported as: <math:mfenced math:open="[" math:close="]"/> when it should be: <math:mfenced open="[" close="]"/>
Reassigned to JW.
I am not quite sure if this is the right place to place this, BUT: I am experiencing large difficulties when trying to validate a OOo Math .odf file created with the OO 3.1 Math. to elaborate on this, please find below the output of the "OdfValidator Online service". It seems as if there are massive problems with the "math:" Namespace. How can it be, that OO 3.1 produces files formula (using the math.dtd that is shipped with the OO distribution), that are not even valid in regard to this math.dtd? Not to mention that there are also problems with validating against the math2.xsd Schema.? I'd be happy to get some feedback on this, as I have been working for quite a while now to solve this issues. I have tried to validate the content.xml of .odf file using the SUN MSV Validator as well as simply by validating against the math.dtd using a SaxBuilder. I cannot find a way to validate this file without errors. That's true for files with ODF v1.2 as well as for files with ODF v1.1. Where is my mistake? Thanks a lot for your answers and cheers Peter Melms --------------------------------------------------------------------------- upload:///formula_12.odf:Info:ODF Version: 1.2 internal:schema/odf12/OpenDocument-schema-v1.2-cd02.rng:Info:parsed. upload:///formula_12.odf/meta.xml:Info:Generator: OpenOffice.org/3.1$Win32 OpenOffice.org_project/310m19$Build-9420 upload:///formula_12.odf/meta.xml:Info:no errors internal:schema/odf12/OpenDocument-manifest-schema-v1.2-draft6.rng:Info:parsed. upload:///formula_12.odf/META-INF/manifest.xml:Info:no errors upload:///formula_12.odf:Info:Media Type: application/vnd.oasis.opendocument.formula upload:///formula_12.odf/settings.xml:Info:no errors internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/common/math.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/common/common-attribs.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/common/xlink-href.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/common-types.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/common-attribs.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/characters.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/tokens.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/scripts.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/space.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/layout.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/table.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/style.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/error.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/presentation/action.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/common-attrib.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/tokens.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/arith.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/functions.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/logic.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/constructs.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/constants.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/elementary-functions.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/relations.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/semantics.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/sets.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/linear-algebra.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/calculus.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/vector-calculus.xsd' internal:schema/mathml2/mathml2.xsd:Info:resolving 'internal:schema/mathml2/content/statistics.xsd' internal:schema/mathml2/mathml2.xsd:Info:parsed. upload:///formula_12.odf/content.xml:Info:Ignoring doctype definition '-//OpenOffice.org//DTD Modified W3C MathML 1.01//EN' upload:///formula_12.odf/content.xml[2,230]:Error:cvc-complex-type.3.2.2: Attribute 'math:stretchy' is not allowed to appear in element 'math:mo'. upload:///formula_12.odf/content.xml[2,319]:Error:cvc-complex-type.3.2.2: Attribute 'math:encoding' is not allowed to appear in element 'math:annotation'. upload:///formula_12.odf/content.xml:Info:validation errors found internal:schema/odf12/OpenDocument-dsig-schema-v1.2-draft6.rng:Info:parsed. upload:///formula_12.odf:Info:validation errors found ---------------------------------------------------------------------------
Sorry for the typos below, hit the submit button to fast ;-) What would be the proper way to validate the content.xml subfile of "application/vnd.oasis.opendocument.formula" files? Thanks in advance! Peter
tl->rdmsoft: Instead of listing the ODF validator output, could you attach the document itself? Note: with issue 97200 the MathMl export was overhauled. The CWS with that issue was targeted for OOo 3.2 and is long since integrated. Thus chances are that this one is already fixed in current DEV300 builds and OOo 3.2 beta.
Err... meant 'tl->melmsp' when asking for the document.
Taking ownership of this. MRU->melmsp: as tl already mentioned, this problem should have gone now with OOo 3.2 (see issue 97200) For the case the problem still occurs, please attach a sample document here. Note that the document AND the objects inside must have been created with OOo 3.2 beta or newer.
Created attachment 66360 [details] Sample giving above mentioned error
MRU->TL: please have a look. Sending the attached odt through the validator will give "Attribute 'math:stretchy' is not allowed to appear in element 'math:mi'.
This issue is obsolete. math: namespace and the special OOo doctype is no longer used.