fixed a bug in namespace lookup exhibited by the recent namespace tests in
authorDaniel Veillard <veillard@src.gnome.org>
Mon, 11 Oct 2004 23:56:27 +0000 (23:56 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Mon, 11 Oct 2004 23:56:27 +0000 (23:56 +0000)
* libxslt/namespaces.c: fixed a bug in namespace lookup exhibited
  by the recent namespace tests in libxml2
Daniel

ChangeLog
libxslt/namespaces.c
libxslt/xsltwin32config.h

index ffa0205..b1ed2e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Oct 12 03:54:44 CEST 2004 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/namespaces.c: fixed a bug in namespace lookup exhibited
+         by the recent namespace tests in libxml2
+
 Thu Oct  7 16:15:15 CEST 2004 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/transform.c: fixed a problem of tree structure raised
index d54edf7..3f55b96 100644 (file)
@@ -437,6 +437,9 @@ xsltGetNamespace(xsltTransformContextPtr ctxt, xmlNodePtr cur, xmlNsPtr ns,
         * do a standard namespace search for ns in the output doc
         */
         ret = xmlSearchNs(out->doc, out, ns->prefix);
+       if ((ret != NULL) && (!xmlStrEqual(ret->href, URI)))
+           ret = NULL;
+
        /*
         * if the search fails and it's not for the default prefix
         * do a search by href
index c468a9d..b7105da 100644 (file)
@@ -44,7 +44,7 @@ extern "C" {
  *
  * extra version information, used to show a CVS compilation
  */
-#define LIBXML_VERSION_EXTRA "-CVS954"
+#define LIBXML_VERSION_EXTRA "-CVS956"
 
 /**
  * WITH_XSLT_DEBUG: