beremiz

57b4ac796dcb
Parents 496029f768d9
Children 1447424a7029
fix reducing groups with ordered elements
--- a/xmlclass/xsdschema.py Wed May 03 11:03:44 2017 +0300
+++ b/xmlclass/xsdschema.py Thu May 18 18:00:56 2017 +0300
@@ -860,7 +860,7 @@
if element["type"] == CHOICE:
group["choices"] = element["choices"]
else:
- group.update({"elements": element["elements"], "order": group["order"]})
+ group.update({"elements": element["elements"], "order": element["order"]})
group.update(attributes)
return group