oops I was missing the xml:base fixup too this adds xml:base attributes to
* xinclude.c: oops I was missing the xml:base fixup too
* result/XInclude/*.xml: this adds xml:base attributes to most
results of the tests
Daniel
diff --git a/xinclude.c b/xinclude.c
index 63cb5e9..e2c4af0 100644
--- a/xinclude.c
+++ b/xinclude.c
@@ -892,6 +892,20 @@
xmlXPathFreeContext(xptrctxt);
xmlFree(fragment);
}
+
+ /*
+ * Do the xml:base fixup if needed
+ */
+ if ((doc != NULL) && (URL != NULL) && (xmlStrchr(URL, (xmlChar) '/'))) {
+ xmlNodePtr node;
+
+ node = ctxt->repTab[nr];
+ while (node != NULL) {
+ if (node->type == XML_ELEMENT_NODE)
+ xmlNodeSetBase(node, URL);
+ node = node->next;
+ }
+ }
xmlFree(URL);
return(0);
}