summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2002-06-01 13:20:27 +0000
committerMikael Hallendal <hallski@src.gnome.org>2002-06-01 13:20:27 +0000
commit3c6dd92125474a1779df0d248373dee6b28ee8b1 (patch)
treed697be9eebe347700e4cbaa4dbea51276617b0ff /src
parent8c1f18175bd1607f84420f8fe9441e2ed2721c85 (diff)
downloadyelp-3c6dd92125474a1779df0d248373dee6b28ee8b1.tar.gz
perform XInclude processing on Docbook/XML documents we load.
2002-06-01 James Henstridge <james@daa.com.au> * src/yelp-db2html.c (main): perform XInclude processing on Docbook/XML documents we load.
Diffstat (limited to 'src')
-rw-r--r--src/yelp-db2html.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yelp-db2html.c b/src/yelp-db2html.c
index b3e9fd18..ab364ceb 100644
--- a/src/yelp-db2html.c
+++ b/src/yelp-db2html.c
@@ -34,6 +34,9 @@
#include <libxml/HTMLtree.h>
#include <libxml/DOCBparser.h>
#include <libxml/catalog.h>
+#ifdef LIBXML_XINCLUDE_ENABLED
+# include <libxml/xinclude.h>
+#endif
#include <libxslt/xsltconfig.h>
#include <libxslt/xslt.h>
#include <libxslt/xsltInternals.h>
@@ -84,6 +87,9 @@ main (gint argc, gchar **argv)
db_doc = docbParseFile (docpath, "UTF-8");
} else {
db_doc = xmlParseFile (docpath);
+#ifdef LIBXML_XINCLUDE_ENABLED
+ xmlXIncludeProcess (db_doc);
+#endif
}
if (db_doc == NULL) {