NeTEx-CEN/NeTEx

Proposal to make sure the calls are a list of a single type

Closed this issue · 1 comments

At this point in time the SubstitutionGroup Call_ allows the calls structure to contain multiple variants of a Call, including DatedCall, CallZ, DatedCallZ. I would like to hear if we could make the this a choice, allowing only a single type in a list per instance. So a list of Call, a list of CallZ but not [Call, CallZ, Call] etc.

        <xsd:complexType name="calls_RelStructure"> 
                <xsd:annotation>
                        <xsd:documentation>CALLs associated with entity.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexContent>
                        <xsd:extension base="strictContainmentAggregationStructure">
                                <xsd:sequence>
                                        <xsd:element ref="Call_" minOccurs="2" maxOccurs="unbounded"/>
                                </xsd:sequence>
                        </xsd:extension>
                </xsd:complexContent>
        </xsd:complexType>  

fixed with PR