OpenOffice integration in Lenya CVS

Christian Egli <[email protected]> 31 Mar 2003 15:16:10 +0200
Newsgroups gmane.comp.cms.wyona.devel
Message-ID <[email protected]>
I'm in the process of checking the OpenOffice integration glue that we
created at the OSCOM sprint into Lenya CVS.

However there are some problems I encountered and I thought maybe some
of you old-timers could help me out.

I want to check in the OpenOffice DTDs and a catalog to go with
it. The DTDs are no problem but the catalog essential contains a
reference to where the DTDs are installed on the system, i.e. on the
system where Lenya is installed. On my system this looks as follows:

<public publicId="-//OpenOffice.org//DTD OfficeDocument 1.0//EN" uri="file:///home/egli/src/lenya/src/webapp/lenya/resources/dtd/openoffice/office.dtd"/>

The problem is that I have no way of knowing where Lenya and hence the
DTDs will be installed. This implies the following:

1. create the catalog at install time (when the install dir is known)

2. use a different URI (perhaps the DTDs could be served via http) and
   serve them via some standard URI (e.g. lenya/resources/dtd)

3. place the DTDs and the catalog in a standard location
   (e.g. according to "Filesystem Hierarchy Standard"
   (http://www.pathname.com/fhs/) somewhere in /usr/share/sgml
   (http://www.pathname.com/fhs/2.2/fhs-4.11.html))

4. It seems that there is also the possibility to not even install the
   DTDs locally but always fetch them from a remote location. This
   would imply that we just deliver the catalog which points to the
   DTDs at http://www.openoffice.org

The same problem will be with the Cocoons CatalogManager.properties
(which we don't even keep in CVS since we separated the Cocoon source
from our CVS). I will have to add a reference in this file which
points to the catalog file which I created above. But the location of
the catalog is only known at install time.

On top of it this file is not XML so the xslt trick as we used for
log4j properties will not help.

Any thoughts?

P.S. For the xml catalog novices amongst you here's a very good
reference which I'm studying right now:

http://xmlsoft.org/catalog.html.

-- 
Christian Egli       [email protected]   +41 1 272 9161
                     Wyona AG, Hardstrasse 219, CH-8005 Zurich
Open Source CMS      http://www.wyona.org http://www.wyona.com