Commit cccd4a05 authored by Daniel Veillard's avatar Daniel Veillard

allow fallback to URI lookup when SYSTEM fails, should close #134092

* xmlcatalog.c: allow fallback to URI lookup when SYSTEM fails,
  should close #134092
Daniel
parent 1a8741c8
Thu Mar 4 15:00:45 CET 2004 Daniel Veillard <daniel@veillard.com>
* xmlcatalog.c: allow fallback to URI lookup when SYSTEM fails,
should close #134092
Thu Mar 4 14:39:38 CET 2004 Daniel Veillard <daniel@veillard.com>
* Makefile.am tree.c xmlsave.c include/libxml/xmlsave.h: commiting
......
......@@ -547,7 +547,14 @@ int main(int argc, char **argv) {
ans = xmlCatalogResolveSystem((const xmlChar *) argv[i]);
if (ans == NULL) {
printf("No entry for SYSTEM %s\n", argv[i]);
exit_value = 4;
ans = xmlCatalogResolveURI ((const xmlChar *) argv[i]);
if (ans == NULL) {
printf ("No entry for URI %s\n", argv[i]);
exit_value = 4;
} else {
printf("%s\n", (char *) ans);
xmlFree (ans);
}
} else {
printf("%s\n", (char *) ans);
xmlFree(ans);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment