Home » railML newsgroups » railml.timetable » Referenzierung von ausgefallenen Zügen / Referencing of canceled trains (Wie können ausgefallene Züge referenziert werden? / Haw to reference cancaled trains?)
Re: Referenzierung von ausgefallenen Zügen / Referencing of canceled trains [message #1591 is a reply to message #1575] Fri, 26 May 2017 12:32 Go to previous messageGo to previous message
Leopold Kühschelm is currently offline  Leopold Kühschelm
Messages: 8
Registered: September 2015
Junior Member
Am 18.05.2017 um 12:35 schrieb Dirk Bräuer:
> Dear all,
>
> I fully agree with Leopold concerning:
>
>> ...the replacementOf should not be an attribute. It
>> is a child element of the train and should reference either trainNumber
>> + operatingPeriod or a tafTapTsiTrainID.
>
> And I want to add the attributes additionalTrainNumber and possibly
> scope (when not using tafTapTsiTrainID) to be consequent in railML 2.x.
>
> Dirk.

Hi Dirk,

thanks for the input, I agree with you! As we have discussed in earlier
meetings and documented in the railML-Wiki
(https://wiki.railml.org/index.php?title=TT:train) a train should have
trainNumber, additionalTrainNum, scope and operating period as unique
key in railml.

Therefore I propose to add an element replacements with following schema
definition to the eTrain Element:

<xs:element name="replacements" type="tReplacedTrains">
</xs:element>



<xs:complexType name="tUniqueTrainKey">
<xs:sequence>
<xs:element ref="eOperatingPeriodRef"/>
</xs:sequence>
<xs:attributeGroup ref="aUniqueTrainKey"/>
</xs:complexType>
<xs:complexType name="tReplacedTrains">
<xs:sequence>
<xs:element name="replacementOf" type="tReplacementOf" minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="tReplacementOf">
<xs:choice>
<xs:element ref="tafTapTsiTrainID"></xs:element>
<xs:element ref="eUniqueTrainKey"></xs:element>
</xs:choice>
</xs:complexType>
<xs:attributeGroup name="aUniqueTrainKey">
<xs:attribute name="trainNumber" type="xs:string"/>
<xs:attribute name="additionalTrainNumber" type="xs:string"/>
<xs:attribute name="scope" type="tTrainScope"/>
</xs:attributeGroup>
<xs:element name="eUniqueTrainKey" type="tUniqueTrainKey">
</xs:element>

Best regards,
Leo
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: addendum to <stopDescription> in railML2.4
Next Topic: example data: East Saxony railway network by FBS
Goto Forum:
  


Current Time: Sun Apr 28 01:41:12 CEST 2024