@ -82,9 +82,6 @@
# include <libxml/xmlerror.h>
# include <libxml/xmlerror.h>
# include <libxml/HTMLtree.h>
# include <libxml/HTMLtree.h>
# include <libxml/xmlIO.h>
# include <libxml/xmlIO.h>
# ifdef LIBXML_DOCB_ENABLED
# include <libxml/DOCBparser.h>
# endif
# ifdef LIBXML_XINCLUDE_ENABLED
# ifdef LIBXML_XINCLUDE_ENABLED
# include <libxml/xinclude.h>
# include <libxml/xinclude.h>
# endif
# endif
@ -975,22 +972,11 @@ 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 ) ) ;
doc = xmlParseFile ( ( char * ) optionsGetStringOption ( OPTIONS_DATA_FILE_NAME ) ) ;
# else
doc = docbParseFile ( ( char * )
optionsGetStringOption ( OPTIONS_DATA_FILE_NAME ) ,
NULL ) ;
# endif
else
else
# endif
# endif
# if LIBXML_VERSION >= 20600
doc = xmlSAXParseFile ( & mySAXHandler ,
doc = xmlSAXParseFile ( & mySAXHandler ,
( char * ) optionsGetStringOption ( OPTIONS_DATA_FILE_NAME ) , 0 ) ;
( char * ) optionsGetStringOption ( OPTIONS_DATA_FILE_NAME ) , 0 ) ;
# else
doc = xmlParseFile ( ( char * ) optionsGetStringOption ( OPTIONS_DATA_FILE_NAME ) ) ;
# endif
if ( doc = = NULL ) {
if ( doc = = NULL ) {
xsldbgGenericErrorFunc ( i18n ( " Error: Unable to parse file %1. \n " ) . arg ( xsldbgUrl ( optionsGetStringOption ( OPTIONS_DATA_FILE_NAME ) ) ) ) ;
xsldbgGenericErrorFunc ( i18n ( " Error: Unable to parse file %1. \n " ) . arg ( xsldbgUrl ( optionsGetStringOption ( OPTIONS_DATA_FILE_NAME ) ) ) ) ;
if ( ! optionsGetIntOption ( OPTIONS_SHELL ) ) {
if ( ! optionsGetIntOption ( OPTIONS_SHELL ) ) {
@ -1031,11 +1017,7 @@ 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 ) ;
doc = xmlParseFile ( ( char * ) path ) ;
# else
doc = docbParseFile ( ( char * ) path , NULL ) ;
# endif
else
else
# endif
# endif
doc = xmlSAXParseFile ( & mySAXhdlr , ( char * ) path , 0 ) ;
doc = xmlSAXParseFile ( & mySAXhdlr , ( char * ) path , 0 ) ;
@ -1100,7 +1082,7 @@ handler_routine(DWORD dwCtrlType)
# endif
# endif
# if LIBXML_VERSION >= 200600 0
# if 0
/* libxml/ handlers */
/* libxml/ handlers */
void xsldbgStructErrorHandler ( void * userData , xmlErrorPtr error )
void xsldbgStructErrorHandler ( void * userData , xmlErrorPtr error )
{
{
@ -1230,13 +1212,8 @@ xsldbgInit()
/* set up the parser */
/* set up the parser */
xmlInitParser ( ) ;
xmlInitParser ( ) ;
#if 0
#if 0
# if LIBXML_VERSION >= 20600
xmlSetGenericErrorFunc ( NULL , NULL ) ;
xmlSetGenericErrorFunc ( NULL , NULL ) ;
xmlSetStructuredErrorFunc ( NULL , ( xmlStructuredErrorFunc ) xsldbgStructErrorHandler ) ;
xmlSetStructuredErrorFunc ( NULL , ( xmlStructuredErrorFunc ) xsldbgStructErrorHandler ) ;
# else
xmlSetGenericErrorFunc ( 0 , xsldbgGenericErrorFunc ) ;
xsltSetGenericErrorFunc ( 0 , xsldbgGenericErrorFunc ) ;
# endif
# else
# else
xmlSetGenericErrorFunc ( 0 , xsldbgGenericErrorFunc ) ;
xmlSetGenericErrorFunc ( 0 , xsldbgGenericErrorFunc ) ;
xsltSetGenericErrorFunc ( 0 , xsldbgGenericErrorFunc ) ;
xsltSetGenericErrorFunc ( 0 , xsldbgGenericErrorFunc ) ;