Bug#299430: openoffice.org: Please add XML catalog with OO.o DTDs
I was looking for an OpenOffice.org entries the XML Catalog, and when
almost giving up, I was fortunate to bump into Rene Engelhard on
#openoffice.org. We discussed a bit there, but I'm submitting this
report to add a more permanent record of our findings.
XML catalogs are important to allow other applications to use the DTDs
to validate resources. For that reason, it is rather important for
openoffice.org debs to add its DTDs to the Debian XML Catalogs.
The XML catalogs in Debian are governed by a policy now in drafting:
Apparently, there is a script to add catalogs called
update-xmlcatalog, however, this should not be used in
packaging. Rather, dh_installxmlcatalogs should be used.
However, it needs a local catalog.xml file to do its thing. The local
catalog.xml is something that references the DTD of the package in
question. There is an example in the Policy, Example 3.6. I can't
find an official catalog.xml for OO.o. However, I find some examples
by others, see e.g.
and his concrete example:
The Apache Lenya project seems to have similar, simple example:
So, the catalog.xml seems to be rather simple.
However, we see that the
/usr/lib/openoffice/share/dtd/officedocument/1_0 directory has a lot
of *.mod files, and that the above mentioned DocBook example has
entries like that. Whether these are optional or what role they play
is not clear to us.
What is clear, however, that the package should add a package-specific
file to /etc/xml/ too.
Finally, the policy notes that "Most XML DTDs should be registered in
both XML and SGML catalog systems."
BTW, perhaps this should be split off into a separate .deb, so that it
can be installed independently, for example on a server without X? Not
very important, but a sub-wish... :-)
Yup, that was about it, I think... :-)
Thanks for the attention!
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 126.96.36.1994-09-07-13.owl.1.oss
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages openoffice.org depends on:
ii dictionaries-common [openof 0.24.10 Common utilities for spelling dict
ii openoffice.org-bin 1.1.2dfsg1-3 OpenOffice.org office suite binary
ii openoffice.org-debian-files 1.1.2-5+1 Debian specific parts of OpenOffic
ii openoffice.org-l10n-en [ope 1.1.2dfsg1-3 English (US) language package for
ii openoffice.org-l10n-nb [ope 1.1.2dfsg1-3 Norwegian Bokmal language package
ii ttf-opensymbol 1.1.2dfsg1-3 The OpenSymbol TrueType font
-- no debconf information