Home » railML newsgroups » railml.timetable » Connections to external trains (Connections to external trains, not included in the file)
Re: Connections to external trains [message #1344 is a reply to message #1343] Fri, 12 February 2016 10:26 Go to previous messageGo to previous message
Philip Wobst is currently offline  Philip Wobst
Messages: 47
Registered: November 2013
Location: Hanover, Germany
Member
Hello Joachim,

I would like to suggest to change the choice to a normal sequence and then making the individual reference elements
optional. That way each externalReferences sub-element can be supplied only once. The approach with the choice element
would allow for up to four tafTapTsiTrainIDs.

          <xs:element name="externalReferences" minOccurs="0">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="tafTapTsiTrainID" type="rail:eTapTsiTransportOperationalIdentifier" minOccurs="0" />
                <xs:element name="trainNumber" minOccurs="0">
                  <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" minOccurs="0">
                  <xs:complexType>
                    <xs:attribute name="lineNumber" type="xs:string"/>
                  </xs:complexType>
                </xs:element>
                <xs:element name="information" minOccurs="0">
                  <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:sequence>
            </xs:complexType>
          </xs:element>

BR, Philip

Screenshot showing the choice element on the left (post by Joachim) and the suggested change on the right (image is attached to the TRAC ticket #244):
https://trac.railml.org/raw-attachment/ticket/244/Connections_to_external_trains_Screenshot.png
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Request for railML3] Clearer description of chained <trainPart>s
Next Topic: Additional commercial attributes from TAP TSI for timetables
Goto Forum:
  


Current Time: Mon May 06 08:26:43 CEST 2024