emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "itmejl@chrikro.net" <itmejl@chrikro.net>
To: eol <emacs-orgmode@gnu.org>
Subject: Opening an odt file - problem solved
Date: Sat, 19 May 2012 12:17:34 +0200	[thread overview]
Message-ID: <4FB7733E.7060900@chrikro.net> (raw)

-----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-----

             reply	other threads:[~2012-05-19 10:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-19 10:17 itmejl [this message]
2012-05-19 12:06 ` Opening an odt file - problem solved 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FB7733E.7060900@chrikro.net \
    --to=itmejl@chrikro.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).