After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347447 - odf cannot roundtrip
odf cannot roundtrip
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export OOo / OASIS
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2006-07-13 20:17 UTC by Andreas J. Guelzow
Modified: 2006-07-14 20:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample file (2.67 KB, application/octet-stream)
2006-07-13 20:19 UTC, Andreas J. Guelzow
Details

Description Andreas J. Guelzow 2006-07-13 20:17:37 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.
Comment 1 Andreas J. Guelzow 2006-07-13 20:19:03 UTC
Created attachment 68884 [details]
sample file
Comment 2 Jody Goldberg 2006-07-14 19:59:44 UTC
sounds like it's failing to recognize the 'office:' namespace.
Comment 3 Jody Goldberg 2006-07-14 20:10:15 UTC
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"