mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
558452 RNG compilation of optional multiple child
* relaxng.c: don't assume there is a single define under a optional
This commit is contained in:
@@ -3100,7 +3100,11 @@ xmlRelaxNGCompile(xmlRelaxNGParserCtxtPtr ctxt, xmlRelaxNGDefinePtr def)
|
|||||||
case XML_RELAXNG_OPTIONAL:{
|
case XML_RELAXNG_OPTIONAL:{
|
||||||
xmlAutomataStatePtr oldstate = ctxt->state;
|
xmlAutomataStatePtr oldstate = ctxt->state;
|
||||||
|
|
||||||
xmlRelaxNGCompile(ctxt, def->content);
|
list = def->content;
|
||||||
|
while (list != NULL) {
|
||||||
|
xmlRelaxNGCompile(ctxt, list);
|
||||||
|
list = list->next;
|
||||||
|
}
|
||||||
xmlAutomataNewEpsilon(ctxt->am, oldstate, ctxt->state);
|
xmlAutomataNewEpsilon(ctxt->am, oldstate, ctxt->state);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user