Issue 6203 - DTD error in office.dtd ($Id: office.dtd,v 1.6 2001/12/14 18:47:17 dvo Exp $)
Summary: DTD error in office.dtd ($Id: office.dtd,v 1.6 2001/12/14 18:47:17 dvo Exp $)
Status: CLOSED DUPLICATE of issue 3225
Alias: None
Product: xml
Classification: Code
Component: definition (show other issues)
Version: OOo 1.0.0
Hardware: PC Windows 2000
: P4 Trivial (vote)
Target Milestone: ---
Assignee: michael.brauer
QA Contact: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-28 14:02 UTC by saremba
Modified: 2003-03-11 17:54 UTC (History)
1 user (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 saremba 2002-06-28 14:02:16 UTC
office.dtd references the modules drawing.mod and text.mod in the wrong order.
That's because drawing.mod references the parameter entity sectionText (line
545) which is defined in module text.mod. Note that the XML Standard says
explicitly "The declaration of a parameter entity must precede any reference to
it." (section "Validity Constraint: Entity Declared" in chapter 4.1).
To confirm that this is really a bug load an arbitrary contents.xml file into
some validating editor (like XMetal 3 which I used).
To correct this bug, reverse the entity references %drawing-mod; and %text-mod;
in office.dtd.
Comment 1 openoffice 2002-06-28 14:16:29 UTC
Duplicate to #i3225#

This was fixed in v1.7 of the office.dtd file; I think the fix will
make it into the OOo 1.0.1 release.

The problem is that I've never been able to verify whether XML really
demands declaration before use. The validating XML parser we use (XML
Spy) has no problems with this, while others do. Either way, it caused
problems and thus got fixed.

*** This issue has been marked as a duplicate of 3225 ***
Comment 2 michael.bemmer 2003-03-11 17:16:16 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details. First step in IssueZilla is
unfortunately to set them to verified.
Comment 3 michael.bemmer 2003-03-11 17:54:56 UTC
As mentioned on the qa dev list on March 5th I will close all resolved duplicate
issues. Please see this posting for details.