Menu

#10 Relationships not loaded if document comes before in package

open
nobody
5
2008-02-18
2008-02-18
Ugo Cei
No

When loading a package, relationships are loaded when a part is loaded by looking for an already loaded part having the same name as the part with the ".rels" extension appended.

However this fails when the part comes before the corresponding .rels file in the Zip package, because the code looks for the latter only in the set of already loaded parts.

This is demonstrated by the test case I added as test.org.openxml4j.opc.TestRelationships. In the file that is loaded, /xl/worksheets/sheet2.xml comes before /xl/worksheets/_rels/sheet2.xml.rels so no relationships are defined for sheet2.xml.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.