Definition Type: Element
Name: FlightLegDetails
Namespace: http://www.opentravel.org/OTA/2003/05
Containing Schema: OTA_AirDetailsRS.xsd
MinOccurs (1)
MaxOccurs 10
Abstract
Documentation:
Construct for holding flight leg information.
Collapse XSD Schema Diagram:
Drilldown into Warnings in schema ota_airdetailsrs_xsd Drilldown into MarketingCabinAvailability in schema ota_airdetailsrs_xsd Drilldown into Comment in schema ota_airdetailsrs_xsd Drilldown into Equipment in schema ota_airdetailsrs_xsd Drilldown into OperatingAirline in schema ota_airdetailsrs_xsd Drilldown into MarketingAirline in schema ota_airdetailsrs_xsd Drilldown into ArrivalAirport in schema ota_airdetailsrs_xsd Drilldown into DepartureAirport in schema ota_airdetailsrs_xsd Drilldown into DateChangeNbr in schema ota_airdetailsrs_xsd Drilldown into LegDistance in schema ota_airdetailsrs_xsd Drilldown into DepartureDayOfWeek in schema ota_airdetailsrs_xsd Drilldown into ArrivalDateTime in schema ota_airdetailsrs_xsd Drilldown into DepartureDateTime in schema ota_airdetailsrs_xsd Drilldown into Ticket in schema ota_airdetailsrs_xsd Drilldown into OnTimeRate in schema ota_airdetailsrs_xsd Drilldown into SmokingAllowed in schema ota_commontypes_xsd1 Drilldown into SmokingIndicatorGroup in schema ota_commontypes_xsd1 Drilldown into GroundDuration in schema ota_airdetailsrs_xsd Drilldown into JourneyDuration in schema ota_airdetailsrs_xsd Drilldown into FlightNumber in schema ota_airdetailsrs_xsd Drilldown into SequenceNumber in schema ota_airdetailsrs_xsdXSD Diagram of FlightLegDetails in schema ota_airdetailsrs_xsd (Open Travel (OTA))
Collapse XSD Schema Code:
<xs:element name="FlightLegDetails" maxOccurs="10">
    <xs:annotation>
        <xs:documentation xml:lang="en">Construct for holding flight leg information.</xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:sequence>
            <xs:element name="DepartureAirport" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="en">The departure airport of the flight leg.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attributeGroup ref="AirportLocationGroup" />
                </xs:complexType>
            </xs:element>
            <xs:element name="ArrivalAirport" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="en">The arrival airport of the flight leg.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attributeGroup ref="AirportLocationGroup" />
                </xs:complexType>
            </xs:element>
            <xs:element name="MarketingAirline" type="CompanyNameType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="en">The marketing airline.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="OperatingAirline" type="OperatingAirlineType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="en">The air carrier engaged directly in the operation of the flight.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Equipment" type="EquipmentType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="en">The type of equipment  used for the  flight..</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Comment" type="FreeTextType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation xml:lang="en">Any special comments on the leg. (eg. operated by  XX)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="MarketingCabinAvailability" type="CabinAvailabilityType" minOccurs="0" maxOccurs="9">
                <xs:annotation>
                    <xs:documentation xml:lang="en">Identifies the cabins available for the flight.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Warnings" type="WarningsType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="en">Warning information for this flight leg.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="SequenceNumber" type="xs:integer" use="required">
            <xs:annotation>
                <xs:documentation xml:lang="en"> The sequence number of the flight leg.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="FlightNumber" type="xs:positiveInteger" use="required">
            <xs:annotation>
                <xs:documentation xml:lang="en">The flight number of the flight.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="JourneyDuration" type="xs:duration" use="optional">
            <xs:annotation>
                <xs:documentation xml:lang="en">The duration of the flight from departure location to destination  location.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="GroundDuration" type="xs:duration" use="optional">
            <xs:annotation>
                <xs:documentation xml:lang="en">The duration of a ground stop.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attributeGroup ref="SmokingIndicatorGroup">
            <xs:annotation>
                <xs:documentation xml:lang="en">Specifies if the flight is smoking or not.</xs:documentation>
            </xs:annotation>
        </xs:attributeGroup>
        <xs:attribute name="OnTimeRate" type="Percentage" use="optional">
            <xs:annotation>
                <xs:documentation xml:lang="en">Specifies the Dept. of Transport on time rate of the  flight.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="Ticket" type="TicketType" default="Paper">
            <xs:annotation>
                <xs:documentation xml:lang="en">Specifies if the flight is e-ticketable or not.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="DepartureDateTime" type="xs:dateTime" use="optional">
            <xs:annotation>
                <xs:documentation xml:lang="en"> Scheduled flight departure date/time for flight leg.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="ArrivalDateTime" type="xs:dateTime" use="optional">
            <xs:annotation>
                <xs:documentation xml:lang="en"> Scheduled flight arrival date/time for flight leg.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="DepartureDayOfWeek" type="DayOfWeekType" use="optional">
            <xs:annotation>
                <xs:documentation xml:lang="en">A three letter abbreviation for the day of the week as specified in the departure date.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="LegDistance" type="xs:positiveInteger" use="optional">
            <xs:annotation>
                <xs:documentation xml:lang="en">The number of miles for this flight leg.
</xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="DateChangeNbr" use="optional">
            <xs:annotation>
                <xs:documentation xml:lang="en">When present contains the number of days by which the flight's arrival date differs from its departure date.</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value="-1">
                        <xs:annotation>
                            <xs:documentation xml:lang="en">The date of arrival is 1 day before the departure date.</xs:documentation>
                        </xs:annotation>
                    </xs:enumeration>
                    <xs:enumeration value="+1">
                        <xs:annotation>
                            <xs:documentation xml:lang="en">The date of arrival is 1 day after the departure date.</xs:documentation>
                        </xs:annotation>
                    </xs:enumeration>
                    <xs:enumeration value="+2">
                        <xs:annotation>
                            <xs:documentation xml:lang="en">The date of arrival is 2 days after the departure date.</xs:documentation>
                        </xs:annotation>
                    </xs:enumeration>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>
</xs:element>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
DepartureAirport nsA:DepartureAirport 0 (1)
ArrivalAirport nsA:ArrivalAirport 0 (1)
MarketingAirline nsA:MarketingAirline 0 (1)
OperatingAirline nsA:OperatingAirline 0 (1)
Equipment nsA:Equipment 0 (1)
Comment nsA:Comment 0 unbounded
MarketingCabinAvailability nsA:MarketingCabinAvailability 0 9
Warnings nsA:Warnings 0 (1)
Collapse Child Attributes:
Name Type Default Value Use
SequenceNumber nsA:SequenceNumber Required
FlightNumber nsA:FlightNumber Required
JourneyDuration nsA:JourneyDuration Optional
GroundDuration nsA:GroundDuration Optional
SmokingAllowed SmokingAllowed false Optional
OnTimeRate nsA:OnTimeRate Optional
Ticket nsA:Ticket Paper (Optional)
DepartureDateTime nsA:DepartureDateTime Optional
ArrivalDateTime nsA:ArrivalDateTime Optional
DepartureDayOfWeek nsA:DepartureDayOfWeek Optional
LegDistance nsA:LegDistance Optional
DateChangeNbr nsA:DateChangeNbr Optional