ODF format validity

Hi,

I want to point to a problem regarding validity of the ODF documents
produced by LO.
The http://www.officeshots.org/galleries web page offers numerous test
files for validity checking - it looks like the worst results are
obtained by LO (no single valid file), while other programs passed all
(abiword) or nearly all (MSOffice) tests.

I verified that also by sending a random file to
http://tools.odftoolkit.org/odfvalidator/: A file produced by LO
resulted in many times more errors than a file created by MSOffice2010.
Perhaps these are not big bugs - but may become a a BIG argument against
using LO in, say public administration.

What do you think about that?
Thanks
Milos

What file?

Send copy as attachment.

Wayne

Dear Wayne!

Most of the files I've checked, when found this thread are producing the
error:
upload:///text1.odt/META-INF/manifest.xml[2,88]:Error:element
"manifest:manifest" is missing "version" attribute
If you are interested, I can also give some files which do not pass validation
because of different unexpected attributes. The files are mostly generated by
editing docs and saving as odf. Can I sent them on your e-mail bypassing
mailing list?

Victor

Wayne Borean <wborean@gmail.com>
Saturday 23 April 2011

Dňa 22.04.2011 23:44, Wayne Borean wrote / napísal(a):

What file?

Send copy as attachment.

It looks like that all tests, presented at
http://www.officeshots.org/galleries, fail because of a single issue. It
can be seen also in the attached file a. odf. This is the log from
http://tools.odftoolkit.org/odfvalidator/:

    Result for a.odt

This file is NOT valid

Result details:

upload:///a.odt:Info:ODF Version: 1.2
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Thumbnails/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/images/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/accelerator/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/progressbar/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/toolbar/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/menubar/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/toolpanel/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/popupmenu/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/statusbar/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/floater/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
upload:///a.odt/META-INF/manifest.xml:Warning:The directory 'Configurations2/images/Bitmaps/' is not a sub-document and should not be listed in the 'META-INF/manifest.xml' file of ODF package 'upload:///a.odt'!
internal:schema/odf12/OpenDocument-v1.2-cd05-rev02-manifest-schema.rng:Info:parsed.
*upload:///a.odt/META-INF/manifest.xml[2,88]:Error:element "manifest:manifest" is missing "version" attribute
upload:///a.odt/META-INF/manifest.xml:Info:1 errors, 11 warnings*
upload:///a.odt/mimetype:Info:no errors, no warnings
upload:///a.odt:Info:Media Type: application/vnd.oasis.opendocument.text
internal:schema/odf12/OpenDocument-v1.2-cd05-rev02-schema.rng:Info:parsed.
upload:///a.odt/meta.xml:Info:Generator: LibreOffice/3.3$Unix LibreOffice_project/330m19$Build-202
upload:///a.odt/meta.xml:Info:no errors, no warnings
upload:///a.odt/settings.xml:Info:no errors, no warnings
upload:///a.odt/styles.xml:Info:no errors, no warnings
upload:///a.odt/content.xml:Info:no errors, no warnings
internal:schema/odf12/OpenDocument-v1.2-cd05-rev02-dsig-schema.rng:Info:parsed.
upload:///a.odt:Info:1 errors, 11 warnings

I guess that by correcting this, the majority of tests from
http://www.officeshots.org/galleries will pass.

The other attached file has also two other problems:

upload:///DoplnenieSOIT-april2011.odt/styles.xml[2,6435]:Error:attribute "style:text-combine-start-char" has a bad value: the length of the value is 0, but the required length is 1.
upload:///DoplnenieSOIT-april2011.odt/styles.xml[2,6963]:Error:attribute "fo:hyphenation-remain-char-count" has a bad value: "0" does not satisfy the "positiveInteger" type

Is it possible that the files are OK but the validator is incorrect?

Milos

Yes, email them direct. I'm hardly an expert. I just like messing with
things, and sometimes poking things hard enough is all that's needed.

Wayne

Perhaps the problem is there : change default ODF version used by your
LibreOffice and try again.
Menu Tools > Options > Load/Save > General

Best regards
JBF

JBF,

Change it to what?

Version 1? Version 1.1? Version 0.9?

Be specific.

Wayne

I ran a few tests as well at http://tools.odftoolkit.org/odfvalidator/
I created a single document with LO 3.3.2, Ubuntu OOo 3.2, Standard OOo
3.3.0, and Standard OOo-Dev (3.4.0). All failed with 1.2 extended with
the exception of OOo-Dev (3.4.0).

With OOo-Dev 3.4.0:
ODF Validator Result Page
Result for OOoDev34_odftTest.odt

This file is valid

Errors whith LO 3.3.2, Ubuntu OOo 3.2, and Standard OOo 3.3.0, were
consistent 'Error:element "manifest:manifest" is missing "version"
attribute':

upload:///LO332_odfTest.odt/META-INF/manifest.xml[2,88]:Error:element
"manifest:manifest" is missing "version" attribute
upload:///LO332_odfTest.odt:Info:Generator: LibreOffice/3.3$Linux
LibreOffice_project/330m19$Build-202
Result details:

upload:///SOOo330_odfTest.odt/META-INF/manifest.xml[2,88]:Error:element
"manifest:manifest" is missing "version" attribute
upload:///SOOo330_odfTest.odt:Info:Generator: OpenOffice.org/3.3$Linux
OpenOffice.org_project/330m20$Build-9567

When changing the format to 1.0/1.1:
ODF Validator Result Page
Result for LO332_odfTest_ODF1.odt

This file is valid

and

ODF Validator Result Page
Result for SOOo330_odfTest_ODF1.odt

This file is valid

Very interesting results... we have to deal with them as soon as possible...

If Libò 3.4.0 will be merged again with the last OOo 3.4.0 commits without loosing all the code cleaning (Code Hacks) efforts we could have the same "The file is valid" also for Libò 3.4.0.

Happy Easter evening,

Carlo

Hi Milos,

Milos Sramek <sramek.milos <at> gmail.com> writes:

I want to point to a problem regarding validity of the ODF documents
produced by LO.

Your report ended up as a bug report here:
https://bugs.freedesktop.org/show_bug.cgi?id=37390 and was fixed, the fix will
be in 3.4.1 out soon.

Thanks.