You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Orchestra XSD version 1.1-RC2, we identified a problem with how repeating group references behave. According to the specification, a group reference should inherit the minimum (implMinOccurs) and maximum (implMaxOccurs) occurrences specified in the group definition:
Limits of the size of a particular instance of a repeating group may be overridden by setting implMinOccurs and implMaxOccurs attributes on the <groupRef> element.
However, the current version seems to always override the upper limit with the value set in the reference itself, contradicting the specification. The problem appears to be the default value defined in the implMaxOccurs attribute of groupRefType:
This behavior prevents users from defining the maximum occurrences (implMaxOccurs) only in the group definition. They must specify it in all references as well.
The text was updated successfully, but these errors were encountered:
It seems to me that the documented behavior, allowing the default to flow from the group definition rather than the ref, exists at a higher level than the XSD, in which case the default value should simply be removed from the implMaxOccurs attribute. @mkudukin do you concur?
@patricklucas I agree that there should be no default on the group reference level. The absence of information about the cardinality on the group reference level should cause the information from the group definition level to become valid. The attribute implMaxOccursis defined with the same default on the group definition level. It seems that it was forgotten to remove the default on the group reference level.
In Orchestra XSD version 1.1-RC2, we identified a problem with how repeating group references behave. According to the specification, a group reference should inherit the minimum (
implMinOccurs
) and maximum (implMaxOccurs
) occurrences specified in the group definition:However, the current version seems to always override the upper limit with the value set in the reference itself, contradicting the specification. The problem appears to be the default value defined in the
implMaxOccurs
attribute ofgroupRefType
:This behavior prevents users from defining the maximum occurrences (
implMaxOccurs
) only in the group definition. They must specify it in all references as well.The text was updated successfully, but these errors were encountered: