Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
odfdom-0.8.6
-
None
-
None
-
Operating System: Windows
Platform: PC
-
222
Description
We're starting to see some ODFDOM-generated files that are not valid according to the latest schemas. I think we will all agree that this is not good.
One thing we can do to detect these types of problems earlier is to make sure that we run the ODF Validator against every test file that is created as part of the unit tests.
1) We should use a command-line version of the validator
2) We should make sure that the validator uses the same version of the ODF schema that ODFDOM uses for codegen. It is important that these are in sync, even if they are not the very latest versions.
3)We should run the validator against each document created in the unit tests. One elegant way to do this is to create a custom Ant task for running the validator.
4) Goal should be for all unit tests to generate only conforming ODF documents, according to whatever revision of the schema we are using.