Extension ODFvalidator
The purpose of this extension is to provide a validator, which developers and users can use to ensure the consistency and correctness of OpenDocument files. Original code writen by Alex Hudson as part of the ODF Tools project.
The validator will list out any problems it finds with the file. Errors are fatal: these are problems where the file does not conform to the OpenDocument specification. Warnings are less fatal, but could indicate problems.
Some of the errors will be somewhat inscrutable. You will probably not be able to fix them unless you're a developer.
Look into source code documentation.
Checks
This is a list of the checks this tool performs:
-
Mimetype and file extension exist and correspond
-
Manifest.xml exists and is correct according to the RelaxNG schema
-
Right files being present in a package (content.xml, styles.xml, settings.xml, ...)
-
Content.xml, meta.xml, settings.xml and styles.xml are correct according to the RelaxNG schema and is valid XML
-
Checks if all images are included in zipped archive
-
Checks that all included images are correct images (usable file type)
-
That all defined XML namespaces that are used are correct according to the OpenDocument specification [in development]
-
Check objects for the use of ODF’s accessibility features [in development]
-
Verifying that every style that is used is actually defined somewhere [in development]
Warning
This is very much alpha software right now. It may warn or error on things which are valid OpenDocument; similarly, it may miss obvious problems with files. Let us know how you get on (leave your own comment on this page)
Help Out
Please let us know of any extra tests you think we can perform, new checks, or about documents and/or applications you've found which trip up the validator, or trip up on the validator :)
User Comments