--- libxslt-1.1.24\libxslt\xslt.c	2008-05-13 16:36:26.000000000 +0100
+++ alt_libxslt-1.1.24\libxslt\xslt.c	2008-08-09 22:30:33.015625000 +0100
@@ -6883,6 +6883,15 @@
 			 doc->URL);
 #endif
 
+                   /*
+                   * The problem is with xmlUnlinkNode and xmlAddChild below
+                   * For the 80% solution, they should be followed by:
+                   *     xmlReconciliateNs(fake, subtree);
+                   * For the 90% solution, replace xmlUnlinkNode with:
+                   *     subtree = xmlDocCopyNode(fake, subtree, 1);
+                   * (though not sure how that impacts on the dict sharing)
+                   * For the Right Thing... use a smarter node copy function?
+                   */
 		    xmlUnlinkNode(subtree);
 		    xmlAddChild((xmlNodePtr) fake, subtree);
 		    ret = xsltParseStylesheetDoc(fake);
