Commit ffd5f5c7 authored by Ralf Habacker's avatar Ralf Habacker

Use the global xml catalog to replace external docbook.xsl uri

It does not work with Mingw builds of libxml2 2.9.8 and is now obsolete
with the support of the global xml catalog.

parent 3059fa84
......@@ -164,11 +164,6 @@ void DocbookGeneratorJob::run()
// use public xml catalogs
// replace external uri for docbook.xsl
QString docBookUrl = QLatin1String("");
xmlChar *localDocBookURI = xmlCatalogResolveURI((const xmlChar *)docBookUrl.toLocal8Bit().constData());
replaceURLList[docBookUrl] = QString(QLatin1String((const char *)localDocBookURI));
QString xsltFile = DocbookGenerator::customXslFile();
if (!defaultEntityLoader) {
......@@ -176,6 +171,7 @@ void DocbookGeneratorJob::run()
QFileInfo xsltFilePath(xsltFile);
// Note: This would not be required if the dtd would be registered in global xml catalog
replaceURLList[QLatin1String("")] = QString(QLatin1String("file:///%1/simple4125/sdocbook.dtd")).arg(xsltFilePath.absolutePath());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment