1. NAME▲
dh_installxmlcatalogs - install and register XML catalog files
2. SYNOPSIS ▲
dh_installxmlcatalogs [debhelper options] [-n]
3. DESCRIPTION ▲
dh_installxmlcatalogs is a debhelper program that installs and registers XML catalog files. It complies with the Debian XML/SGML policy.
The file debian/\fIpackage\fI.xmlcatalogs lists the local XML catalog files to be installed per package as well as the XML entities in those local XML catalog files that are to be registered in the XML catalog system.
The local XML catalog file entries in that file should be of the form \f(CW\*(C`local;source;dest\*(C'\fR, where the verbatim \f(CW\*(C`local\*(C'\fR indicates this is an entry for a local XML catalog file, \f(CW\*(C`source\*(C'\fR indicates where the local XML catalog resides in the source tree, and \f(CW\*(C`dest\*(C'\fR indicates the destination location for the local XML catalog under the package build area. \f(CW\*(C`dest\*(C'\fR should start with /usr/share/xml/.
The entries for the XML entities to be registered in the package XML catalog file should be of the form \f(CW\*(C`package;type;id;catalog\*(C'\fR, where the verbatim \f(CW\*(C`package\*(C'\fR indicates this is an entry for an XML entity to be registered in the package XML catalog file, \f(CW\*(C`type\*(C'\fR indicates the XML entity type (public, system, uri), \f(CW\*(C`id\*(C'\fR indicates the XML entity id, and \f(CW\*(C`catalog\*(C'\fR indicates the local XML catalog file.
The entries for the XML entities to be registered in the root XML catalog file should be of the form \f(CW\*(C`root;type;id\*(C'\fR, where the verbatim \f(CW\*(C`root\*(C'\fR indicates this is an entry for an XML entity to be registered in the root XML catalog file, \f(CW\*(C`type\*(C'\fR indicates the XML entity type (public, system, uri), and \f(CW\*(C`id\*(C'\fR indicates the XML entity id.
If an entry for is to be registered identically in the root catalog and the package catalog file, you can use the form \f(CW\*(C`root-and-package;type;id;catalog\*(C'\fR, where the verbatim \f(CW\*(C`root-and-package\*(C'\fR indicates this is an entry for an XML entity to be registered in both the root and package XML catalog files, \f(CW\*(C`type\*(C'\fR indicates the XML entity type (public, system, uri), \f(CW\*(C`id\*(C'\fR indicates the XML entity id, and \f(CW\*(C`catalog\*(C'\fR indicates the local XML catalog file.
XML entity types are described in update-xmlcatalog (8). Using the \f(CW\*(C`root\*(C'\fR or \f(CW\*(C`package\*(C'\fR commands, a type of \f(CW\*(C`public\*(C'\fR will general \f(CW\*(C`delegatePublic\*(C'\fR statements in the applicable catalog file. Generally you will want to use the types \f(CW\*(C`public\*(C'\fR for any formal public identifiers, and \f(CW\*(C`system\*(C'\fR for any files on the local filesystem or URLs. \f(CW\*(C`uri\*(C'\fR is only used for non-local files which are not part of the external document subset, e.g., they are not used for entities or DTDs.
dh_installxmlcatalogs automatically adds maintainer script snippets for the registration and unregistration of the listed XML entities in the XML catalog system (unless -n is used). A dependency on the xml-core package will be added to \f(CW\*(C`${misc:Depends}\*(C'\fR, so be sure to use that variable in the file debian/control. See dh_installdeb (1) for an explanation of Debhelper maintainer script snippets.
4. OPTIONS ▲
-n, --noscripts 4 Do not modify postinst/postrm/prerm scripts.
5. NOTES ▲
Note that this command is not idempotent. \*(L"dh_clean -k\*(R" should be called between invocations of this command. Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts.
6. SEE ALSO ▲
debhelper (7)
/usr/share/doc/xml-core/
7. AUTHOR ▲
Ardo van Rangelrooij <>
Adam Di Carlo <>