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:
4
valid.c
4
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;
|
||||
|
Reference in New Issue
Block a user