From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Monroe, Will" Subject: Missing OpenDocument schema files and ODT file corruption Date: Mon, 02 Mar 2015 09:08:47 -0600 Message-ID: <54F47CFF.7050208@gmail.com> Mime-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47465) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSRxi-0005TU-HJ for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 10:08:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSRxh-00087u-HK for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 10:08:50 -0500 Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:44204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSRxh-00087h-DK for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 10:08:49 -0500 Received: by iecar1 with SMTP id ar1so48450858iec.11 for ; Mon, 02 Mar 2015 07:08:48 -0800 (PST) Received: from wmonro1-1.lsu.edu ([2620:105:b000:b100:7424:a7d4:4ced:1aa2]) by mx.google.com with ESMTPSA id w9sm7057143igl.0.2015.03.02.07.08.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 07:08:48 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: orgmode 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: dboyd2@mmm.com (J. David Boyd) Subject: Re: Missing OpenDocument schema files and ODT file corruption Date: Mon, 02 Mar 2015 15:25:02 -0500 Message-ID: References: <54F47CFF.7050208@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSWty-0007sJ-45 for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 15:25:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSWtu-0004uX-Q4 for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 15:25:18 -0500 Received: from plane.gmane.org ([80.91.229.3]:51030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSWtu-0004u3-JQ for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 15:25:14 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YSWtr-0004XS-3I for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 21:25:11 +0100 Received: from 169.15.136.127 ([169.15.136.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Mar 2015 21:25:11 +0100 Received: from dboyd2 by 169.15.136.127 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Mar 2015 21:25:11 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Monroe, Will" 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Monroe, Will" Subject: Re: Missing OpenDocument schema files and ODT file corruption Date: Mon, 02 Mar 2015 15:58:48 -0600 Message-ID: <54F4DD18.90102@gmail.com> References: <54F47CFF.7050208@gmail.com> Mime-Version: 1.0 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSYMY-00049V-Sc for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 16:58:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSYMV-0003pr-Lf for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 16:58:54 -0500 Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]:40981) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSYMV-0003pi-Eh for emacs-orgmode@gnu.org; Mon, 02 Mar 2015 16:58:51 -0500 Received: by iecrd18 with SMTP id rd18so51876424iec.8 for ; Mon, 02 Mar 2015 13:58:50 -0800 (PST) Received: from wmonro1-1.lsu.edu (wmonro1-1.lsu.edu. [130.39.217.115]) by mx.google.com with ESMTPSA id r78sm8664041ioi.22.2015.03.02.13.58.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 13:58:50 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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
From mboxrd@z Thu Jan 1 00:00:00 1970 From: dboyd2@mmm.com (J. David Boyd) Subject: Re: Missing OpenDocument schema files and ODT file corruption Date: Tue, 03 Mar 2015 13:22:06 -0500 Message-ID: References: <54F47CFF.7050208@gmail.com> <54F4DD18.90102@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSrSX-00034b-Hg for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 13:22:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSrSU-0005LJ-7s for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 13:22:21 -0500 Received: from plane.gmane.org ([80.91.229.3]:50739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSrSU-0005LD-0Y for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 13:22:18 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YSrSQ-0007OI-LT for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 19:22:15 +0100 Received: from 169.15.136.127 ([169.15.136.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2015 19:22:14 +0100 Received: from dboyd2 by 169.15.136.127 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 Mar 2015 19:22:14 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Monroe, Will" writes: > David, > > On 3/2/15 2:25 PM, J. David Boyd wrote: > > "Monroe, Will" 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