-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathREADME
33 lines (22 loc) · 1.09 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
== Overview
This is a debian package that installs local copies of the DTDs for commonly
seen ONIX files. These DTDs are registered in the system XML catalog, allowing
libraries like libxml2 to use the local cached copies of the DTDs instead of
downloading them over and over.
This a niche package and I won't make any attempt to get it added to the debian
archive. If you need it, best to build and install it yourself. The package in
arch:all, so should install on both 32 and 64 bit systems as is.
== Building
git clone git://github.com/yob/onix-dtd.git
cd onix-dtd
git-buildpackage
== Installing
dpkg -i onix-dtd_1.0_all.deb
== Mac OS X and other UNIX environments
You can use this package by manually installing the XML catalog. Here's one
approach:
mkdir -p /usr/local/etc/xml/catalog
git clone git://github.com/yob/onix-dtd.git /usr/local/etc/xml/catalog/onix
export XML_CATALOG_FILES=/usr/local/etc/xml/catalog/onix/catalog.xml
For a more permanent result, add to your bash profile script:
export XML_CATALOG_FILES="/usr/local/etc/xml/catalog/onix/catalog.xml $XML_CATALOG_FILES"