diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-03-21 08:05:23 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-03-21 08:05:23 +0000 |
commit | 1840ef0827005e5460791e5b49427b41359f4620 (patch) | |
tree | 4ebc6c2d4015a83283b7dc03fb830319fafae858 | |
parent | 561b7f883e93197f8e99b430e6fac3f21fbba830 (diff) | |
download | libxml2-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | c14n.c | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -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 @@ -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" */ |