Currently if we add the root element to the diagram and expand it, the grp element is rendered as having minOccurs=1 and maxOccurs=1 - these are the default values and they are taken from the definition of the group. But this is incorrect because the values should be taken from the tag with the ref attribute. Furthermore it is illegal to have these attributes at the group definition.
Corrections are made in Diagram.AddCompositors() in the same way that the problem is already avoided in Diagram.AddElement()
Let's consider the schema:
Currently if we add the
root
element to the diagram and expand it, thegrp
element is rendered as havingminOccurs=1
andmaxOccurs=1
- these are the default values and they are taken from the definition of the group. But this is incorrect because the values should be taken from the tag with theref
attribute. Furthermore it is illegal to have these attributes at the group definition.Corrections are made in
Diagram.AddCompositors()
in the same way that the problem is already avoided inDiagram.AddElement()