From: Jambunathan K <kjambunathan@gmail.com>
To: Michael Brand <michael.ch.brand@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: new exporter corrupts ODT
Date: Sat, 02 Jun 2012 19:11:11 +0530 [thread overview]
Message-ID: <81bol1rfuw.fsf@gmail.com> (raw)
In-Reply-To: <CALn3zoixxzgufmeFdO9jgrLCoABC+GxJ7QCQt8d6gB=apzNaGQ@mail.gmail.com> (Michael Brand's message of "Sat, 2 Jun 2012 11:20:06 +0200")
Michael Brand <michael.ch.brand@gmail.com> writes:
> Hi all
>
> If OpenOffice.org 3.2.0 is too old to count please tell me and forget.
>
> With an Org file containing only "* a\n" the old exporter is ok but the
> new exporter release_7.8.10-633 on 23.3.1 makes an ODT reported as
> "corrupt" by OOo. Attached are the Org and ODT exported as old, new
> and new repaired by OOo 3.2.0.
I am not able to reproduce this issue locally. My LibreOffice is fairly
recent. (LibreOffice 3.5.2.2 Build ID: 281b639-6baa1d3-ef66a77-d866f25-f36d45f)
If I pass the corrupted file through an online validator [1], I get the
below error. The culprit is the mimetype file. Note the leading
whitespace and the trailing newline. If I fix this extraneous
whitespace by hand, then I see that the reported corruption goes away.
,----
| application/vnd.oasis.opendocument.text
`----
I can confirm that ODT exporter, never creates the above leading and
trailing whitespaces.
Unless you hand-edited the ODT document, I think the error could be
because of one of the customizations you have. (Do you have
`org-e-odt-prettify-xml' set to t. If yes, what mode does mimetype file
open for you. For me, mimetype opens in Fundamental mode.)
,----
| ODF Validator Result Page
| Result for release_7.8.10-633.org.new.odt
|
| The document is NOT conformant ODF1.2!
| Details:
| release_7.8.10-633.org.new.odt: Info: ODF version of root document: 1.2
| release_7.8.10-633.org.new.odt/mimetype: Error: The ODF package 'release_7.8.10-633.org.new.odt' contains a 'mimetype' file containing ' application/vnd.oasis.opendocument.text', which differs from the mediatype of the root document 'application/vnd.oasis.opendocument.text'!
| release_7.8.10-633.org.new.odt: Error: The ODF mimetype ' application/vnd.oasis.opendocument.text' is invalid for the ODF XML Schema document!
| release_7.8.10-633.org.new.odt/mimetype: Info: mimetype is not an ODFMediaTypes mimetype.
| internal:/schema/odf1.2/OpenDocument-v1.2-cos01-manifest-schema.rng: Info: parsed.
| release_7.8.10-633.org.new.odt/META-INF/manifest.xml: Info: no errors, no warnings
| release_7.8.10-633.org.new.odt/mimetype: Info: 1 errors, no warnings
| release_7.8.10-633.org.new.odt: Info: Media Type: application/vnd.oasis.opendocument.text
| internal:/schema/odf1.2/OpenDocument-v1.2-cos01-schema.rng: Info: parsed.
| release_7.8.10-633.org.new.odt/meta.xml: Info: Generator: Generated by Org mode 7.8.10 in Emacs 23.3.1.
| release_7.8.10-633.org.new.odt/meta.xml: Info: no errors, no warnings
| release_7.8.10-633.org.new.odt/styles.xml: Info: no errors, no warnings
| release_7.8.10-633.org.new.odt/content.xml: Info: no errors, no warnings
| internal:/schema/odf1.2/OpenDocument-v1.2-cos01-dsig-schema.rng: Info: parsed.
| release_7.8.10-633.org.new.odt: Info: 2 errors, no warnings
`----
Footnotes:
[1] http://odf-validator.rhcloud.com/
--
next prev parent reply other threads:[~2012-06-02 13:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 9:20 new exporter corrupts ODT Michael Brand
2012-06-02 13:41 ` Jambunathan K [this message]
2012-06-02 13:44 ` Jambunathan K
2012-06-02 15:18 ` Jambunathan K
2012-06-02 16:35 ` Michael Brand
2012-06-03 12:53 ` Michael Brand
2012-06-03 13:13 ` Achim Gratz
2012-06-03 14:34 ` Michael Brand
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=81bol1rfuw.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=michael.ch.brand@gmail.com \
/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).