- tree.c: trying to fix #53574, not completely complete,
  I would like xmllint --copy --debug test/ent1 and
  xmllint --debug test/ent1 to show the same result.
- xpath.c: fix a bug when trying to sort namespace nodes
Daniel
diff --git a/xpath.c b/xpath.c
index 439ca3d..334d770 100644
--- a/xpath.c
+++ b/xpath.c
@@ -1098,6 +1098,9 @@
      */
     if (node1 == node2)
 	return(0);
+    if ((node1->type == XML_NAMESPACE_DECL) ||
+        (node2->type == XML_NAMESPACE_DECL))
+	return(1);
     if (node1 == node2->prev)
 	return(1);
     if (node1 == node2->next)