TM does not generate valid ODF documents

Post Reply
lgsl
Posts: 259
Joined: Wed Mar 04, 2020 8:00 pm

TM does not generate valid ODF documents

Post by lgsl »

Out of curiosity I used https://odfvalidator.org to validate if a very basic odt document (just, text. No styling, no comments, no changes tracked) created in TextMaker was valid or not. It is not. The document is NOT conformant ODF1.0.

Here are the results for the attached dummy document:

Lorem.odt: Info: ODF version of root document: 1.0
Lorem.odt/mimetype: Error: There shall be no extra field for the 'mimetype' zip entry of ODF package 'Lorem.odt'!
Lorem.odt/mimetype: Error: For more information on ODF package conformance see https://docs.oasis-open.org/office/v1.0 ... 1.0-os.pdf
internal:/schema/odf1.0/OpenDocument-manifest-schema-v1.0-os.rng: Info: parsed.
Lorem.odt/META-INF/manifest.xml: Info: no errors, no warnings
Lorem.odt/mimetype: Info: 2 errors, no warnings
Lorem.odt: Info: Media Type: application/vnd.oasis.opendocument.text
internal:/schema/odf1.0/OpenDocument-schema-v1.0-os.rng: Info: parsed.
Lorem.odt/meta.xml: Info: Generator: TextMaker
Lorem.odt/meta.xml: Info: no errors, no warnings
Lorem.odt/settings.xml: Info: no errors, no warnings
Lorem.odt/styles.xml: Info: extension attribute 'textmaker:pgf-auto-space-after' of element <style:paragraph-properties> found and ignored.
Lorem.odt/styles.xml: Info: extension attribute 'textmaker:pgf-auto-space-before' of element <style:paragraph-properties> found and ignored.
Lorem.odt/styles.xml: Info: no errors, no warnings
Lorem.odt/styles.xml: Info: 2 extension attributes from the following namespace were found: tm
Lorem.odt/content.xml: Info: no errors, no warnings
Lorem.odt/content.xml: Info: 2 extension attributes from the following namespace were found: tm
Lorem.odt: Info: 2 errors, no warnings
Attachments
Lorem.odt
Dummy document. Just lorem ipsum...
(4.73 KiB) Downloaded 233 times
SuperTech
SoftMaker Team
SoftMaker Team
Posts: 3637
Joined: Wed Mar 11, 2020 5:31 pm

Re: TM does not generate valid ODF documents

Post by SuperTech »

Thank you for sharing your feedback. As noted on the organization's website, it is described as "an independent, self-governing, meritocratic entity." Based on this, we trust the integrity of their published results.

Regarding the file format, the report correctly identifies it as ODF 1.0, which is a valid and fully supported specification.

If you are experiencing a specific technical issue with our ODF implementation, we kindly encourage you to post the details in the dedicated forum topic so our community and support team can assist you directly. We appreciate your time and effort in helping us improve.
lgsl
Posts: 259
Joined: Wed Mar 04, 2020 8:00 pm

Re: TM does not generate valid ODF documents

Post by lgsl »

Yes the validator identifies the provided file as ODT 1.0, but if you look closely:

Lorem.odt/mimetype: Error: There shall be no extra field for the 'mimetype' zip entry of ODF package 'Lorem.odt'!
Lorem.odt/mimetype: Error: For more information on ODF package conformance see https://docs.oasis-open.org/office/v1.0 ... 1.0-os.pdf

Lorem.odt/mimetype: Info: 2 errors, no warnings

As you can see, and replicate with the ODT validator and the provided document, the mimetype is not being formed correctly (has an extra field). This means: The file is invalid. Why? There are errors on it. The syntax on the file is incorrect, therefore is not valid.

Further more... As you make the file more complex (See attached file) you come across more problems. For instance: Several Tracking changes (deletions, and formatting changes) are shown as comments on the 2024 version.

Then there is the input given by the validator that, once again, proves TM's implementation has issues, not only in the way the mimetype is formed but in the document content itself:

Lorem-Updated.odt/mimetype: Error: There shall be no extra field for the 'mimetype' zip entry of ODF package 'Lorem-Updated.odt'!
Lorem-Updated.odt/mimetype: Error: For more information on ODF package conformance see https://docs.oasis-open.org/office/v1.0 ... 1.0-os.pdf
Lorem-Updated.odt/content.xml[2,7684]: Error: unexpected attribute "office:name"
Lorem-Updated.odt/content.xml[2,7737]: Error: tag name "dc:initials" is not allowed. Possible tag names are: <date-string>,<date>,<list>,<p>
Lorem-Updated.odt/content.xml[2,7979]: Error: tag name "dc:initials" is not allowed. Possible tag names are: <date-string>,<date>,<list>,<p>
Lorem-Updated.odt/content.xml[2,8211]: Error: tag name "office:annotation-end" is not allowed. Possible tag names are: <a>,<alphabetical-index-mark-end>,<alphabetical-index-mark-start>,<alphabetical-index-mark>,<annotation>,<author-initials>,<author-name>,<bibliography-mark>,<bookmark-end>,<bookmark-start>,<bookmark>,<caption>,<change-end>,<change-start>,<change>,<chapter>,<circle>,<conditional-text>,<connector>,<control>,<creation-date>,<creation-time>,<creator>,<custom-shape>,<database-display>,<database-name>,<database-next>,<database-row-number>,<database-row-select>,<date-time>,<date>,<dde-connection>,<description>,<editing-cycles>,<editing-duration>,<ellipse>,<execute-macro>,<expression>,<file-name>,<footer>,<frame>,<g>,<header>,<hidden-paragraph>,<hidden-text>,<initial-creator>,<keywords>,<line-break>,<line>,<measure>,<modification-date>,<modification-time>,<note-ref>,<note>,<page-continuation>,<page-number>,<page-thumbnail>,<page-variable-get>,<page-variable-set>,<path>,<placeholder>,<polygon>,<polyline>,<print-date>,<print-time>,<printed-by>,<rect>,<reference-mark-end>,<reference-mark-start>,<reference-mark>,<regular-polygon>,<ruby>,<s>,<scene>,<script>,<sender-city>,<sender-company>,<sender-country>,<sender-email>,<sender-fax>,<sender-firstname>,<sender-initials>,<sender-lastname>,<sender-phone-private>,<sender-phone-work>,<sender-position>,<sender-postal-code>,<sender-state-or-province>,<sender-street>,<sender-title>,<sequence-ref>,<sequence>,<sheet-name>,<span>,<subject>,<tab>,<table-formula>,<template-name>,<text-input>,<time>,<title>,<toc-mark-end>,<toc-mark-start>,<toc-mark>,<user-defined>,<user-field-get>,<user-field-input>,<user-index-mark-end>,<user-index-mark-start>,<user-index-mark>,<variable-get>,<variable-input>,<variable-set>, and more
Lorem-Updated.odt: Info: Generator: TextMaker

Lorem-Updated.odt: Info: 6 errors, no warnings

You could keep adding complexity and more errors will start to show.

If the document was valid, this erors would not be reported by the validator.
Attachments
Lorem-Updated.odt
Updated file
(5.79 KiB) Downloaded 16 times
Post Reply

Return to “TextMaker NX and 2024 for Linux”