# Compact RelaxNG Schema for Air Itinerary Request default namespace = "http://www.cleartrip.com/air/" include "air-common.rnc" { ## Contains a list of flight specs Flights = element flights { FlightSpec+ } ## Contains a list of segment specs Segments = element segments { SegmentSpec+ } } start = ItineraryRequest ## Document top-level. ItineraryRequest = element itinerary { CabinType?, Flights, PaxInfoList, ContactDetail, PaymentDetailRequest? } | element book-request { CabinType?, Flights, PaxInfoList, ContactDetail, PaymentDetailRequest? } ## A flight spec corresponds to a flight given in the search results. FlightSpec = element flight-spec { Segments+ } ## A segment spec corresponds to a segment in the search results. Only ## the minimal information required to uniquely identify a segment is ## needed. SegmentSpec = element segment-spec { DepartureAirport, ArrivalAirport, FlightNumber, OperatingAirlineCode, DepartureDate } ## Departure date for the segment. DepartureDate = element departure-date { xsd:date }