Issue 49853 - OpenDocument file format: <office:document-content office:class="...">
Summary: OpenDocument file format: <office:document-content office:class="...">
Status: ACCEPTED
Alias: None
Product: xml
Classification: Code
Component: definition (show other issues)
Version: 680m178
Hardware: All All
: P3 Trivial (vote)
Target Milestone: AOO Later
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-25 12:41 UTC by ebischoff
Modified: 2013-02-07 21:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ebischoff 2005-05-25 12:41:47 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.
Comment 1 michael.brauer 2005-05-27 08:23:33 UTC
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
Comment 2 michael.brauer 2005-05-27 08:24:03 UTC
closed
Comment 3 ebischoff 2005-05-27 10:20:00 UTC
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. 
 
Comment 4 michael.brauer 2005-08-23 14:00:08 UTC
Agreed. A note in the DTD files that is is for the OpenOffice.org file format
only would be useful.
Comment 5 michael.brauer 2005-11-29 12:12:03 UTC
target set
Comment 6 ebischoff 2006-07-25 10:37:14 UTC
Still not fixed in m178 
Comment 7 orcmid 2013-01-19 02:20:45 UTC
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.
Comment 8 ebischoff 2013-01-24 19:01:01 UTC
Better late than never (seven years and a half, in this case).

The suggestion of a note was mine, not from Michel Brauer.