1
0
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:
Daniel Veillard
2009-08-26 18:35:29 +02:00
parent 4013e83e84
commit fd78077281

View File

@@ -3100,7 +3100,11 @@ xmlRelaxNGCompile(xmlRelaxNGParserCtxtPtr ctxt, xmlRelaxNGDefinePtr def)
case XML_RELAXNG_OPTIONAL:{
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);
break;
}