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

patch from Mark Vadoc to allow compiling against libxml2 without XPointer

* libxslt/function.c: patch from Mark Vadoc to allow compiling
  against libxml2 without XPointer supoort.
Daniel
parent 67d43988843f
No related branches found
No related tags found
No related merge requests found
Mon Sep 1 23:02:12 CEST 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/function.c: patch from Mark Vadoc to allow compiling
against libxml2 without XPointer supoort.
Fri Aug 29 12:28:12 CEST 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/transform.c: fixing the bug #120971 on cdata-section-elements
......
......@@ -106,8 +106,8 @@
xmlChar *fragment;
xsltDocumentPtr xsltdoc;
xmlDocPtr doc;
xmlXPathContextPtr xptrctxt;
xmlXPathObjectPtr object;
xmlXPathContextPtr xptrctxt = NULL;
xmlXPathObjectPtr object = NULL;
tctxt = xsltXPathGetTransformContext(ctxt);
if (tctxt == NULL) {
......@@ -161,7 +161,7 @@
}
/* use XPointer of HTML location for fragment ID */
#ifdef LIBXML_XPTR_ENABLED
xptrctxt = xmlXPtrNewContext(doc, NULL, NULL);
if (xptrctxt == NULL) {
xsltTransformError(xsltXPathGetTransformContext(ctxt), NULL, NULL,
......@@ -170,4 +170,5 @@
}
object = xmlXPtrEval(fragment, xptrctxt);
#endif
xmlFree(fragment);
......@@ -173,4 +174,5 @@
xmlFree(fragment);
if (xptrctxt != NULL)
xmlXPathFreeContext(xptrctxt);
if (object == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment