Fix lost namespace when copying node
* tree.c: reconcile namespace if not found
diff --git a/tree.c b/tree.c
index 3b66f97..6872209 100644
--- a/tree.c
+++ b/tree.c
@@ -4188,6 +4188,8 @@
 
 		while (root->parent != NULL) root = root->parent;
 		ret->ns = xmlNewNs(root, ns->href, ns->prefix);
+		} else {
+			ret->ns = xmlNewReconciliedNs(doc, ret, node->ns);
 	    }
 	} else {
 	    /*