1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

fixes a DTD regexp generation problem. Daniel

* valid.c: fixes a DTD regexp generation problem.
Daniel
This commit is contained in:
Daniel Veillard
2003-02-24 19:54:33 +00:00
parent 02111c1d56
commit f4be0180c3
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Feb 24 20:53:17 CET 2003 Daniel Veillard <daniel@veillard.com>
* valid.c: fixes a DTD regexp generation problem.
Mon Feb 24 20:12:57 CET 2003 Daniel Veillard <daniel@veillard.com> Mon Feb 24 20:12:57 CET 2003 Daniel Veillard <daniel@veillard.com>
* parser.c: fixes bug #105998 about false detection of * parser.c: fixes bug #105998 about false detection of

View File

@ -561,6 +561,10 @@ xmlValidBuildAContentModel(xmlElementContentPtr content,
*/ */
oldstate = ctxt->state; oldstate = ctxt->state;
ocur = content->ocur; ocur = content->ocur;
if (ocur != XML_ELEMENT_CONTENT_ONCE) {
ctxt->state = xmlAutomataNewEpsilon(ctxt->am, oldstate, NULL);
oldstate = ctxt->state;
}
do { do {
xmlValidBuildAContentModel(content->c1, ctxt, name); xmlValidBuildAContentModel(content->c1, ctxt, name);
content = content->c2; content = content->c2;