2 _rootcatalog=/etc/xml/catalog
5 if [[ -w $_rootcatalog ]]; then
7 xmlcatalog --noout --add "delegatePublic" \
8 "-//OASIS//DTD DocBook XML ${v}//EN" \
9 "file://${_datadir}/xml/docbook/schema/dtd/${v}/catalog.xml" \
11 xmlcatalog --noout --add "delegateSystem" \
12 "http://docbook.org/xml/${v}/dtd/" \
13 "file://${_datadir}/xml/docbook/schema/dtd/${v}/catalog.xml" \
15 xmlcatalog --noout --add "delegateURI" \
16 "http://docbook.org/xml/${v}/dtd/" \
17 "file://${_datadir}/xml/docbook/schema/dtd/${v}/catalog.xml" \
19 xmlcatalog --noout --add "delegateURI" \
20 "http://docbook.org/xml/${v}/rng/" \
21 "file://${_datadir}/xml/docbook/schema/rng/${v}/catalog.xml" \
23 xmlcatalog --noout --add "delegateURI" \
24 "http://docbook.org/xml/${v}/sch/" \
25 "file://${_datadir}/xml/docbook/schema/sch/${v}/catalog.xml" \
27 xmlcatalog --noout --add "delegateURI" \
28 "http://docbook.org/xml/${v}/xsd/" \
29 "file://${_datadir}/xml/docbook/schema/xsd/${v}/catalog.xml" \
36 if [[ -w $_rootcatalog ]]; then
38 xmlcatalog --noout --del \
39 "file://${_datadir}/xml/docbook/schema/dtd/${v}/catalog.xml" \
41 xmlcatalog --noout --del \
42 "file://${_datadir}/xml/docbook/schema/rng/${v}/catalog.xml" \
44 xmlcatalog --noout --del \
45 "file://${_datadir}/xml/docbook/schema/sch/${v}/catalog.xml" \
47 xmlcatalog --noout --del \
48 "file://${_datadir}/xml/docbook/schema/xsd/${v}/catalog.xml" \