mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-07 10:42:55 +03:00
removing the DocBook SGML support Daniel
* xsltproc/xsltproc.c doc/xsltproc.1 doc/xsltproc.xml libxslt/xsltutils.h: removing the DocBook SGML support Daniel
This commit is contained in:
@@ -34,9 +34,6 @@
|
||||
#include <libxml/debugXML.h>
|
||||
#include <libxml/HTMLtree.h>
|
||||
#include <libxml/xmlIO.h>
|
||||
#ifdef LIBXML_DOCB_ENABLED
|
||||
#include <libxml/DOCBparser.h>
|
||||
#endif
|
||||
#ifdef LIBXML_XINCLUDE_ENABLED
|
||||
#include <libxml/xinclude.h>
|
||||
#endif
|
||||
@@ -94,9 +91,6 @@ static int timing = 0;
|
||||
static int dumpextensions = 0;
|
||||
static int novalid = 0;
|
||||
static int noout = 0;
|
||||
#ifdef LIBXML_DOCB_ENABLED
|
||||
static int docbook = 0;
|
||||
#endif
|
||||
#ifdef LIBXML_HTML_ENABLED
|
||||
static int html = 0;
|
||||
#endif
|
||||
@@ -380,11 +374,6 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
|
||||
if (html)
|
||||
doc = htmlParseFile(filename, NULL);
|
||||
else
|
||||
#endif
|
||||
#ifdef LIBXML_DOCB_ENABLED
|
||||
if (docbook)
|
||||
doc = docbParseFile(filename, NULL);
|
||||
else
|
||||
#endif
|
||||
doc = xmlParseFile(filename);
|
||||
}
|
||||
@@ -488,9 +477,6 @@ static void usage(const char *name) {
|
||||
printf("\t--maxdepth val : increase the maximum depth\n");
|
||||
#ifdef LIBXML_HTML_ENABLED
|
||||
printf("\t--html: the input document is(are) an HTML file(s)\n");
|
||||
#endif
|
||||
#ifdef LIBXML_DOCB_ENABLED
|
||||
printf("\t--docbook: the input document is SGML docbook\n");
|
||||
#endif
|
||||
printf("\t--param name value : pass a (parameter,value) pair\n");
|
||||
printf("\t value is an UTF8 XPath expression.\n");
|
||||
@@ -586,11 +572,6 @@ main(int argc, char **argv)
|
||||
} else if ((!strcmp(argv[i], "-noout")) ||
|
||||
(!strcmp(argv[i], "--noout"))) {
|
||||
noout++;
|
||||
#ifdef LIBXML_DOCB_ENABLED
|
||||
} else if ((!strcmp(argv[i], "-docbook")) ||
|
||||
(!strcmp(argv[i], "--docbook"))) {
|
||||
docbook++;
|
||||
#endif
|
||||
#ifdef LIBXML_HTML_ENABLED
|
||||
} else if ((!strcmp(argv[i], "-html")) ||
|
||||
(!strcmp(argv[i], "--html"))) {
|
||||
@@ -809,11 +790,6 @@ main(int argc, char **argv)
|
||||
if (html)
|
||||
doc = htmlParseFile(argv[i], NULL);
|
||||
else
|
||||
#endif
|
||||
#ifdef LIBXML_DOCB_ENABLED
|
||||
if (docbook)
|
||||
doc = docbParseFile(argv[i], NULL);
|
||||
else
|
||||
#endif
|
||||
doc = xmlParseFile(argv[i]);
|
||||
if (doc == NULL) {
|
||||
|
Reference in New Issue
Block a user