https://issues.apache.org/bugzilla/show_bug.cgi?id=46419


Yegor Kozlov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #2 from Yegor Kozlov <[email protected]>  2008-12-21 05:52:11 PST ---
I think it is a bug in OpenOffice, not in POI. I files and issue, let's wait
for feedback from OO guys:
http://www.openoffice.org/issues/show_bug.cgi?id=97460

Description:
OpenOffice can't read core OOXML relationships if a part name starts with a
forward slash character '/'.
For example, if the main document part is referenced as "/xl/workbook.xml" then
OpenOffice Calc fails to open it. If the main part is referenced as
"xl/workbook.xml" (without the leading slash), then the file is opened OK.

The part name grammar implies the forward slash constraint. See OOXML Open
Packaging Conventions, Package model conformance requirements:
M1.4 A part name shall start with a forward slash (“/”) character.

This constraint doesn't seem to be mandatory. Excel 2007 writes package part
names without the leading slash and doesn't require it when reading files. Both
"xl/workbook.xml" and "/xl/workbook.xml" part names seem to be valid, although
only the first one is OK in OpenOffice 3.0. 

So, I think OO should support package part names starting with a forward slash.

Yegor


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to