Apache OpenOffice (AOO) Bugzilla – Issue 49853
OpenDocument file format: <office:document-content office:class="...">
Last modified: 2013-02-07 21:51:07 UTC
xmloff/dtd/office.mod declares attribute office:class of tag <office:document-content> as #REQUIRED, but: - OOo 2 beta version m100 does not create this attribute when saving files (making them invalid with respect to the abovementioned DTD) - The OpenDocument standard version 1.0 says nothing about office:class Other portions of the source tree deal with this attribute. My best guess is that this attribute has become deprecated and should be removed from the DTD and other places. Not sure 100% though.
The DTD supllied with OpenOffice.org is for the OpenOffice.org format only. That's the format used by OOo 1.0 and 1.1. The OpenDocument format used by OpenOffice.org 2.0 has its own schema. The schema language used is Relax-NG. The schema is available at: http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office
closed
OK, but then what's the point in keeping the old 1.0 DTD in the 2.0 source tree? Or shouldn't at least a clear comment <!-- This is the DTD for OOo version 1.x file format. For 2.0 file format, please refer to Relax-NG schema at http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office --> be added at the top of "office.dtd" and all ".mod" files? Or shouldn't two subdirectories 1.0/ and 2.0/ be created? There's also a file openoffice-2.0-schema.rng lost in the middle of all these 1.0 files. I find the current situation very confusing for any developper interested in 2.0 file format.
Agreed. A note in the DTD files that is is for the OpenOffice.org file format only would be useful.
target set
Still not fixed in m178
I added a comment to the beginning of the DTD that implements the suggestion by Michael Brauer. I'll wait a suitable CTR interval and close this issue.
Better late than never (seven years and a half, in this case). The suggestion of a note was mine, not from Michel Brauer.