emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Missing OpenDocument schema files and ODT file corruption
@ 2015-03-02 15:08 Monroe, Will
  2015-03-02 20:25 ` J. David Boyd
  0 siblings, 1 reply; 4+ messages in thread
From: Monroe, Will @ 2015-03-02 15:08 UTC (permalink / raw)
  To: orgmode

[-- Attachment #1: Type: text/html, Size: 3453 bytes --]

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

* Re: Missing OpenDocument schema files and ODT file corruption
  2015-03-02 15:08 Missing OpenDocument schema files and ODT file corruption Monroe, Will
@ 2015-03-02 20:25 ` J. David Boyd
  2015-03-02 21:58   ` Monroe, Will
  0 siblings, 1 reply; 4+ messages in thread
From: J. David Boyd @ 2015-03-02 20:25 UTC (permalink / raw)
  To: emacs-orgmode

"Monroe, Will" <wtmonroe.ls@gmail.com> writes:

> Hello,
>
> I'm using Emacs 24.4, Org-mode version 8.2.10 and I've run into a
> problem with missing OpenDocument schema files. Upon startup, I see
> these messages:
>
> ,----
> | Debug (ox-odt): Searching for OpenDocument styles files...
> | Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
> | Debug (ox-odt): Trying /Users/wmonro1/.emacs.d/etc/styles/...
> | Debug (ox-odt): Trying
> /Users/wmonro1/.emacs.d/elpa/org-20150223/etc/styles/...
> | Debug (ox-odt): Using styles under
> /Users/wmonro1/.emacs.d/elpa/org-20150223/etc/styles/
> | Debug (ox-odt): Searching for OpenDocument schema files...
> | Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
> | Debug (ox-odt): No OpenDocument schema files installed
> `----
>
> I think I've had these errors for some time but I haven't paid much
> attention to them. However, I recently started exporting to
> OpenDocument formats (e.g., ODT) and I've encountered frequent
> problems with "file corruption" and some ODT files that won't even
> open. I want to find out what's happening so I can use the
> export/publishing functions for ODT more reliably.
>
> I searched the org-mode listerv and found a recommendation to check
> the values of org-odt-styles-dir and org-odt-schema-dir. I got the
> following values:
>
> ,----
> | org-odt-styles-dir:
> | "/Users/wmonro1/.emacs.d/elpa/org-20150223/etc/styles/"
> | 
> | org-odt-schema-dir
> | nil
> `----
>
> There is documentation for `org-odt-schema-dir' the explains the
> following:
>
> ,----
> | Documentation:
> | Directory that contains OpenDocument schema files.
> | 
> | This directory contains:
> | 1. rnc files for OpenDocument schema
> | 2. a "schemas.xml" file that specifies locating rules needed
> | for auto validation of OpenDocument XML files.
> | 
> | Use the customize interface to set this variable. This ensures
> | that `rng-schema-locating-files' is updated and auto-validation
> | of OpenDocument XML takes place based on the value
> | `rng-nxml-auto-validate-flag'.
> | 
> | The default value of this variable varies depending on the
> | version of org in use and is initialized from
> | `org-odt-schema-dir-list'. The OASIS schema files are available
> | only in the org's private git repository. It is *not* bundled
> | with GNU ELPA tar or standard Emacs distribution.
> | 
> | You can customize this variable.
> | 
> | This variable was introduced, or its default value was changed, in
> | version 24.1 of Emacs.
> `----
>
> So, now I understand why the error messages are occuring but, given
> that the value seems to be `nil' by default, I'm not sure if I need to
> change anything. Again, I'm experiencing some problems with org-mode
> export to ODT and I'd like to clear those up. Would it help to obtain
> the "rnc" and "schemas.xml" files and then point `org-odt-schema-dir'
> to them? 
>
> Will 

If I recall correctly, I was getting errors also until I added these files in.

I found the files schemas.xml, OrgOdtContentTemplate.xml, and OrgOdtStyles.xml
in the git repository for Org mode, in the etc/schema and
etc/styles directories.

I then copied the etc/schema/schemas.xmls and etc/styles/OrgOdt*.xml files to my
/usr/share/emacs/etc/org/styles directory, and the errors went away.

That must be where org-odt-schema-dir defaults to, as I don't have it set
anywhere.

Good luck!

Dave

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

* Re: Missing OpenDocument schema files and ODT file corruption
  2015-03-02 20:25 ` J. David Boyd
@ 2015-03-02 21:58   ` Monroe, Will
  2015-03-03 18:22     ` J. David Boyd
  0 siblings, 1 reply; 4+ messages in thread
From: Monroe, Will @ 2015-03-02 21:58 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/html, Size: 4104 bytes --]

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

* Re: Missing OpenDocument schema files and ODT file corruption
  2015-03-02 21:58   ` Monroe, Will
@ 2015-03-03 18:22     ` J. David Boyd
  0 siblings, 0 replies; 4+ messages in thread
From: J. David Boyd @ 2015-03-03 18:22 UTC (permalink / raw)
  To: emacs-orgmode

"Monroe, Will" <wtmonroe.ls@gmail.com> writes:

> David,
>
> On 3/2/15 2:25 PM, J. David Boyd wrote:
>
>     "Monroe, Will" <wtmonroe.ls@gmail.com> writes:
>
>     
>         Hello,
>
> I'm using Emacs 24.4, Org-mode version 8.2.10 and I've run into a
> problem with missing OpenDocument schema files. Upon startup, I see
> these messages:
>
> ,----
> | Debug (ox-odt): Searching for OpenDocument styles files...
> | Debug (ox-odt): Trying /usr/share/emacs/etc/org/styles/... [2 times]
> | Debug (ox-odt): Trying /Users/wmonro1/.emacs.d/etc/styles/...
> | Debug (ox-odt): Trying
> /Users/wmonro1/.emacs.d/elpa/org-20150223/etc/styles/...
> | Debug (ox-odt): Using styles under
> /Users/wmonro1/.emacs.d/elpa/org-20150223/etc/styles/
> | Debug (ox-odt): Searching for OpenDocument schema files...
> | Debug (ox-odt): Trying /usr/share/emacs/etc/org/schema/... [2 times]
> | Debug (ox-odt): No OpenDocument schema files installed
> `----
>
> I think I've had these errors for some time but I haven't paid much
> attention to them. However, I recently started exporting to
> OpenDocument formats (e.g., ODT) and I've encountered frequent
> problems with "file corruption" and some ODT files that won't even
> open. I want to find out what's happening so I can use the
> export/publishing functions for ODT more reliably.
>
> I searched the org-mode listerv and found a recommendation to check
> the values of org-odt-styles-dir and org-odt-schema-dir. I got the
> following values:
>
> ,----
> | org-odt-styles-dir:
> | "/Users/wmonro1/.emacs.d/elpa/org-20150223/etc/styles/"
> | 
> | org-odt-schema-dir
> | nil
> `----
>
> There is documentation for `org-odt-schema-dir' the explains the
> following:
>
> ,----
> | Documentation:
> | Directory that contains OpenDocument schema files.
> | 
> | This directory contains:
> | 1. rnc files for OpenDocument schema
> | 2. a "schemas.xml" file that specifies locating rules needed
> | for auto validation of OpenDocument XML files.
> | 
> | Use the customize interface to set this variable. This ensures
> | that `rng-schema-locating-files' is updated and auto-validation
> | of OpenDocument XML takes place based on the value
> | `rng-nxml-auto-validate-flag'.
> | 
> | The default value of this variable varies depending on the
> | version of org in use and is initialized from
> | `org-odt-schema-dir-list'. The OASIS schema files are available
> | only in the org's private git repository. It is *not* bundled
> | with GNU ELPA tar or standard Emacs distribution.
> | 
> | You can customize this variable.
> | 
> | This variable was introduced, or its default value was changed, in
> | version 24.1 of Emacs.
> `----
>
> So, now I understand why the error messages are occuring but, given
> that the value seems to be `nil' by default, I'm not sure if I need to
> change anything. Again, I'm experiencing some problems with org-mode
> export to ODT and I'd like to clear those up. Would it help to obtain
> the "rnc" and "schemas.xml" files and then point `org-odt-schema-dir'
> to them? 
>
> Will 
>
>     
> If I recall correctly, I was getting errors also until I added these files in.
>
> I found the files schemas.xml, OrgOdtContentTemplate.xml, and OrgOdtStyles.xml
> in the git repository for Org mode, in the etc/schema and
> etc/styles directories.
>
> I then copied the etc/schema/schemas.xmls and etc/styles/OrgOdt*.xml files to my
> /usr/share/emacs/etc/org/styles directory, and the errors went away.
>
> That must be where org-odt-schema-dir defaults to, as I don't have it set
> anywhere.
>
> Thanks for your reply. That helped.
>
> I wasn't sure if it was wise to change the default setting for
> `org-odt-schema-dir' but I went ahead and did so; just chose a
> directory in ~/Dropbox that my other Emacs instances can also access.
>
> Will


I only ever use one instance of Emacs, so that is never a problem.  Glad I was
able to help.

Dave

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

end of thread, other threads:[~2015-03-03 18:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-02 15:08 Missing OpenDocument schema files and ODT file corruption Monroe, Will
2015-03-02 20:25 ` J. David Boyd
2015-03-02 21:58   ` Monroe, Will
2015-03-03 18:22     ` J. David Boyd

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