From f4be0180c3f1318d7dbb90acf55dc5b30cfffc54 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 24 Feb 2003 19:54:33 +0000 Subject: [PATCH] fixes a DTD regexp generation problem. Daniel * valid.c: fixes a DTD regexp generation problem. Daniel --- ChangeLog | 4 ++++ valid.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 04243ff3..0f5d34c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Feb 24 20:53:17 CET 2003 Daniel Veillard + + * valid.c: fixes a DTD regexp generation problem. + Mon Feb 24 20:12:57 CET 2003 Daniel Veillard * parser.c: fixes bug #105998 about false detection of diff --git a/valid.c b/valid.c index 7ed0e8a4..9628dff8 100644 --- a/valid.c +++ b/valid.c @@ -561,6 +561,10 @@ xmlValidBuildAContentModel(xmlElementContentPtr content, */ 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;