patch from Mark Vakoc to build C14N if DocBook and HTML support is not
* c14n.c: patch from Mark Vakoc to build C14N if DocBook and
HTML support is not configured in.
Daniel
diff --git a/ChangeLog b/ChangeLog
index 04c3f1e..bd34971 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Mar 21 09:03:59 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+ * c14n.c: patch from Mark Vakoc to build C14N if DocBook and
+ HTML support is not configured in.
+
Wed Mar 20 22:42:42 CET 2002 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c error.c parser.c parserInternals.c tree.c xmlIO.c
diff --git a/c14n.c b/c14n.c
index 83eee10..9ff189e 100644
--- a/c14n.c
+++ b/c14n.c
@@ -1046,8 +1046,12 @@
break;
case XML_DOCUMENT_NODE:
case XML_DOCUMENT_FRAG_NODE: /* should be processed as document? */
+#ifdef LIBXML_DOCB_ENABLED
case XML_DOCB_DOCUMENT_NODE: /* should be processed as document? */
+#endif
+#ifdef LIBXML_HTML_ENABLED
case XML_HTML_DOCUMENT_NODE: /* should be processed as document? */
+#endif
if (cur->children != NULL) {
ctx->pos = XMLC14N_BEFORE_DOCUMENT_ELEMENT;
ctx->parent_is_doc = 1;
@@ -1078,8 +1082,10 @@
case XML_ELEMENT_DECL:
case XML_ATTRIBUTE_DECL:
case XML_ENTITY_DECL:
+#ifdef LIBXML_XINCLUDE_ENABLED
case XML_XINCLUDE_START:
case XML_XINCLUDE_END:
+#endif
/*
* should be ignored according to "W3C Canonical XML"
*/