GNOME Bugzilla – Bug 347447
odf cannot roundtrip
Last modified: 2006-07-14 20:10:15 UTC
I am just "reporting" this bug to indicate that we are aware of it. The attached file has been created with gnumeric's recently changed odf export. It appears to be valid odf and can be read by OOo. Unfortunately gnumeric fails at opening it with interesting (and incorrect) terminal messages: Unexpected element 'office:scripts' in state : document-content Unexpected element 'office:font-face-decls' in state : document-content Unexpected element 'office:spreadsheet' in state : document-content -> body Unexpected element 'table:table-row' in state : document-content -> body -> table -> table-column Unexpected element 'table:table-row' in state : document-content -> body -> table -> table-column Unexpected element 'table:table-row' in state : document-content -> body -> table -> table-column Unexpected element 'table:table-row' in state : document-content -> body -> table -> table-column Unexpected element 'table:table-row' in state : document-content -> body -> table -> table-column Unexpected element 'table:table-row' in state : document-content -> body -> table -> table-column Unexpected element 'table:table-row' in state : document-content -> body -> table -> table-column Unexpected element 'table:table-row' in state : document-content -> body -> table -> table-column Specifically, there are no table:table-row elements inside any table-column elements.
Created attachment 68884 [details] sample file
sounds like it's failing to recognize the 'office:' namespace.
Ah, I see the problem. The mimetype is wrong and we're checking the wrong namespace urls for the file. We're exporting "application/vnd.sun.xml.calc" but it should be "application/vnd.oasis.opendocument.spreadsheet"