Connections to external trains [message #1343] |
Wed, 03 February 2016 11:57 |
Joachim.Rubröder
Messages: 33 Registered: September 2004
|
Member |
|
|
Conclusion of the discussion during the timetable-developer meeting on 22.01.2016 in Berlin:
Dear railML users.
We were looking for a way to reference a connection to an external train (bus, ship, etc.) that is not listed as train within the same railML file.
The idea is to have a sub element <externalReferences> with a choice of different elements to reference an external train via:
* unique tafTapTsiTrainID
* trainNumber (and maybe the related IM)
* lineNumber, e.g. a connection to the trains of the line 'S6'
* information, e.g. 'Connection to Berlin via Wolfsburg'
Do you have any remarks on this approach?
Kind regards,
Joachim Rubröder
The XSD would look like this:
<xs:complexType name="eConnectionTT">
<xs:complexContent>
<xs:extension base="rail:tConnectionTT">
<xs:sequence>
<xs:element name="externalReferences" minOccurs="0">
<xs:complexType>
<xs:choice maxOccurs="4">
<xs:element name="tafTapTsiTrainID" type="rail:eTapTsiTransportOperationalIdentifier"/>
<xs:element name="trainNumber">
<xs:complexType>
<xs:sequence>
<xs:element name="organizationalUnitBinding" type="rail:eOrganizationalUnitBinding" minOccurs="0">
<xs:annotation>
<xs:documentation source="http://wiki.railml.org/index.php?title=TT:organizationalUnitBinding"/>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="trainNumber" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="lineNumber">
<xs:complexType>
<xs:attribute name="lineNumber" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="information">
<xs:complexType>
<xs:attribute name="description" type="xs:string">
<xs:annotation>
<xs:documentation>Enter the description of the connection - e.g. 'Connection to Berlin via Wolfsburg'</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="annotationRef" type="rail:tAnnotationRef" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>refers to the id attribute of an annotation element</xs:documentation>
<xs:documentation source="http://wiki.railml.org/index.php?title=TT:annotationRef_connection"/>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
|
|
|