removing the DocBook SGML support Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Sat, 13 Sep 2003 00:08:39 +0000 (00:08 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Sat, 13 Sep 2003 00:08:39 +0000 (00:08 +0000)
* xsltproc/xsltproc.c doc/xsltproc.1 doc/xsltproc.xml
  libxslt/xsltutils.h: removing the DocBook SGML support
Daniel

ChangeLog
doc/xsltproc.1
doc/xsltproc.xml
libxslt/xsltutils.h
xsltproc/xsltproc.c

index 1830a36..3624111 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Sep 13 02:04:13 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+       * xsltproc/xsltproc.c doc/xsltproc.1 doc/xsltproc.xml
+         libxslt/xsltutils.h: removing the DocBook SGML support
+
 Fri Sep 12 13:52:07 CEST 2003 Daniel Veillard <daniel@veillard.com>
 
        * configure.in: preparing release libxslt-1.0.33
index d5700fe..5042c2b 100644 (file)
@@ -25,11 +25,11 @@ xsltproc \- command line xslt processor
 .nf
 \fBxsltproc\fR [\fB-V\fR | \fB-v\fR | \fB-o \fIfile\fR\fR | \fB--timing\fR | \fB--repeat\fR
          | \fB--debug\fR | \fB--novalid\fR | \fB--noout\fR | \fB--maxdepth \fIval\fR\fR
-         | \fB--html\fR | \fB--docbook\fR | \fB--param \fIname\fR \fIvalue\fR\fR
-         | \fB--stringparam \fIname\fR \fIvalue\fR\fR | \fB--nonet\fR | \fB--catalogs\fR
-         | \fB--xinclude\fR | \fB--profile\fR | \fB--dumpextensions\fR | \fB--nowrite\fR
-         | \fB--nomkdir\fR | \fB--writesubtree\fR] [\fBstylesheet\fR] [\fIfile1\fR]
-         [\fIfile2\fR] [\fI....\fR]
+         | \fB--html\fR | \fB--param \fIname\fR \fIvalue\fR\fR | \fB--stringparam
+         \fIname\fR \fIvalue\fR\fR | \fB--nonet\fR | \fB--catalogs\fR | \fB--xinclude\fR
+         | \fB--profile\fR | \fB--dumpextensions\fR | \fB--nowrite\fR | \fB--nomkdir\fR
+         | \fB--writesubtree\fR] [\fBstylesheet\fR] [\fIfile1\fR] [\fIfile2\fR]
+         [\fI....\fR]
 .fi
 
 .SH "INTRODUCTION"
@@ -89,10 +89,6 @@ Adjust the maximum depth of the template stack before libxslt concludes it is in
 The input document is an HTML file.
 
 .TP
-\fB--docbook\fR
-The input document is DocBook SGML. Do not use the --docbook option of xsltproc to process XML DocBook documents, this option is only intended to provide some (limited) support of the SGML version of DocBook.
-
-.TP
 \fB--param\fR \fIname\fR \fIvalue\fR
 Pass a parameter of name \fIname\fR and value \fIvalue\fR to the stylesheet. You may pass multiple name/value pairs up to a maximum of 32. If the value being passed is a string rather than a node identifier, use \fB--stringparam\fR instead.
 
index a76733d..5d122b9 100644 (file)
@@ -44,7 +44,6 @@
        <arg>--noout</arg>
        <arg>--maxdepth <replaceable>val</replaceable></arg>
        <arg>--html</arg>
-       <arg>--docbook</arg>
        <arg>--param <replaceable>name</replaceable> <replaceable>value</replaceable></arg>
        <arg>--stringparam <replaceable>name</replaceable> <replaceable>value</replaceable></arg>
        <arg>--nonet</arg>
        </listitem>
       </varlistentry>
 
-    
-      <varlistentry>
-       <term>
-      <option>--docbook</option></term>
-       <listitem>
-         <simpara>The input document is DocBook
-      <acronym>SGML</acronym>.
-      Do not use the --docbook option of xsltproc to process XML DocBook
-      documents, this option is only intended to provide some (limited) support
-      of the SGML version of DocBook.
-    </simpara>
-       </listitem>
-      </varlistentry>
-
-    
       <varlistentry>
        <term>
       <option>--param</option> <replaceable>name</replaceable> <replaceable>value</replaceable></term>
index b15c03a..7ca6fc0 100644 (file)
@@ -66,16 +66,6 @@ extern "C" {
  *
  * Check that a node is a 'real' one: document, element, text or attribute.
  */
-#ifdef LIBXML_DOCB_ENABLED
-#define IS_XSLT_REAL_NODE(n)                                           \
-    (((n) != NULL) &&                                                  \
-     (((n)->type == XML_ELEMENT_NODE) ||                               \
-      ((n)->type == XML_TEXT_NODE) ||                                  \
-      ((n)->type == XML_ATTRIBUTE_NODE) ||                             \
-      ((n)->type == XML_DOCUMENT_NODE) ||                              \
-      ((n)->type == XML_HTML_DOCUMENT_NODE) ||                         \
-      ((n)->type == XML_DOCB_DOCUMENT_NODE)))
-#else
 #define IS_XSLT_REAL_NODE(n)                                           \
     (((n) != NULL) &&                                                  \
      (((n)->type == XML_ELEMENT_NODE) ||                               \
@@ -83,7 +73,6 @@ extern "C" {
       ((n)->type == XML_ATTRIBUTE_NODE) ||                             \
       ((n)->type == XML_DOCUMENT_NODE) ||                              \
       ((n)->type == XML_HTML_DOCUMENT_NODE)))
-#endif
 
 /*
  * Our own version of namespaced atributes lookup.
index 7e4e777..8bd9992 100644 (file)
@@ -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
@@ -381,11 +375,6 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
                    doc = htmlParseFile(filename, NULL);
                else
 #endif
-#ifdef LIBXML_DOCB_ENABLED
-               if (docbook)
-                   doc = docbParseFile(filename, NULL);
-               else
-#endif
                    doc = xmlParseFile(filename);
            }
        }
@@ -489,9 +478,6 @@ static void usage(const char *name) {
 #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");
     printf("\t       string values must be quoted like \"'string'\"\n or");
@@ -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"))) {
@@ -810,11 +791,6 @@ main(int argc, char **argv)
                 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) {
                 fprintf(stderr, "unable to parse %s\n", argv[i]);