Issue 78357 - MathML attributes incorrectly namespaced
Summary: MathML attributes incorrectly namespaced
Status: CLOSED OBSOLETE
Alias: None
Product: Math
Classification: Application
Component: code (show other issues)
Version: OOo 2.2
Hardware: All All
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-12 23:11 UTC by rdmsoft
Modified: 2014-12-16 20:22 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Sample giving above mentioned error (20.89 KB, application/vnd.oasis.opendocument.text)
2009-11-26 13:57 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description rdmsoft 2007-06-12 23:11:12 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="]"/>
Comment 1 michael.ruess 2007-06-13 06:47:32 UTC
Reassigned to JW.
Comment 2 melmsp 2009-11-24 16:47:22 UTC
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
---------------------------------------------------------------------------
Comment 3 melmsp 2009-11-24 16:50:47 UTC
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
Comment 4 thomas.lange 2009-11-25 09:39:30 UTC
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.
Comment 5 thomas.lange 2009-11-25 09:42:38 UTC
Err... meant 'tl->melmsp' when asking for the document.
Comment 6 michael.ruess 2009-11-26 13:18:16 UTC
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.
Comment 7 michael.ruess 2009-11-26 13:57:09 UTC
Created attachment 66360 [details]
Sample giving above mentioned error
Comment 8 michael.ruess 2009-11-26 14:03:15 UTC
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'.
Comment 9 Regina Henschel 2014-12-16 20:22:13 UTC
This issue is obsolete. math: namespace and the special OOo doctype is no longer used.