summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-21 08:05:23 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-21 08:05:23 +0000
commit1840ef0827005e5460791e5b49427b41359f4620 (patch)
tree4ebc6c2d4015a83283b7dc03fb830319fafae858
parent561b7f883e93197f8e99b430e6fac3f21fbba830 (diff)
downloadlibxml2-1840ef0827005e5460791e5b49427b41359f4620.tar.gz
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
-rw-r--r--ChangeLog5
-rw-r--r--c14n.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 04c3f1e0..bd34971b 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 83eee102..9ff189e1 100644
--- a/c14n.c
+++ b/c14n.c
@@ -1046,8 +1046,12 @@ xmlC14NProcessNode(xmlC14NCtxPtr ctx, xmlNodePtr cur)
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 @@ xmlC14NProcessNode(xmlC14NCtxPtr ctx, xmlNodePtr cur)
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"
*/