This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with iterating through 1 to many FlightSegment nodes


To All:
I am having a problem with the following XML Doc.
======================
- <AirAvailabilityResults size="9"> 
- <AirAvailabilityReply> 
<supplierType>S</supplierType> 
<baseFare>360.0</baseFare> 
<price>407.00</price> 
<currency>USD</currency> 
- <FlightSegment> 
<segmentOutgoing>true</segmentOutgoing> 
<chainCode>UA</chainCode> 
<flightNumber>5588</flightNumber> 
<departureCityCode>DEN</departureCityCode> 
<arrivalCityCode>SGF</arrivalCityCode> 
<departureDate>10/04/2002 10:15 AM</departureDate> 
<arrivalDate>10/04/2002 1:05 PM</arrivalDate> 
<classOfServiceCode>Q</classOfServiceCode> 
<equipmentCode>CRJ</equipmentCode> 
<numberOfStops>0</numberOfStops> 
<departureCity>Denver</departureCity> 
<departureStateProvince>CO</departureStateProvince> 
<departureCountry>US</departureCountry> 
<arrivalCity>Springfield</arrivalCity> 
<arrivalStateProvince>MO</arrivalStateProvince> 
<arrivalCountry>US</arrivalCountry> 
<company>UNITED AIRLINES</company> 
<fareBasis>QHE14NR</fareBasis> 
</FlightSegment> 
- <FlightSegment> 
<segmentOutgoing>false</segmentOutgoing> 
<chainCode>UA</chainCode> 
<flightNumber>5589</flightNumber> 
<departureCityCode>SGF</departureCityCode> 
<arrivalCityCode>DEN</arrivalCityCode> 
<departureDate>10/25/2002 1:40 PM</departureDate> 
<arrivalDate>10/25/2002 2:45 PM</arrivalDate> 
<classOfServiceCode>Q</classOfServiceCode> 
<equipmentCode>CRJ</equipmentCode> 
<numberOfStops>0</numberOfStops> 
<departureCity>Springfield</departureCity> 
<departureStateProvince>MO</departureStateProvince> 
<departureCountry>US</departureCountry> 
<arrivalCity>Denver</arrivalCity> 
<arrivalStateProvince>CO</arrivalStateProvince> 
<arrivalCountry>US</arrivalCountry> 
<company>UNITED AIRLINES</company> 
<fareBasis>QHE14NR</fareBasis> 
</FlightSegment> 
<ticketType>E</ticketType> 
<tripType>R</tripType> 
</AirAvailabilityReply>
=============================
Now there can be one to many FlightSegments, and I  just need to pull
the dates and times out of each one to display each leg of the flight.
Any ideas?

Mac Rost
Affiliate Relations/XML Developer
TravelNow.com a wholly owned subsidiary of 
Hotel Reservations Network 
mailto:xml@travelnow.com



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]