Skip to content
Snippets Groups Projects
Commit 082e081748d5 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fixing the Document element precompilation to avoid the problem raised in

* libxslt/preproc.c: fixing the Document element precompilation
  to avoid the problem raised in #125614
Daniel
parent 33b9ae76d994
No related branches found
No related tags found
No related merge requests found
Tue Nov 4 14:04:58 CET 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/preproc.c: fixing the Document element precompilation
to avoid the problem raised in #125614
Tue Nov 4 01:08:17 PST 2003 William Brack <wbrack@mmm.com.hk>
* tests/multiple/out/letter*.orig: updated to reflect change
......
......@@ -204,7 +204,6 @@
xsltTransformFunction function ATTRIBUTE_UNUSED) {
xsltStylePreCompPtr comp;
xmlChar *filename = NULL;
xmlChar *base = NULL;
xmlChar *URL = NULL;
comp = xsltNewStylePreComp(style, XSLT_FUNC_DOCUMENT);
......@@ -253,21 +252,9 @@
}
if (filename != NULL) {
/*
* Compute output URL
*/
base = xmlNodeGetBase(inst->doc, inst);
URL = xmlBuildURI(filename, base);
if (URL == NULL) {
xsltTransformError(NULL, style, inst,
"xsltDocumentComp: URL computation failed %s\n", filename);
if (style != NULL) style->warnings++;
comp->filename = xmlStrdup(filename);
} else {
comp->filename = URL;
}
comp->filename = filename;
} else {
comp->filename = NULL;
}
error:
......@@ -269,13 +256,8 @@
} else {
comp->filename = NULL;
}
error:
if (base != NULL)
xmlFree(base);
if (filename != NULL)
xmlFree(filename);
return ((xsltElemPreCompPtr) comp);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment