NeTEx-CEN/NeTEx

Duplicated complexTypes

Closed this issue · 4 comments

In the examples below explicitly ignored the SIRI vs NeTEx duplicates.

#!/bin/bash
find . -type f -name "*.xsd" | xargs grep -h "complexType name" | sed 's/.*name="\(.*\)".*/\1/g' | sort -u | while read i; do
	COUNT2=`find . -type f -name "*.xsd" | xargs grep -i "complexType name=\"${i}\"" | wc -l`
	if [ "$COUNT2" -gt "1" ]; then
		echo ${i}
	fi
done
contactRefs_RelStructure
ContactRefStructure
contacts_RelStructure
ContactStructure
Contact_VersionStructure
./netex_framework/netex_genericFramework/netex_organisation_support.xsd:	<xsd:complexType name="contactRefs_RelStructure">
./netex_framework/netex_genericFramework/netex_contact_support.xsd:	<xsd:complexType name="contactRefs_RelStructure">
./netex_framework/netex_genericFramework/netex_organisation_support.xsd:	<xsd:complexType name="ContactRefStructure">
./netex_framework/netex_genericFramework/netex_contact_support.xsd:	<xsd:complexType name="ContactRefStructure">
./netex_framework/netex_genericFramework/netex_contact_version.xsd:	<xsd:complexType name="contacts_RelStructure">
./netex_framework/netex_genericFramework/netex_organisation_version.xsd:	<xsd:complexType name="contacts_RelStructure">
./netex_framework/netex_genericFramework/netex_organisation_support.xsd:	<xsd:complexType name="ContactStructure">
./netex_framework/netex_genericFramework/netex_contact_support.xsd:	<xsd:complexType name="ContactStructure">
./netex_framework/netex_genericFramework/netex_contact_version.xsd:	<xsd:complexType name="Contact_VersionStructure">
./netex_framework/netex_genericFramework/netex_organisation_version.xsd:	<xsd:complexType name="Contact_VersionStructure">
janosu commented

Hi,

I found another problem in the download version 1.2.2. The VehicleJourneyStopAssignmentsInFrame_RelStructure type exists in two ways in netex_part_2/part2_journeyTimes/netex_vehicleJourney_version.xsd. One begins with a lowercase letter, the other with an uppercase letter. The TimetableFrame has a reference to the lowercase type. The lowercase type is at the beginning of the xsd file, the uppercase is at the end. Well, I think the lowercase type can be deleted, and the uppercase should be referred to in the frame based on the conventions you set up.

I found another problem in the download version 1.2.2.

Fixed yesterday. 702362b

janosu commented

Sorry for my post then, I didn't check the corrections.

Aurige commented

We have dead branches here : for example netex_contact_support.xsd and netex_contact_version.xsd are not imported or included anywhere ... so they can we removed