Timothy Pearson 12 years ago
commit 47028b243e

@ -975,9 +975,13 @@ xsldbgLoadXmlData(void)
#endif #endif
#ifdef LIBXML_DOCB_ENABLED #ifdef LIBXML_DOCB_ENABLED
if (optionsGetIntOption(OPTIONS_DOCBOOK)) if (optionsGetIntOption(OPTIONS_DOCBOOK))
# if LIBXML_VERSION >= 20600
doc = xmlParseFile((char *) optionsGetStringOption(OPTIONS_DATA_FILE_NAME));
# else
doc = docbParseFile((char *) doc = docbParseFile((char *)
optionsGetStringOption(OPTIONS_DATA_FILE_NAME), optionsGetStringOption(OPTIONS_DATA_FILE_NAME),
NULL); NULL);
# endif
else else
#endif #endif
@ -1027,7 +1031,11 @@ xsldbgLoadXmlTemporary(const xmlChar * path)
#endif #endif
#ifdef LIBXML_DOCB_ENABLED #ifdef LIBXML_DOCB_ENABLED
if (optionsGetIntOption(OPTIONS_DOCBOOK)) if (optionsGetIntOption(OPTIONS_DOCBOOK))
# if LIBXML_VERSION >= 20600
doc = xmlParseFile((char *) path);
# else
doc = docbParseFile((char *) path, NULL); doc = docbParseFile((char *) path, NULL);
# endif
else else
#endif #endif
doc = xmlSAXParseFile(&mySAXhdlr, (char *) path, 0); doc = xmlSAXParseFile(&mySAXhdlr, (char *) path, 0);

Loading…
Cancel
Save