fixed a node dump crash on attributes fixed an URI test bug and get better

* tree.c: fixed a node dump crash on attributes
* test/xsdtest/xsdtest.xml test/xsdtest/xsdtest.xsl: fixed
  an URI test bug and get better output.
Daniel
diff --git a/tree.c b/tree.c
index 1a03a5a..f6b928c 100644
--- a/tree.c
+++ b/tree.c
@@ -6993,6 +6993,10 @@
         xmlOutputBufferWriteString(buf, "]]>");
 	return;
     }
+    if (cur->type == XML_ATTRIBUTE_NODE) {
+	xmlAttrDumpOutput(buf,doc,cur,encoding);
+	return;
+    }
     if (cur->type == XML_NAMESPACE_DECL) {
 	xmlNsDumpOutput(buf, (xmlNsPtr) cur);
 	return;