Grouping of <ocp> elements in <ocpGroup>
In recent discussions the need for a grouped operation control point was expressed. This shall have all the attributes of an element. Regarding the hierarchy, the attributes of the element shall be overwritten by the correspondent attributes of the if existent.
The following implementation is being proposed:
A new element is defined in infrastructure.xsd
<xs:complexType name="eOcpGroup">
<xs:complexContent>
<xs:extension base="rail:tOperationControlPoint">
<xs:sequence>
<xs:element name="ocpRef" type="rail:tOcpRefInGroup" maxOccurs="unbounded" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
and included in the infrastructure element:
<xs:element name="ocpGroups" type="rail:eOcpGroups" minOccurs="0" />
whereas is a container for several elements:
<xs:complexType name="eOcpGroups">
<xs:sequence>
<xs:element name="ocpGroup" type="rail:eOcpGroup" minOccurs="0" maxOccurs="unbounded" />
<xs:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>