diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2008-08-26 07:26:55 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2008-08-26 07:26:55 +0000 |
commit | 54bd29b79bf2e9375aa369361020814e5d6a0f3a (patch) | |
tree | e7aac3602133d1585dde356dab1fe2c862d01dc3 /xmllint.c | |
parent | aa6de47ebf0d4f96ed83e06c79a870a4e9b5dd0e (diff) | |
download | android_external_libxml2-54bd29b79bf2e9375aa369361020814e5d6a0f3a.tar.gz android_external_libxml2-54bd29b79bf2e9375aa369361020814e5d6a0f3a.tar.bz2 android_external_libxml2-54bd29b79bf2e9375aa369361020814e5d6a0f3a.zip |
patch based on Wieant Nielander contribution to add the option of not
* include/libxml/parser.h xinclude.c xmllint.c: patch based on
Wieant Nielander contribution to add the option of not doing
URI base fixup in XInclude
Daniel
svn path=/trunk/; revision=3775
Diffstat (limited to 'xmllint.c')
-rw-r--r-- | xmllint.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2891,6 +2891,7 @@ static void usage(const char *name) { #ifdef LIBXML_XINCLUDE_ENABLED printf("\t--xinclude : do XInclude processing\n"); printf("\t--noxincludenode : same but do not generate XInclude nodes\n"); + printf("\t--nofixup-base-uris : do not fixup xml:base uris\n"); #endif printf("\t--loaddtd : fetch external DTD\n"); printf("\t--dtdattr : loaddtd + populate the tree with inherited attributes \n"); @@ -3093,6 +3094,12 @@ main(int argc, char **argv) { options |= XML_PARSE_XINCLUDE; options |= XML_PARSE_NOXINCNODE; } + else if ((!strcmp(argv[i], "-nofixup-base-uris")) || + (!strcmp(argv[i], "--nofixup-base-uris"))) { + xinclude++; + options |= XML_PARSE_XINCLUDE; + options |= XML_PARSE_NOBASEFIX; + } #endif #ifdef LIBXML_OUTPUT_ENABLED #ifdef HAVE_ZLIB_H |