OK! So far, I have gotten it to work, sort of, using update-xmlcatalog. I ran the following: [EMAIL PROTECTED]:/usr/lib/openoffice/share/dtd/officedocument/1_0> update-xmlcatalog --add --local catalog.xml --file office.dtd --type public --id "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" [EMAIL PROTECTED]:/usr/lib/openoffice/share/dtd/officedocument/1_0> update-xmlcatalog --add --package openoffice.org --local /usr/lib/openoffice/share/dtd/officedocument/1_0/catalog.xml --type public --id "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" [EMAIL PROTECTED]:/usr/lib/openoffice/share/dtd/officedocument/1_0> update-xmlcatalog --add --root --package openoffice.org --type public --id "-//OpenOffice.org//DTD OfficeDocument 1.0//EN"
Explained in the IRC log: KjetilK point is, you have to first add the office.dtd to the local catalog KjetilK so, there we have what we'd like KjetilK except that you actually have to give the type and the identifier explicit KjetilK but I guess that is the way it has to be KjetilK the second line adds that local catalog to the package KjetilK and for that, you don't need a filename KjetilK (of the package) KjetilK the script figures that out KjetilK finally, the package is added to the root catalog After this, my /etc/xml/catalogs contains the line <delegatePublic publicIdStartString="-//OpenOffice.org//DTD OfficeDocument 1.0// EN" catalog="file:///etc/xml/openoffice.org.xml"/> That file again contains a line: <?xml version="1.0"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN" "file:///usr/share/xml/schema/xml-core/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <delegatePublic publicIdStartString="-//OpenOffice.org//DTD OfficeDocument 1.0//EN" catalog="file:///usr/lib/openoffice/share/dtd/officedocument/1_0/catalog.xml"/> </catalog> The local catalog looks like this: <?xml version="1.0"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.0//EN" "file:///usr/share/xml/schema/xml-core/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <public publicId="-//OpenOffice.org//DTD OfficeDocument 1.0//EN" uri="office.dtd"/> </catalog> Now, then the next issue is packaging this stuff.... We'll return to that in a minute... Cheers, Kjetil -- Kjetil Kjernsmo Astrophysicist/IT Consultant/Skeptic/Ski-orienteer/Orienteer/Mountaineer [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Homepage: http://www.kjetil.kjernsmo.net/ OpenPGP KeyID: 6A6A0BBC
pgpPcFdjONfgi.pgp
Description: PGP signature