added documentation about Catalog support, misses an API description
* doc/catalog.html doc/xml.html: added documentation about
Catalog support, misses an API description
* doc/html/*: reextracted the API pages
Daniel
diff --git a/catalog.c b/catalog.c
index fba077b..3ec98f8 100644
--- a/catalog.c
+++ b/catalog.c
@@ -2182,6 +2182,13 @@
xmlCatalogAdd(const xmlChar *type, const xmlChar *orig, const xmlChar *replace) {
int res = -1;
+ if ((xmlDefaultXMLCatalogList == NULL) &&
+ (xmlStrEqual(type, BAD_CAST "catalog"))) {
+ xmlDefaultXMLCatalogList = xmlNewCatalogEntry(XML_CATA_CATALOG, NULL,
+ orig, xmlCatalogDefaultPrefer);
+ return(0);
+ }
+
if (!xmlCatalogInitialized)
xmlInitializeCatalog();