+Wed Jul 23 21:57:39 IST 2003 Daniel Veillard <daniel@veillard.com>
+
+ * xsltproc/xsltproc.c: applying a patch based on #117377
+ for --path option.
+
Mon Jul 21 20:28:11 IST 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/transform.c: allow strip-space to support full namespaces
warningSAXFunc warning = NULL;
int i;
+ const char *lastsegment = URL;
+ const char *iter = URL;
+
+ while (*iter != 0) {
+ if (*iter == '/')
+ lastsegment = iter + 1;
+ iter++;
+ }
if ((ctxt != NULL) && (ctxt->sax != NULL)) {
warning = ctxt->sax->warning;
newURL = xmlStrdup((const xmlChar *) paths[i]);
newURL = xmlStrcat(newURL, (const xmlChar *) "/");
- newURL = xmlStrcat(newURL, (const xmlChar *) URL);
+ newURL = xmlStrcat(newURL, (const xmlChar *) lastsegment);
if (newURL != NULL) {
ret = defaultEntityLoader((const char *)newURL, ID, ctxt);
xmlFree(newURL);