fixes a DTD regexp generation problem. Daniel

* valid.c: fixes a DTD regexp generation problem.
Daniel
diff --git a/valid.c b/valid.c
index 7ed0e8a..9628dff 100644
--- a/valid.c
+++ b/valid.c
@@ -561,6 +561,10 @@
 	     */
 	    oldstate = ctxt->state;
 	    ocur = content->ocur;
+	    if (ocur != XML_ELEMENT_CONTENT_ONCE) {
+		ctxt->state = xmlAutomataNewEpsilon(ctxt->am, oldstate, NULL);
+		oldstate = ctxt->state;
+	    }
 	    do {
 		xmlValidBuildAContentModel(content->c1, ctxt, name);
 		content = content->c2;