Friday, 08 May 2009
Friday, 08 May 2009
This appeared to be a good opportunity to update the ODF Validator at odftoolkit.org (which we are using at Sun's OpenOffice.org development team to check ODF documents) to better support ODF 1.2. The update applies to the command line version of the tool, but also to the online version.
The changes I have implemented are:
In regard to foreign elements and attributes, the “conformance test” mode (option “-c” in the command line version) now corresponds to the ODF 1.2 document conformance class (see ODF 1.2 section 1.4.2.1). Which means that foreign elements and attributes within ODF 1.2 documents are not permitted in this mode. This change does not effect ODF 1.0/1.1 documents, where they are still permitted.
The “conformance test” mode is the default for ODF 1.2 documents.
There is a new option “-e” (extended conformance), which corresponds to the ODF 1.2 extended document conformance class (see ODF 1.2 section 1.4.2.2) in regard to foreign elements and attributes. Which means that foreign elements and attributes within ODF 1.2 documents are permitted in this mode. For ODF 1.0/1.1 documents this mode equals the conformance test mode.
It is now checked whether a document has at least a “content.xml” or a “styles.xml” sub stream. This corresponds to clause (D1.1.2) of ODF 1.2 section 1.4.2.2.
It is now checked whether the “content.xml”, “styles.xml”, “settings.xml” and “meta.xml” steams contain the correct root elements. This corresponds to clause (D1.2.2) of ODF 1.2 section 1.4.2.2.
tags: conformance odf odftoolkit.org opendocument openoffice.org relax-ng rng validator
Comments