emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Opening an odt file - problem solved
@ 2012-05-19 10:17 itmejl
  2012-05-19 12:06 ` Achim Gratz
  2012-05-20  9:56 ` Jambunathan K
  0 siblings, 2 replies; 9+ messages in thread
From: itmejl @ 2012-05-19 10:17 UTC (permalink / raw)
  To: eol

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello!

Sharing a solution to a problem I had myself with opening an odt file
after export. I use emacs 23.4 on win7 with orgmode 7.8.03.

I could not open the new exported odt file with word2010 or
libreoffice. Somewhere I found out that content.xml that is inside the
odt file was the faulty part.

Parts of odt file

M Filemode      Length  Date         Time      File
- - ----------  --------  -----------  --------  ---------------------
  -rw-rw-rw-        39  19-May-2012  11:35:06  mimetype
  -rw-rw-rw-     40104  19-May-2012  11:35:06  content.xml
  drwxrwxrwx         0  19-May-2012  11:35:06  Images/
  -rw-rw-rw-      1132  19-May-2012  11:35:04  Images/0001.png
  -rw-rw-rw-      1132  19-May-2012  11:35:06  Images/0002.png
  -rw-rw-rw-      1132  19-May-2012  11:35:06  Images/0003.png
  drwxrwxrwx         0  19-May-2012  11:35:06  meta-inf/
  -rw-rw-rw-       966  19-May-2012  11:35:06  META-INF/manifest.xml
  -rw-rw-rw-       846  19-May-2012  11:35:06  meta.xml
  -rw-rw-rw-     61814  19-May-2012  11:35:06  styles.xml
- - ----------  --------  -----------  --------  ---------------------
                107165                         10 files


The top of content.xml looked like this:

<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<office:document-content .....

Three xml declarations!

Checked my settings in .emacs and found that I had an nxml property
set like this:
'(nxml-auto-insert-xml-declaration-flag t)

After changed it to
'(nxml-auto-insert-xml-declaration-flag nil)
, restarting emacs and exporting to odt again I could open the odt file.


The top of content.xml inside the odt file now looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<office:document-content.....

Just one declaration.

So if want to be able to open odt files created with orgmode odt
exporter you have to have nxml-auto-insert-xml-declaration-flag set to
nil.


/Christina
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)

iEYEARECAAYFAk+3czwACgkQ2+bVj21Y+8lvqACfc3i1QJH8BE9Ykthjb94Kaspe
/YwAoJUDvlVbiZbqenV/HIl8omdgDAvC
=1idV
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-05-25 23:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-19 10:17 Opening an odt file - problem solved itmejl
2012-05-19 12:06 ` Achim Gratz
2012-05-20  9:56 ` Jambunathan K
2012-05-24  9:36   ` Bastien
2012-05-24 16:24     ` Jambunathan K
2012-05-24 16:28       ` Bastien
2012-05-25 13:57         ` Jambunathan K
2012-05-25 21:17           ` Bastien
2012-05-24 16:30       ` Jambunathan K

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).