attempt to cope with ID/IDREF(S) declared both in the DTD and in the

* valid.c xmlschemastypes.c: attempt to cope with ID/IDREF(S)
  declared both in the DTD and in the Schemas <grin/>
* relaxng.c: more debug, added a big optimization for <mixed>
* test/relaxng/testsuite.xml: augmented the testsuite
* test/relaxng/ result/relaxng: added the RelaxNG spec and a
  DocBook example to the regression tests
Daniel
diff --git a/valid.c b/valid.c
index 491e5d4..b3b52c9 100644
--- a/valid.c
+++ b/valid.c
@@ -2287,6 +2287,8 @@
 	xmlFreeID(ret);
 	return(NULL);
     }
+    if (attr != NULL)
+	attr->atype = XML_ATTRIBUTE_ID;
     return(ret);
 }