1
0
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:
Daniel Veillard
2003-09-13 00:08:39 +00:00
parent fb4ce1d2f2
commit 8d7c6499f7
5 changed files with 10 additions and 60 deletions

View File

@@ -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

View 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"
@@ -88,10 +88,6 @@ Adjust the maximum depth of the template stack before libxslt concludes it is in
\fB--html\fR
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.

View 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>
@@ -208,21 +207,6 @@
</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>

View 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.

View 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
@@ -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) {