diff --git a/CATALOG.db41xml b/CATALOG.db41xml
new file mode 100644
index 0000000..e91d585
--- /dev/null
+++ b/CATALOG.db41xml
@@ -0,0 +1,63 @@
+OVERRIDE YES
+DTDDECL "-//OASIS//DTD DocBook XML V4.1.2//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD XML Exchange Table Model 19990315//EN" /usr/share/sgml/opensp/xml.dcl
+ -- ...................................................................... --
+ -- Catalog data for DocBook XML V4.1.2 .................................... --
+ -- File docbook.cat ..................................................... --
+
+ -- Please direct all questions, bug reports, or suggestions for
+ changes to the docbook@lists.oasis-open.org mailing list. For more
+ information, see http://www.oasis-open.org/.
+ --
+
+ -- This is the catalog data file for DocBook XML V4.1.2. It is provided as
+ a convenience in building your own catalog files. You need not use
+ the filenames listed here, and need not use the filename method of
+ identifying storage objects at all. See the documentation for
+ detailed information on the files associated with the DocBook DTD.
+ See SGML Open Technical Resolution 9401 for detailed information
+ on supplying and using catalog data.
+ --
+
+ -- ...................................................................... --
+ -- DocBook driver file .................................................. --
+
+PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1xml/docbookx.dtd"
+
+ -- ...................................................................... --
+ -- DocBook modules ...................................................... --
+
+PUBLIC "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1xml/calstblx.dtd"
+PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "/usr/share/sgml/docbook/dtd/4.1xml/soextblx.dtd"
+PUBLIC "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1xml/dbpoolx.mod"
+PUBLIC "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1xml/dbhierx.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1xml/dbgenent.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1xml/dbnotnx.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1xml/dbcentx.mod"
+
+ -- ...................................................................... --
+ -- ISO entity sets ...................................................... --
+
+PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-dia.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-num.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-pub.ent"
+PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-tech.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-lat1.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-lat2.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-grk1.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-grk2.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-grk3.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-grk4.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-amsa.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-amsb.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-amsc.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-amsn.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-amso.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-amsr.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-box.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-cyr1.ent"
+PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "/usr/share/sgml/docbook/dtd/4.1xml/ent/iso-cyr2.ent"
+
+ -- End of catalog data for DocBook XML V4.1.2 ............................. --
+ -- ...................................................................... --
diff --git a/CATALOG.db42xml b/CATALOG.db42xml
new file mode 100644
index 0000000..f446094
--- /dev/null
+++ b/CATALOG.db42xml
@@ -0,0 +1,114 @@
+OVERRIDE YES
+DTDDECL "-//OASIS//DTD DocBook XML V4.2//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD XML Exchange Table Model 19990315//EN" /usr/share/sgml/opensp/xml.dcl
+ -- ...................................................................... --
+ -- Catalog data for DocBook XML V4.2 .................................... --
+ -- File docbook.cat ..................................................... --
+
+ -- Please direct all questions, bug reports, or suggestions for
+ changes to the docbook@lists.oasis-open.org mailing list. For more
+ information, see http://www.oasis-open.org/.
+ --
+
+ -- This is the catalog data file for DocBook XML V4.2. It is provided as
+ a convenience in building your own catalog files. You need not use
+ the filenames listed here, and need not use the filename method of
+ identifying storage objects at all. See the documentation for
+ detailed information on the files associated with the DocBook DTD.
+ See SGML Open Technical Resolution 9401 for detailed information
+ on supplying and using catalog data.
+ --
+
+ -- ...................................................................... --
+ -- DocBook driver file .................................................. --
+
+PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+ "/usr/share/sgml/docbook/dtd/4.2xml/docbookx.dtd"
+
+ -- ...................................................................... --
+ -- DocBook modules ...................................................... --
+
+PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.2//EN"
+ "/usr/share/sgml/docbook/dtd/4.2xml/calstblx.dtd"
+
+PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
+ "/usr/share/sgml/docbook/dtd/4.2xml/soextblx.dtd"
+
+PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN"
+ "/usr/share/sgml/docbook/dtd/4.2xml/dbpoolx.mod"
+
+PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN"
+ "/usr/share/sgml/docbook/dtd/4.2xml/dbhierx.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN"
+ "/usr/share/sgml/docbook/dtd/4.2xml/dbgenent.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.2//EN"
+ "/usr/share/sgml/docbook/dtd/4.2xml/dbnotnx.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN"
+ "/usr/share/sgml/docbook/dtd/4.2xml/dbcentx.mod"
+
+ -- ...................................................................... --
+ -- ISO entity sets ...................................................... --
+
+PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-dia.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-num.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-pub.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-tech.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-lat1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-lat2.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-grk1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-grk2.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-grk3.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-grk4.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-amsa.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-amsb.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-amsc.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-amsn.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-amso.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-amsr.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-box.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-cyr1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.2xml/ent/iso-cyr2.ent"
+
+ -- End of catalog data for DocBook XML V4.2 ............................. --
+ -- ...................................................................... --
diff --git a/CATALOG.db43xml b/CATALOG.db43xml
new file mode 100644
index 0000000..ba73016
--- /dev/null
+++ b/CATALOG.db43xml
@@ -0,0 +1,119 @@
+OVERRIDE YES
+DTDDECL "-//OASIS//DTD DocBook XML V4.3//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD XML Exchange Table Model 19990315//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN" /usr/share/sgml/opensp/xml.dcl
+
+ -- ...................................................................... --
+ -- Catalog data for DocBook XML V4.3 .................................... --
+ -- File docbook.cat ..................................................... --
+
+ -- Please direct all questions, bug reports, or suggestions for
+ changes to the docbook@lists.oasis-open.org mailing list. For more
+ information, see http://www.oasis-open.org/.
+ --
+
+ -- This is the catalog data file for DocBook XML V4.3. It is provided as
+ a convenience in building your own catalog files. You need not use
+ the filenames listed here, and need not use the filename method of
+ identifying storage objects at all. See the documentation for
+ detailed information on the files associated with the DocBook DTD.
+ See SGML Open Technical Resolution 9401 for detailed information
+ on supplying and using catalog data.
+ --
+
+ -- ...................................................................... --
+ -- DocBook driver file .................................................. --
+
+PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/docbookx.dtd"
+
+ -- ...................................................................... --
+ -- DocBook modules ...................................................... --
+
+PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.3//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/calstblx.dtd"
+
+PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/soextblx.dtd"
+
+PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/htmltblx.mod">
+
+PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/dbpoolx.mod"
+
+PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/dbhierx.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/dbgenent.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.3//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/dbnotnx.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN"
+ "/usr/share/sgml/docbook/dtd/4.3xml/dbcentx.mod"
+
+ -- ...................................................................... --
+ -- ISO entity sets ...................................................... --
+
+PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-dia.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-num.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-pub.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-tech.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-lat1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-lat2.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-grk1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-grk2.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-grk3.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-grk4.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-amsa.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-amsb.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-amsc.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-amsn.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-amso.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-amsr.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-box.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-cyr1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.3xml/ent/iso-cyr2.ent"
+
+ -- End of catalog data for DocBook XML V4.3 ............................. --
+ -- ...................................................................... --
diff --git a/CATALOG.db44xml b/CATALOG.db44xml
new file mode 100644
index 0000000..46deb87
--- /dev/null
+++ b/CATALOG.db44xml
@@ -0,0 +1,119 @@
+OVERRIDE YES
+DTDDECL "-//OASIS//DTD DocBook XML V4.4//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD XML Exchange Table Model 19990315//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" /usr/share/sgml/opensp/xml.dcl
+
+ -- ...................................................................... --
+ -- Catalog data for DocBook XML V4.4 .................................... --
+ -- File docbook.cat ..................................................... --
+
+ -- Please direct all questions, bug reports, or suggestions for
+ changes to the docbook@lists.oasis-open.org mailing list. For more
+ information, see http://www.oasis-open.org/.
+ --
+
+ -- This is the catalog data file for DocBook XML V4.4. It is provided as
+ a convenience in building your own catalog files. You need not use
+ the filenames listed here, and need not use the filename method of
+ identifying storage objects at all. See the documentation for
+ detailed information on the files associated with the DocBook DTD.
+ See SGML Open Technical Resolution 9401 for detailed information
+ on supplying and using catalog data.
+ --
+
+ -- ...................................................................... --
+ -- DocBook driver file .................................................. --
+
+PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/docbookx.dtd"
+
+ -- ...................................................................... --
+ -- DocBook modules ...................................................... --
+
+PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.4//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/calstblx.dtd"
+
+PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/soextblx.dtd"
+
+PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/htmltblx.mod">
+
+PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/dbpoolx.mod"
+
+PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/dbhierx.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/dbgenent.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.4//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/dbnotnx.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN"
+ "/usr/share/sgml/docbook/dtd/4.4xml/dbcentx.mod"
+
+ -- ...................................................................... --
+ -- ISO entity sets ...................................................... --
+
+PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isodia.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isonum.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isopub.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isotech.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isolat1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isolat2.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isogrk1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isogrk2.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isogrk3.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isogrk4.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isoamsa.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isoamsb.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isoamsc.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isoamsn.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isoamso.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isoamsr.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isobox.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isocyr1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.4xml/ent/isocyr2.ent"
+
+ -- End of catalog data for DocBook XML V4.4 ............................. --
+ -- ...................................................................... --
diff --git a/CATALOG.db45xml b/CATALOG.db45xml
new file mode 100644
index 0000000..323b81f
--- /dev/null
+++ b/CATALOG.db45xml
@@ -0,0 +1,119 @@
+OVERRIDE YES
+DTDDECL "-//OASIS//DTD DocBook XML V4.5//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD DocBook CALS Table Model V4.5//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//DTD XML Exchange Table Model 19990315//EN" /usr/share/sgml/opensp/xml.dcl
+DTDDECL "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" /usr/share/sgml/opensp/xml.dcl
+
+ -- ...................................................................... --
+ -- Catalog data for DocBook XML V4.5 .................................... --
+ -- File docbook.cat ..................................................... --
+
+ -- Please direct all questions, bug reports, or suggestions for
+ changes to the docbook@lists.oasis-open.org mailing list. For more
+ information, see http://www.oasis-open.org/.
+ --
+
+ -- This is the catalog data file for DocBook XML V4.5. It is provided as
+ a convenience in building your own catalog files. You need not use
+ the filenames listed here, and need not use the filename method of
+ identifying storage objects at all. See the documentation for
+ detailed information on the files associated with the DocBook DTD.
+ See SGML Open Technical Resolution 9401 for detailed information
+ on supplying and using catalog data.
+ --
+
+ -- ...................................................................... --
+ -- DocBook driver file .................................................. --
+
+PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/docbookx.dtd"
+
+ -- ...................................................................... --
+ -- DocBook modules ...................................................... --
+
+PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.5//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/calstblx.dtd"
+
+PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/soextblx.dtd"
+
+PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/htmltblx.mod">
+
+PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.5//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/dbpoolx.mod"
+
+PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.5//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/dbhierx.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.5//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/dbgenent.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.5//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/dbnotnx.mod"
+
+PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.5//EN"
+ "/usr/share/sgml/docbook/dtd/4.5xml/dbcentx.mod"
+
+ -- ...................................................................... --
+ -- ISO entity sets ...................................................... --
+
+PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isodia.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isonum.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isopub.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isotech.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isolat1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isolat2.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isogrk1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isogrk2.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isogrk3.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isogrk4.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isoamsa.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isoamsb.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isoamsc.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isoamsn.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isoamso.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isoamsr.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isobox.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isocyr1.ent"
+
+PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN//XML"
+ "/usr/share/sgml/docbook/dtd/4.5xml/ent/isocyr2.ent"
+
+ -- End of catalog data for DocBook XML V4.5 ............................. --
+ -- ...................................................................... --
diff --git a/CATALOG.docbook_4 b/CATALOG.docbook_4
new file mode 100644
index 0000000..28d521b
--- /dev/null
+++ b/CATALOG.docbook_4
@@ -0,0 +1,54 @@
+OVERRIDE YES
+-- Load iso_ent early to prevent docbook.cat from biting --
+CATALOG "/var/lib/sgml/CATALOG.iso_ent"
+
+DTDDECL "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" /usr/share/sgml/docbook/dtd/4.4/docbook.dcl
+DTDDECL "-//OASIS//DTD DocBook V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/docbook.dcl"
+CATALOG "/usr/share/sgml/docbook/dtd/4.4/docbook.cat"
+
+DTDDECL "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" /usr/share/sgml/docbook/dtd/4.3/docbook.dcl
+DTDDECL "-//OASIS//DTD DocBook V4.3//EN" "/usr/share/sgml/docbook/dtd/4.3/docbook.dcl"
+CATALOG "/usr/share/sgml/docbook/dtd/4.3/docbook.cat"
+
+PUBLIC "-//USA-DOD//DTD Table Model 951010//EN" "/usr/share/sgml/docbook/dtd/4.1/cals-tbl.dtd"
+-- PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/dbnotnx.mod" --
+PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.2//EN" "/usr/share/sgml/docbook/dtd/4.2/dbnotnx.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.1//EN" "/usr/share/sgml/docbook/dtd/4.1/dbnotn.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1/dbnotn.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.0//EN" "/usr/share/sgml/docbook/dtd/4.1/dbnotn.mod"
+-- PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/dbcentx.mod" --
+PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" "/usr/share/sgml/docbook/dtd/4.2/dbcentx.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.1//EN" "/usr/share/sgml/docbook/dtd/4.1/dbcent.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1/dbcent.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.0//EN" "/usr/share/sgml/docbook/dtd/4.1/dbcent.mod"
+-- PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/dbgenent.mod" --
+PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" "/usr/share/sgml/docbook/dtd/4.2/dbgenent.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.1//EN" "/usr/share/sgml/docbook/dtd/4.1/dbgenent.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1/dbgenent.mod"
+PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.0//EN" "/usr/share/sgml/docbook/dtd/4.1/dbgenent.mod"
+-- PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/dbpoolx.mod" --
+PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" "/usr/share/sgml/docbook/dtd/4.2/dbpoolx.mod"
+PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.1//EN" "/usr/share/sgml/docbook/dtd/4.1/dbpool.mod"
+PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1/dbpool.mod"
+PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.0//EN" "/usr/share/sgml/docbook/dtd/4.1/dbpool.mod"
+-- PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/dbhierx.mod" --
+PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" "/usr/share/sgml/docbook/dtd/4.2/dbhierx.mod"
+PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.1//EN" "/usr/share/sgml/docbook/dtd/4.1/dbhier.mod"
+PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1/dbhier.mod"
+PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.0//EN" "/usr/share/sgml/docbook/dtd/4.1/dbhier.mod"
+PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "/usr/share/sgml/docbook/dtd/4.2/soextblx.dtd"
+PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/docbookx.dtd"
+PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "/usr/share/sgml/docbook/dtd/4.2/docbookx.dtd"
+PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "/usr/share/sgml/docbook/dtd/4.2/docbook.dtd"
+PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "/usr/share/sgml/docbook/dtd/4.1/docbook.dtd"
+PUBLIC "-//OASIS//DTD DocBook V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1/docbook.dtd"
+PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "/usr/share/sgml/docbook/dtd/4.1/docbook.dtd"
+PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/htmltblx.mod"
+PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN" "/usr/share/sgml/docbook/dtd/4.3/htmltblx.mod"
+-- PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" "/usr/share/sgml/docbook/dtd/4.4/calstblx.dtd" --
+PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" "/usr/share/sgml/docbook/dtd/4.2/calstblx.dtd"
+DTDDECL "-//OASIS//DTD XML Exchange Table Model 19990315//EN" /usr/share/sgml/docbook/dtd/4.2/docbook.dcl
+DTDDECL "-//OASIS//DTD DocBook XML V4.2//EN" /usr/share/sgml/docbook/dtd/4.2/docbook.dcl
+DTDDECL "-//OASIS//DTD DocBook V4.1//EN" "/usr/share/sgml/docbook/dtd/4.1/docbook.dcl"
+DTDDECL "-//OASIS//DTD DocBook V4.1.2//EN" "/usr/share/sgml/docbook/dtd/4.1/docbook.dcl"
+DTDDECL "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" /usr/share/sgml/docbook/dtd/4.2/docbook.dcl
diff --git a/core-catalog b/core-catalog
deleted file mode 100644
index 81d8503..0000000
--- a/core-catalog
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docbk41.zip b/docbk41.zip
new file mode 100644
index 0000000..ef62bee
--- /dev/null
+++ b/docbk41.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:deaafcf0a3677692e7ad4412c0e41c1db3e9da6cdcdb3dd32b2cc1f9c97d6311
+size 56654
diff --git a/docbkx412.zip b/docbkx412.zip
new file mode 100644
index 0000000..728f456
--- /dev/null
+++ b/docbkx412.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c7bc148429e1fbf2936e99ca663230a0f7a4a42ebe8fd90b64852f0ef7b43820
+size 75570
diff --git a/docbook-4-3-xml-cat.diff b/docbook-4-3-xml-cat.diff
new file mode 100644
index 0000000..3575602
--- /dev/null
+++ b/docbook-4-3-xml-cat.diff
@@ -0,0 +1,27 @@
+--- docbook_4/4.3xml/catalog.xml.~1~ 2004-03-31 13:22:12.000000000 +0200
++++ docbook_4/4.3xml/catalog.xml 2005-05-17 15:28:06.000000000 +0200
+@@ -34,6 +34,9 @@
+
+
++
++
+
+
+
+--- docbook_4/dtd/4.3/catalog.xml.~1~ 2004-03-31 13:45:14.000000000 +0200
++++ docbook_4/dtd/4.3/catalog.xml 2005-05-17 15:27:35.000000000 +0200
+@@ -34,6 +34,9 @@
+
+
++
++
+
+
+
+Diff finished. Tue May 17 15:28:24 2005
diff --git a/docbook-4-3.diff b/docbook-4-3.diff
new file mode 100644
index 0000000..63817c6
--- /dev/null
+++ b/docbook-4-3.diff
@@ -0,0 +1,28 @@
+--- dtd/4.3/docbook.dcl.~1~ 2004-03-31 13:44:16.000000000 +0200
++++ dtd/4.3/docbook.dcl 2004-06-06 09:07:41.722095720 +0200
+@@ -61,8 +61,8 @@
+ NAMING
+ LCNMSTRT ""
+ UCNMSTRT ""
+- LCNMCHAR ".-_"
+- UCNMCHAR ".-_"
++ LCNMCHAR ".-_:"
++ UCNMCHAR ".-_:"
+ NAMECASE
+ GENERAL YES
+ ENTITY NO
+
+--- dtd/4.3/htmltblx.mod.~1~ 2004-03-31 13:43:24.000000000 +0200
++++ dtd/4.3/htmltblx.mod 2004-06-06 09:45:55.033459400 +0200
+@@ -213,8 +213,10 @@
+ bgcolor CDATA #IMPLIED
+ '>
+
++
+
++top|bottom|topbot|sides">
+
+
+
diff --git a/docbook-4.2.zip b/docbook-4.2.zip
new file mode 100644
index 0000000..67b6e31
--- /dev/null
+++ b/docbook-4.2.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:67ebd2c94b342718c6865d2de60f5d4ff02d77a7e4b0d9e72a48c45f2b2635c3
+size 61830
diff --git a/docbook-4.3.patch b/docbook-4.3.patch
deleted file mode 100644
index 3accd10..0000000
--- a/docbook-4.3.patch
+++ /dev/null
@@ -1,40 +0,0 @@
---- a/4.3/dtd/docbook.dcl 2004-03-31 13:44:16.000000000 +0200
-+++ b/4.3/dtd/docbook.dcl 2004-06-06 09:07:41.722095720 +0200
-@@ -61,8 +61,8 @@
- NAMING
- LCNMSTRT ""
- UCNMSTRT ""
-- LCNMCHAR ".-_"
-- UCNMCHAR ".-_"
-+ LCNMCHAR ".-_:"
-+ UCNMCHAR ".-_:"
- NAMECASE
- GENERAL YES
- ENTITY NO
-
---- a/4.3/dtd/htmltblx.mod 2004-03-31 13:43:24.000000000 +0200
-+++ b/4.3/dtd/htmltblx.mod 2004-06-06 09:45:55.033459400 +0200
-@@ -213,8 +213,10 @@
- bgcolor CDATA #IMPLIED
- '>
-
-+
-
-+top|bottom|topbot|sides">
-
-
-
-
---- a/4.3/xml/catalog.xml 2004-03-31 13:22:12.000000000 +0200
-+++ b/4.3/xml/catalog.xml 2005-05-17 15:28:06.000000000 +0200
-@@ -34,6 +34,9 @@
-
-
-+
-+
-
diff --git a/docbook-4.3.zip b/docbook-4.3.zip
new file mode 100644
index 0000000..b3ac6f2
--- /dev/null
+++ b/docbook-4.3.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:88f52fab7bd49b2e8f40c525014129c26a5a4b8bbd1494e00387556ec76f95ee
+size 66117
diff --git a/docbook-4.4.zip b/docbook-4.4.zip
new file mode 100644
index 0000000..3e9fb26
--- /dev/null
+++ b/docbook-4.4.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:0ac7960409b032c8e517483523ecb92af4e59196a33b3e2c5617daa22b7a8a6c
+size 66879
diff --git a/docbook-4.5.zip b/docbook-4.5.zip
new file mode 100644
index 0000000..fffd292
--- /dev/null
+++ b/docbook-4.5.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8043e514e80c6c19cb146b5d37937d1305bf3abf9b0097c36df7f70f611cdf43
+size 71252
diff --git a/docbook-4.sgml b/docbook-4.sgml
deleted file mode 100644
index e639be4..0000000
--- a/docbook-4.sgml
+++ /dev/null
@@ -1,49 +0,0 @@
--- docbook_4.1 --
-PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "__DIR__/4.1/dtd/docbookx.dtd"
-PUBLIC "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" "__DIR__/4.1/dtd/calstblx.dtd"
-PUBLIC "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" "__DIR__/4.1/dtd/dbpoolx.mod"
-PUBLIC "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" "__DIR__/4.1/dtd/dbhierx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" "__DIR__/4.1/dtd/dbgenent.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" "__DIR__/4.1/dtd/dbnotnx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" "__DIR__/4.1/dtd/dbcentx.mod"
-
--- docbook_4.2 --
-PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "__DIR__/4.2/dtd/docbookx.dtd"
-PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.2//EN" "__DIR__/4.2/dtd/calstblx.dtd"
-PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.2//EN" "__DIR__/4.2/dtd/htmltblx.mod">
-PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.2//EN" "__DIR__/4.2/dtd/dbpoolx.mod"
-PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.2//EN" "__DIR__/4.2/dtd/dbhierx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.2//EN" "__DIR__/4.2/dtd/dbgenent.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.2//EN" "__DIR__/4.2/dtd/dbnotnx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.2//EN" "__DIR__/4.2/dtd/dbcentx.mod"
-
--- docbook_4.3 --
-PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "__DIR__/4.3/dtd/docbookx.dtd"
-PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.3//EN" "__DIR__/4.3/dtd/calstblx.dtd"
-PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN" "__DIR__/4.3/dtd/htmltblx.mod">
-PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.3//EN" "__DIR__/4.3/dtd/dbpoolx.mod"
-PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.3//EN" "__DIR__/4.3/dtd/dbhierx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.3//EN" "__DIR__/4.3/dtd/dbgenent.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.3//EN" "__DIR__/4.3/dtd/dbnotnx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.3//EN" "__DIR__/4.3/dtd/dbcentx.mod"
-
--- docbook_4.4 --
-PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "__DIR__/4.4/dtd/docbookx.dtd"
-PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.4//EN" "__DIR__/4.4/dtd/calstblx.dtd"
-PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.4//EN" "__DIR__/4.4/dtd/htmltblx.mod">
-PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.4//EN" "__DIR__/4.4/dtd/dbpoolx.mod"
-PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.4//EN" "__DIR__/4.4/dtd/dbhierx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.4//EN" "__DIR__/4.4/dtd/dbgenent.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.4//EN" "__DIR__/4.4/dtd/dbnotnx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.4//EN" "__DIR__/4.4/dtd/dbcentx.mod"
-
--- docbook_4.5 --
-PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "__DIR__/4.5/dtd/docbookx.dtd"
-PUBLIC "-//OASIS//DTD DocBook CALS Table Model V4.5//EN" "__DIR__/4.5/dtd/calstblx.dtd"
-PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN" "__DIR__/4.5/dtd/soextblx.dtd"
-PUBLIC "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" "__DIR__/4.5/dtd/htmltblx.mod">
-PUBLIC "-//OASIS//ELEMENTS DocBook Information Pool V4.5//EN" "__DIR__/4.5/dtd/dbpoolx.mod"
-PUBLIC "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.5//EN" "__DIR__/4.5/dtd/dbhierx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Additional General Entities V4.5//EN" "__DIR__/4.5/dtd/dbgenent.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Notations V4.5//EN" "__DIR__/4.5/dtd/dbnotnx.mod"
-PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.5//EN" "__DIR__/4.5/dtd/dbcentx.mod"
diff --git a/docbook-4.x.tar.bz2 b/docbook-4.x.tar.bz2
deleted file mode 100644
index 59eb4e3..0000000
--- a/docbook-4.x.tar.bz2
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:96aa514638bd53abf93e3c46783c485e8a54876ea700fbbd712886e195bdf2ca
-size 597527
diff --git a/docbook-4.xml b/docbook-4.xml
deleted file mode 100644
index 1163b84..0000000
--- a/docbook-4.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docbook-rng-4.2.zip b/docbook-rng-4.2.zip
new file mode 100644
index 0000000..9ab57a1
--- /dev/null
+++ b/docbook-rng-4.2.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:001d6f4945f36faf542b2d5ab421de03ed6bbda0b3adecb13ce69b22fd56b5f9
+size 45420
diff --git a/docbook-rng-4.3.zip b/docbook-rng-4.3.zip
new file mode 100644
index 0000000..82790dc
--- /dev/null
+++ b/docbook-rng-4.3.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:16d3120df58237e19445bc5ca14d05597d29e0734e93eb16582ec200ec065d19
+size 96587
diff --git a/docbook-rng-4.4.zip b/docbook-rng-4.4.zip
new file mode 100644
index 0000000..a7b296e
--- /dev/null
+++ b/docbook-rng-4.4.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:38c0bcd5e40226b15d79b86b119341d88f5b6c6e80cd20fb262238963aec1d15
+size 97530
diff --git a/docbook-rng-4.5.zip b/docbook-rng-4.5.zip
new file mode 100644
index 0000000..3105369
--- /dev/null
+++ b/docbook-rng-4.5.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d6af9289b2a47ba60f86480bbec5c3471bb5c96b6c632357760a697c73097097
+size 107650
diff --git a/docbook-xml-4.2.zip b/docbook-xml-4.2.zip
new file mode 100644
index 0000000..f5e4c80
--- /dev/null
+++ b/docbook-xml-4.2.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:acc4601e4f97a196076b7e64b368d9248b07c7abf26b34a02cca40eeebe60fa2
+size 78428
diff --git a/docbook-xml-4.3.zip b/docbook-xml-4.3.zip
new file mode 100644
index 0000000..cd66271
--- /dev/null
+++ b/docbook-xml-4.3.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:23068a94ea6fd484b004c5a73ec36a66aa47ea8f0d6b62cc1695931f5c143464
+size 83865
diff --git a/docbook-xml-4.4.zip b/docbook-xml-4.4.zip
new file mode 100644
index 0000000..fafd392
--- /dev/null
+++ b/docbook-xml-4.4.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:02f159eb88c4254d95e831c51c144b1863b216d909b5ff45743a1ce6f5273090
+size 96107
diff --git a/docbook-xml-4.5.zip b/docbook-xml-4.5.zip
new file mode 100644
index 0000000..6bbe490
--- /dev/null
+++ b/docbook-xml-4.5.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4e4e037a2b83c98c6c94818390d4bdd3f6e10f6ec62dd79188594e26190dc7b4
+size 98497
diff --git a/docbook-xsd-4.2.zip b/docbook-xsd-4.2.zip
new file mode 100644
index 0000000..ecf943e
--- /dev/null
+++ b/docbook-xsd-4.2.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:32d105b60a1524c71acbb9e700fb210fe69faf28716b9b6703901ba43a3973e5
+size 40330
diff --git a/docbook-xsd-4.3.zip b/docbook-xsd-4.3.zip
new file mode 100644
index 0000000..58b1b28
--- /dev/null
+++ b/docbook-xsd-4.3.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c6b988431003b857927239d11254a57158b893e4960c80ae1a5ce02e8c6af7f5
+size 45016
diff --git a/docbook-xsd-4.4.zip b/docbook-xsd-4.4.zip
new file mode 100644
index 0000000..dfec29b
--- /dev/null
+++ b/docbook-xsd-4.4.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:710db64c36ed962aa8dab97bd1b5bea1b1fb4c613e0d3b8f8adf0069f535c699
+size 45446
diff --git a/docbook-xsd-4.5.zip b/docbook-xsd-4.5.zip
new file mode 100644
index 0000000..6d1e2ee
--- /dev/null
+++ b/docbook-xsd-4.5.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fec73f25f402a20f6d1894c43f4dce8abcc8c87b15f0536b19a58a82464a5b2
+size 50667
diff --git a/docbook-4.4.patch b/docbook.4.4.dcl.diff
similarity index 53%
rename from docbook-4.4.patch
rename to docbook.4.4.dcl.diff
index 1eaf74e..fcd8bc0 100644
--- a/docbook-4.4.patch
+++ b/docbook.4.4.dcl.diff
@@ -1,5 +1,5 @@
---- a/4.4/dtd/docbook.dcl 2005-01-27 14:59:49.000000000 +0100
-+++ b/4.4/dtd/docbook.dcl 2005-08-17 13:48:37.000000000 +0200
+--- docbook.dcl.~1~ 2005-01-27 14:59:49.000000000 +0100
++++ docbook.dcl 2005-08-17 13:48:37.000000000 +0200
@@ -61,8 +61,8 @@
NAMING
LCNMSTRT ""
@@ -11,3 +11,5 @@
NAMECASE
GENERAL YES
ENTITY NO
+
+Diff finished. Wed Aug 17 13:48:41 2005
diff --git a/docbook_4-README.SUSE b/docbook_4-README.SUSE
new file mode 100644
index 0000000..2aea8fa
--- /dev/null
+++ b/docbook_4-README.SUSE
@@ -0,0 +1,31 @@
+README.SuSE (2005-02-02 13:52:09 CET)
+=====================================
+
+
+SGML CATALOG Files
+------------------
+
+SGML
+....
+
+The default CATALOG file for DocBook 4 is
+/usr/share/sgml/CATALOG.docbook_4; it is valid for DocBook DTD 4.1, 4.2,
+4.3, and 4.4.
+
+
+XML
+...
+
+The name of the SGML CATALOG file for the XML versions are:
+
+ /usr/share/sgml/CATALOG.db41xml
+ /usr/share/sgml/CATALOG.db42xml
+ /usr/share/sgml/CATALOG.db43xml
+ /usr/share/sgml/CATALOG.db44xml
+
+
+XML CATALOG Files
+------------------
+
+XML catalogs are available through /etc/xml/catalog which points to
+/etc/xml/suse-catalog.xml.
diff --git a/docbook_4.changes b/docbook_4.changes
index 0efe293..90f8381 100644
--- a/docbook_4.changes
+++ b/docbook_4.changes
@@ -1,21 +1,14 @@
-------------------------------------------------------------------
-Tue Aug 5 11:27:00 UTC 2014 - rsalevsky@suse.com
+Thu Feb 19 09:42:19 UTC 2015 - toms@opensuse.org
-- fix installation I/O error
-- fix entities
-- rename docbook.4.4.dcl.diff to docbook-4.4.patch
-- migrate and rename docbook-4-3.diff and docbook-4-3-xml-cat.diff
- to docbook-4.3.patch
-
--------------------------------------------------------------------
-Thu Jun 12 15:25:08 UTC 2014 - rsalevsky@suse.com
-
-- using the xml-group-manager to manage the catalog entrys
+- Fixed subtle XML catalog bug (bsc#918565)
+- Renamed docbook_4-README.SuSE -> docbook_4-README.SUSE to
+ avoid rpmlint warnings
-------------------------------------------------------------------
Mon Jul 15 06:02:47 UTC 2013 - toms@opensuse.org
-- Fixed bnc#828872:
+- Fixed bnc#828872:
Missing system identifier http://www.docbook.org/xml/$VER/ added
- Spec file:
diff --git a/docbook_4.spec b/docbook_4.spec
index 422dad9..bc18ad6 100644
--- a/docbook_4.spec
+++ b/docbook_4.spec
@@ -1,7 +1,7 @@
#
# spec file for package docbook_4
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,27 +17,59 @@
Name: docbook_4
-Version: 4.5
-Release: 0
+BuildRequires: fdupes
+BuildRequires: sgml-skel
+BuildRequires: unzip
+Provides: docbook
+Provides: docbook-dtd
+Provides: docbook-dtds
+Requires: iso_ent
+%define regcat /usr/bin/sgml-register-catalog
+PreReq: %{regcat} /usr/bin/xmlcatalog sgml-skel
+PreReq: sed grep awk
Summary: DocBook DTD Version 4.x
License: BSD-3-Clause and MIT
Group: Productivity/Publishing/DocBook
-Url: http://www.oasis-open.org/docbook/
-Source0: docbook-4.x.tar.bz2
-Source1: core-catalog
-Source2: docbook-4.xml
-Source3: docbook-4.sgml
-Patch1: docbook-4.3.patch
-Patch2: docbook-4.4.patch
-Requires: sgml-skel
-Requires: xml-group-manager
-Requires: xmlcharent
-BuildRequires: fdupes
-BuildRequires: sgml-skel
-BuildRequires: xml-group-manager
-BuildRequires: xmlcharent
-BuildArch: noarch
+Version: 4.5
+Release: 0
+Source2: docbook_4-README.SUSE
+Source7: CATALOG.docbook_4
+# DocBook 4.1
+Source410: http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip
+Source411: http://www.oasis-open.org/docbook/xml/4.1/docbkx412.zip
+# No RNG and XSD files for DB4.1
+Source414: CATALOG.db41xml
+# DocBook 4.2
+Source420: http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip
+Source421: http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
+Source422: http://www.oasis-open.org/docbook/rng/4.2/docbook-rng-4.2.zip
+Source423: http://www.oasis-open.org/docbook/xsd/4.2/docbook-xsd-4.2.zip
+Source424: CATALOG.db42xml
+# DocBook 4.3
+Source430: http://www.docbook.org/sgml/4.3/docbook-4.3.zip
+Source431: http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
+Source432: http://www.docbook.org/rng/4.3/docbook-rng-4.3.zip
+Source433: http://www.docbook.org/xsd/4.3/docbook-xsd-4.3.zip
+Source434: CATALOG.db43xml
+# DocBook 4.4
+Source440: http://www.oasis-open.org/docbook/sgml/4.4/docbook-4.4.zip
+Source441: http://www.oasis-open.org/docbook/xml/4.4/docbook-xml-4.4.zip
+Source442: http://www.docbook.org/rng/4.4/docbook-rng-4.4.zip
+Source443: http://www.docbook.org/xsd/4.4/docbook-xsd-4.4.zip
+Source444: CATALOG.db44xml
+# DocBook 4.5
+Source450: http://www.oasis-open.org/docbook/sgml/4.5/docbook-4.5.zip
+Source451: http://www.oasis-open.org/docbook/xml/4.5/docbook-xml-4.5.zip
+Source452: http://www.docbook.org/rng/4.5/docbook-rng-4.5.zip
+Source453: http://www.docbook.org/xsd/4.5/docbook-xsd-4.5.zip
+Source454: CATALOG.db45xml
+# Patches
+Patch1: docbook-4-3.diff
+Patch2: docbook-4-3-xml-cat.diff
+Patch3: docbook.4.4.dcl.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildArch: noarch
+Url: http://www.oasis-open.org/docbook/
%description
DocBook is a schema. It is particularly well-suited to books and papers
@@ -46,31 +78,349 @@ applications at all). This package has SGML- and XML-DTD versions
included. Some versions of DocBook contain also a RELAX NG and W3C
Schema.
+%define INSTALL install -m755 -s
+%define INSTALL_DIR install -d -m755
+%define INSTALL_DATA install -m644
+%define INSTALL_SCRIPT install -m755
+%define sgml_dir %{_datadir}/sgml
+%define sgml_docbook_dir %{sgml_dir}/docbook
+%define sgml_docbook_dtd_dir %{sgml_docbook_dir}/dtd
+%define sgml_docbook_custom_dir %{sgml_docbook_dir}/custom
+%define sgml_docbook_style_dir %{sgml_docbook_dir}/stylesheet
+%define xml_dir %{_datadir}/xml
+%define xml_docbook_dir %{xml_dir}/docbook
+%define xml_docbook_dtd_dir %{xml_docbook_dir}/schema/dtd
+%define xml_docbook_rng_dir %{xml_docbook_dir}/schema/rng
+%define xml_docbook_xsd_dir %{xml_docbook_dir}/schema/xsd
+%define xml_docbook_custom_dir %{xml_docbook_dir}/custom
+%define xml_docbook_style_dir %{xml_docbook_dir}/stylesheet
+%define sgml_config_dir /var/lib/sgml
+%define sgml_sysconf_dir %{_sysconfdir}/sgml
+%define xml_config_dir /var/lib/xml
+%define xml_sysconf_dir %{_sysconfdir}/xml
+
%prep
-%setup -q -n docbook-4.x
-%patch1 -p1
-%patch2 -p1
-sed 's|__CATALOG__|%{_datadir}/%{name}/%{name}.xml|' %{SOURCE1} > core-catalog
-sed 's|__DIR__|%{_datadir}/%{name}|' %{SOURCE2} > %{name}.xml
-sed 's|__DIR__|%{_datadir}/%{name}|' %{SOURCE3} > %{name}.sgml
+%setup -n %{name} -c -T
+cp -p $RPM_SOURCE_DIR/%{name}-README.SUSE README.SUSE
+%{INSTALL_DIR} dtd/4.{1,2,3,4,5} 4.{1,2,3,4,5}xml
+echo "**** %{S:410}"
+pushd dtd/4.1
+ unzip -q -a %{S:410}
+popd
+pushd 4.1xml
+ unzip -q -a %{S:411}
+popd
+pushd dtd/4.2
+ unzip -q -a %{S:420}
+popd
+pushd 4.2xml
+ unzip -q -a %{S:421}
+popd
+pushd dtd/4.3
+ unzip -q -a %{S:430}
+popd
+pushd 4.3xml
+ unzip -q -a %{S:431}
+popd
+pushd dtd/4.4
+ unzip -q -a %{S:440}
+%patch3 -p 0
+popd
+pushd 4.4xml
+ unzip -q -a %{S:441}
+popd
+pushd dtd/4.5
+ unzip -q -a %{S:450}
+popd
+pushd 4.5xml
+ unzip -q -a %{S:451}
+popd
+%patch -p 1 -P 1 -p 0
+%patch2 -p 1
+# CATALOG.* files
+cp %{S:7} %{S:414} %{S:424} %{S:434} %{S:444} %{S:454} .
+chmod -R a+rX,g-w,o-w .
+find . -type f | xargs chmod a-x
%build
+CATALOG=docbook_41.xml
+# # build root catalog fragment
+xmlcatbin=/usr/bin/xmlcatalog
+$xmlcatbin --create --noout $CATALOG
+docbookdir=%{xml_docbook_dtd_dir}/4.1
+$xmlcatbin --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Information Pool V4.1.2//EN" \
+ "file://$docbookdir/dbpoolx.mod" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "-//OASIS//DTD DocBook XML V4.1.2//EN" \
+ "file://$docbookdir/docbookx.dtd" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Character Entities V4.1.2//EN" \
+ "file://$docbookdir/dbcentx.mod" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Notations V4.1.2//EN" \
+ "file://$docbookdir/dbnotnx.mod" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.1.2//EN" \
+ "file://$docbookdir/dbgenent.mod" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.1.2//EN" \
+ "file://$docbookdir/dbhierx.mod" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "file://$docbookdir/soextblx.dtd" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "-//OASIS//DTD DocBook XML CALS Table Model V4.1.2//EN" \
+ "file://$docbookdir/calstblx.dtd" $CATALOG
+$xmlcatbin --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2" \
+ "file://$docbookdir" $CATALOG
+$xmlcatbin --noout --add "rewriteSystem" \
+ "http://www.docbook.org/xml/4.1.2" \
+ "file://$docbookdir" $CATALOG
+$xmlcatbin --noout --add "rewriteURI" \
+ "http://www.oasis-open.org/docbook/xml/4.1.2" \
+ "file://$docbookdir" $CATALOG
+# === iso
+isodir=$docbookdir/ent
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Publishing//EN//XML" \
+ "file://$isodir/iso-pub.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Greek Letters//EN//XML" \
+ "file://$isodir/iso-grk1.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Box and Line Drawing//EN//XML" \
+ "file://$isodir/iso-box.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Greek Symbols//EN//XML" \
+ "file://$isodir/iso-grk3.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN//XML" \
+ "file://$isodir/iso-amsn.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN//XML" \
+ "file://$isodir/iso-num.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN//XML" \
+ "file://$isodir/iso-grk4.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Diacritical Marks//EN//XML" \
+ "file://$isodir/iso-dia.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Monotoniko Greek//EN//XML" \
+ "file://$isodir/iso-grk2.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN//XML" \
+ "file://$isodir/iso-amsa.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN//XML" \
+ "file://$isodir/iso-amso.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Russian Cyrillic//EN//XML" \
+ "file://$isodir/iso-cyr1.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES General Technical//EN//XML" \
+ "file://$isodir/iso-tech.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN//XML" \
+ "file://$isodir/iso-amsc.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Added Latin 1//EN//XML" \
+ "file://$isodir/iso-lat1.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN//XML" \
+ "file://$isodir/iso-amsb.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Added Latin 2//EN//XML" \
+ "file://$isodir/iso-lat2.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN//XML" \
+ "file://$isodir/iso-amsr.ent" $CATALOG
+$xmlcatbin --noout --add "public" \
+ "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN//XML" \
+ "file://$isodir/iso-cyr2.ent" $CATALOG
+# ====
+%define FOR_ROOT_CAT for-catalog-%{name}-%{version}.xml
+CATALOG=etc/xml/$CATALOG
+rm -f %{FOR_ROOT_CAT}.tmp
+$xmlcatbin --noout --create %{FOR_ROOT_CAT}.tmp
+for v in 4.2 4.3 4.4 4.5; do
+ cat42=%{xml_docbook_dtd_dir}/$v/catalog.xml
+ for s in \
+ "-//OASIS//DTD DocBook XML V${v}//EN" \
+ "-//OASIS//DTD DocBook CALS Table Model V${v}//EN" \
+ "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
+ "-//OASIS//ELEMENTS DocBook Information Pool V${v}//EN" \
+ "-//OASIS//ELEMENTS DocBook Document Hierarchy V${v}//EN" \
+ "-//OASIS//ENTITIES DocBook Additional General Entities V${v}//EN" \
+ "-//OASIS//ENTITIES DocBook Notations V${v}//EN" \
+ "-//OASIS//ENTITIES DocBook Character Entities V${v}//EN"
+ do
+ $xmlcatbin --noout --add "delegatePublic" "$s" \
+ "file://$cat42" %{FOR_ROOT_CAT}.tmp
+ done
+ case $v in
+ 4.[345])
+ $xmlcatbin --noout --add "delegatePublic" \
+ "-//OASIS//ELEMENTS DocBook XML HTML Tables V${v}//EN" \
+ "file://$cat42" %{FOR_ROOT_CAT}.tmp
+ ;;
+ *)
+ true
+ esac
+ $xmlcatbin --noout --add "delegateSystem" \
+ "http://www.oasis-open.org/docbook/xml/${v}" \
+ "file://$cat42" %{FOR_ROOT_CAT}.tmp
+ $xmlcatbin --noout --add "delegateSystem" \
+ "http://www.docbook.org/xml/${v}" \
+ "file://$cat42" %{FOR_ROOT_CAT}.tmp
+ $xmlcatbin --noout --add "delegateURI" \
+ "http://www.oasis-open.org/docbook/xml/${v}" \
+ "file://$cat42" %{FOR_ROOT_CAT}.tmp
+ $xmlcatbin --noout --add "rewriteSystem" \
+ "http://www.oasis-open.org/docbook/xml/${v}" \
+ "file://%{xml_docbook_dtd_dir}/${v}" %{FOR_ROOT_CAT}.tmp
+ $xmlcatbin --noout --add "rewriteSystem" \
+ "http://www.docbook.org/xml/${v}" \
+ "file://%{xml_docbook_dtd_dir}/${v}" %{FOR_ROOT_CAT}.tmp
+ $xmlcatbin --noout --add "delegatePublic" \
+ "ISO 8879:1986" \
+ "file:///$CATALOG" %{FOR_ROOT_CAT}.tmp
+done
+# 41xml
+for s in \
+ "-//OASIS//DTD DocBook XML V4.1" \
+ "-//OASIS//ELEMENTS DocBook Information Pool V4.1" \
+ "-//OASIS//ELEMENTS DocBook Document Hierarchy V4.1" \
+ "-//OASIS//ENTITIES DocBook Additional General Entities V4.1" \
+ "-//OASIS//ENTITIES DocBook Notations V4.1" \
+ "-//OASIS//ENTITIES DocBook Character Entities V4.1"
+ do
+ $xmlcatbin --noout --add "delegatePublic" "$s" \
+ "file:///$CATALOG" %{FOR_ROOT_CAT}.tmp
+done
+$xmlcatbin --noout --add "delegateSystem" \
+ "http://www.oasis-open.org/docbook/xml/4.1" \
+ "file:///$CATALOG" %{FOR_ROOT_CAT}.tmp
+$xmlcatbin --noout --add "delegateURI" \
+ "http://www.oasis-open.org/docbook/xml/4.1" \
+ "file:///$CATALOG" %{FOR_ROOT_CAT}.tmp
+# Create tag
+sed '/
+/<\/catalog/i\
+ ' \
+ %{FOR_ROOT_CAT}.tmp > %{FOR_ROOT_CAT}
%install
-%{__mkdir} -p %{buildroot}%{_datadir}/%{name}/
-%{__cp} -R * %{buildroot}%{_datadir}/%{name}/
-%fdupes %{buildroot}
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_config_dir}
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{xml_config_dir}
+%{INSTALL_DATA} CATALOG.* $RPM_BUILD_ROOT%{sgml_config_dir}
+# for CATALOG.* links
+%define my_all_cat docbook_4 db41xml db42xml db43xml db44xml db45xml
+for v in 4.1 4.2 4.3 4.4 4.5; do
+ vl=${v/\.}
+ %{INSTALL_DIR} $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/$v
+ %{INSTALL_DATA} dtd/${v}/* $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/${v}
+ %{INSTALL_DIR} $RPM_BUILD_ROOT%{xml_docbook_dtd_dir}/$v
+ cp -a ${v}xml/* $RPM_BUILD_ROOT%{xml_docbook_dtd_dir}/$v
+ ln -s %{xml_docbook_dtd_dir}/$v $RPM_BUILD_ROOT%{sgml_docbook_dtd_dir}/${v}xml
+ ln -sf %{sgml_config_dir}/CATALOG.db${vl}xml \
+ $RPM_BUILD_ROOT%{sgml_dir}/CATALOG.db${vl}xml
+done
+ln -sf %{sgml_docbook_dtd_dir}/4.1 $RPM_BUILD_ROOT%{sgml_dir}/%{name}.1
+ln -sf %{sgml_config_dir}/CATALOG.%{name} \
+ $RPM_BUILD_ROOT%{sgml_dir}/CATALOG.%{name}
+ln -sf %{sgml_config_dir}/CATALOG.%{name} \
+ $RPM_BUILD_ROOT%{sgml_dir}/CATALOG.docbk41
+cat_dir=%{buildroot}/etc/xml
+%{INSTALL_DIR} $cat_dir
+%{INSTALL_DATA} %{FOR_ROOT_CAT} docbook_41.xml $cat_dir
+# rng
+%{INSTALL_DIR} $RPM_BUILD_ROOT%{xml_docbook_rng_dir}/{4.3,4.4} \
+ $RPM_BUILD_ROOT%{xml_docbook_xsd_dir}/{4.3,4.4}
+unzip -q -a -d $RPM_BUILD_ROOT%{xml_docbook_rng_dir}/4.2 %{S:422}
+unzip -q -a -d $RPM_BUILD_ROOT%{xml_docbook_rng_dir}/4.3 %{S:432}
+unzip -q -a -d $RPM_BUILD_ROOT%{xml_docbook_rng_dir}/4.4 %{S:442}
+unzip -q -a -d $RPM_BUILD_ROOT%{xml_docbook_rng_dir}/4.5 %{S:452}
+# w3c schema
+unzip -q -a -d $RPM_BUILD_ROOT%{xml_docbook_xsd_dir}/4.2 %{S:422}
+unzip -q -a -d $RPM_BUILD_ROOT%{xml_docbook_xsd_dir}/4.3 %{S:433}
+unzip -q -a -d $RPM_BUILD_ROOT%{xml_docbook_xsd_dir}/4.4 %{S:443}
+unzip -q -a -d $RPM_BUILD_ROOT%{xml_docbook_xsd_dir}/4.5 %{S:453}
+# cleanup
+%fdupes $RPM_BUILD_ROOT
%post
-xml-group-manager -a %{name} %{_datadir}/%{name}/core-catalog
-sgml-register-catalog -a %{_datadir}/%{name}/%{name}.sgml
+if [ -x %{regcat} ]; then
+ for c in %{my_all_cat}; do
+ %{regcat} -a %{sgml_dir}/CATALOG.$c \
+ >/dev/null 2>&1 || true
+ done
+fi
+
+# in case of an update, remove old
+if [ "2" = "$1" ]; then
+ /usr/bin/edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
+ --del %{name}-%{version} || true
+fi
+/usr/bin/edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
+ --add /etc/xml/%{FOR_ROOT_CAT}
%postun
-xml-group-manager -d %{name}
-sgml-register-catalog -r %{_datadir}/%{name}/%{name}.sgml
+if [ "$1" = "0" -a -x %{regcat} ]; then
+ for c in %{my_all_cat}; do
+ %{regcat} -r %{sgml_dir}/CATALOG.$c \
+ >/dev/null 2>&1 || true
+ done
+fi
+# remove entries only on removal of file
+if [ "0" = "$1" -a ! -f %{xml_sysconf_dir}/%{FOR_ROOT_CAT} ] ; then
+ /usr/bin/edit-xml-catalog --group --catalog /etc/xml/suse-catalog.xml \
+ --del %{name}-%{version}
+fi
%files
%defattr(-, root, root)
-%{_datadir}/%{name}
+%config %{sgml_config_dir}/CATALOG.*
+%doc README.SUSE
+%{sgml_dir}/CATALOG.*
+%{sgml_docbook_dtd_dir}/4.1
+%{sgml_docbook_dtd_dir}/4.2
+%{sgml_docbook_dtd_dir}/4.3
+%{sgml_docbook_dtd_dir}/4.4
+%{sgml_docbook_dtd_dir}/4.5
+#
+%{sgml_docbook_dtd_dir}/4.1xml
+%{sgml_docbook_dtd_dir}/4.2xml
+%{sgml_docbook_dtd_dir}/4.3xml
+%{sgml_docbook_dtd_dir}/4.4xml
+%{sgml_docbook_dtd_dir}/4.5xml
+#
+%{xml_docbook_dtd_dir}/4.1
+%{xml_docbook_dtd_dir}/4.2
+%{xml_docbook_dtd_dir}/4.3
+%{xml_docbook_dtd_dir}/4.4
+%{xml_docbook_dtd_dir}/4.5
+#
+%{xml_docbook_rng_dir}/4.2
+%{xml_docbook_rng_dir}/4.3
+%{xml_docbook_rng_dir}/4.4
+%{xml_docbook_rng_dir}/4.5
+#
+%{xml_docbook_xsd_dir}/4.2
+%{xml_docbook_xsd_dir}/4.3
+%{xml_docbook_xsd_dir}/4.4
+%{xml_docbook_xsd_dir}/4.5
+#
+%config %{xml_sysconf_dir}/docbook_41.xml
+%config %{xml_sysconf_dir}/%{FOR_ROOT_CAT}
+%dir %{sgml_dir}/docbook/dtd
+%{sgml_dir}/docbook_4.1
+%dir %{xml_docbook_dir}/schema
+%dir %{xml_docbook_dtd_dir}
+%dir %{xml_docbook_rng_dir}
+%dir %{xml_docbook_xsd_dir}
%changelog