<\/a><\/p>\nXslt :<\/p>\n
<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http:\/\/www.w3.org\/1999\/XSL\/Transform\">\r\n <xsl:param name=\"fontSize\">x-small<\/xsl:param>\r\n <xsl:output method=\"html\" indent=\"yes\" omit-xml-declaration=\"yes\"\/>\r\n\r\n <xsl:variable name=\"maximum\">\r\n <xsl:value-of select=\"\/\/*[local-name()='AirSegment' and not(preceding-sibling::node()\/@Group > @Group or following-sibling::node()\/@Group > @Group)]\/@Group\" \/>\r\n <\/xsl:variable>\r\n <xsl:template match=\"\/\">\r\n <html>\r\n <head>\r\n <title>Travelport Universal API Low Fare response<\/title>\r\n <style type=\"text\/css\">\r\n BODY,table {font-size: <xsl:value-of select=\"$fontSize\"><\/xsl:value-of>;}\r\n table.main {margin-bottom: 12px;border-bottom-style:solid;border-bottom-color:#0075b0; width=\"100%\"}\r\n table.main thead {background-color: #0075b0; color:white;}\r\n table.main caption {background-color: #0075b0; color:white;font-size: larger; font-weight:bold;}\r\n table.main td {padding: 1px;}\r\n tr.out td {border-top-style: solid; border-top-color: #72c7e7;}\r\n tr.in td {border-top-style: solid; border-top-color: #7ab800;}\r\n tr.middle td {border-top-style: solid; border-top-color: #dbceac;}\r\n td.time {text-align:right;}\r\n td.center {text-align:center;}\r\n h1 {background-color: #7ab800; color:white;}\r\n <\/style>\r\n <\/head>\r\n <body>\r\n <table>\r\n <tr>\r\n <td>\r\n <h1>\r\n <a name=\"#air\">Air fares<\/a>\r\n <\/h1>\r\n <a href=\"#rail\">Go to rail fares<\/a>\r\n <\/td>\r\n <\/tr>\r\n <xsl:apply-templates select=\"\/\/*[local-name()='AirPricingSolution']\"\/>\r\n <xsl:apply-templates select=\"\/\/*[local-name()='AirPricePoint']\"\/>\r\n <tr>\r\n <td>\r\n <h1>\r\n <a name=\"#rail\">Rail fares<\/a>\r\n <\/h1>\r\n <a href=\"#air\">Go to air fares<\/a>\r\n <\/td>\r\n <\/tr>\r\n <\/table>\r\n <xsl:apply-templates select=\"\/\/*[local-name()='RailPricingSolution']\"\/>\r\n <\/body>\r\n <\/html>\r\n <\/xsl:template>\r\n\r\n <xsl:template match=\"\/\/*[local-name()='AirPricingSolution']\">\r\n <xsl:variable name=\"Amt\">\r\n <xsl:value-of select=\".\/@TotalPrice\"\/>\r\n <\/xsl:variable>\r\n <tr>\r\n <td>\r\n <table class=\"main\">\r\n <caption>\r\n Total price:\r\n <xsl:value-of select=\"$Amt\"\/>\r\n <\/caption>\r\n <thead >\r\n <tr>\r\n <th>Direction<\/th>\r\n <th>Date<\/th>\r\n <th>Flight<\/th>\r\n <th>Depart<\/th>\r\n <th>Arrive<\/th>\r\n <th>From<\/th>\r\n <th>To<\/th>\r\n <th>Class<\/th>\r\n <th>Cabin<\/th>\r\n <th>Source<\/th>\r\n <\/tr>\r\n <\/thead>\r\n <tbody>\r\n <xsl:apply-templates select=\"*[local-name()='AirSegmentRef']\" \/>\r\n <xsl:apply-templates select=\"*[local-name()='Journey']\" \/>\r\n <\/tbody>\r\n <\/table>\r\n <\/td>\r\n <\/tr>\r\n <\/xsl:template>\r\n\r\n <xsl:template match=\"\/\/*[local-name()='AirPricePoint']\">\r\n <xsl:variable name=\"Amt\">\r\n <xsl:value-of select=\".\/@TotalPrice\"\/>\r\n <\/xsl:variable>\r\n <tr>\r\n <td>\r\n <table class=\"main\">\r\n <caption>\r\n \r\n <xsl:value-of select=\".\/@TotalPrice\"\/> (base: <xsl:value-of select=\".\/@BasePrice\"\/> - taxes: <xsl:value-of select=\".\/@Taxes\"\/>)\r\n <\/caption>\r\n <thead >\r\n <tr>\r\n <th>Direction<\/th>\r\n <th>Date<\/th>\r\n <th>Flight<\/th>\r\n <th>Depart<\/th>\r\n <th>Arrive<\/th>\r\n <th>From<\/th>\r\n <th>To<\/th>\r\n <th>Class_<\/th>\r\n <th>Cabin<\/th>\r\n <th>Source<\/th>\r\n <th>\uc5ec\ud589\uc2dc\uac04<\/th>\r\n <\/tr>\r\n <\/thead>\r\n <tbody>\r\n <xsl:for-each select=\"*[local-name()='AirPricingInfo'][position()=1]\">\r\n <xsl:apply-templates select=\"*[local-name()='FlightOptionsList']\/*[local-name()='FlightOption']\/*[local-name()='Option']\" \/>\r\n <\/xsl:for-each>\r\n <\/tbody>\r\n <\/table>\r\n <\/td>\r\n <\/tr>\r\n <\/xsl:template>\r\n\r\n <xsl:template match=\"*[local-name()='AirSegmentRef']\">\r\n <xsl:variable name=\"indexFlight\" select=\".\/@Key\"\/>\r\n <xsl:variable name=\"position\" select=\"position()-2\" \/>\r\n\r\n <xsl:variable name=\"connecting\" select=\"..\/*[local-name()='Connection' and @SegmentIndex=$position]\/@SegmentIndex\" \/>\r\n\r\n <xsl:variable name=\"bookingClass\" select=\"..\/*[local-name()='AirPricingInfo'][position()=1]\/*[local-name()='BookingInfo' and @SegmentRef=$indexFlight]\/@BookingCode\"\/>\r\n\t<xsl:variable name=\"bookingCount\" select=\"..\/*[local-name()='AirPricingInfo'][position()=1]\/*[local-name()='BookingInfo' and @SegmentRef=$indexFlight]\/@BookingCount\"\/>\r\n <xsl:variable name=\"cabinClass\" select=\"..\/*[local-name()='AirPricingInfo'][position()=1]\/*[local-name()='BookingInfo' and @SegmentRef=$indexFlight]\/@CabinClass\"\/>\r\n <xsl:variable name=\"providerCode\" select=\"..\/*[local-name()='AirPricingInfo'][position()=1]\/@ProviderCode\"\/>\r\n\r\n <xsl:for-each select=\"\/\/*[local-name()='AirSegment' and .\/@Key=$indexFlight]\">\r\n <xsl:variable name=\"directionName\">\r\n <xsl:if test=\"not($connecting)\" >\r\n <xsl:if test=\"$maximum>1\">\r\n OD Part <xsl:value-of select=\".\/@Group\"\/>\r\n <\/xsl:if>\r\n <xsl:if test=\"$maximum=1\">\r\n <xsl:choose>\r\n <xsl:when test=\".\/@Group='0'\">Outbound<\/xsl:when>\r\n <xsl:otherwise>Inbound<\/xsl:otherwise>\r\n <\/xsl:choose>\r\n <\/xsl:if>\r\n <xsl:if test=\"$maximum=0\">Oneway<\/xsl:if>\r\n <\/xsl:if>\r\n <\/xsl:variable>\r\n <tr>\r\n <xsl:attribute name=\"class\">\r\n <xsl:choose>\r\n <xsl:when test=\".\/@Group='0' and $directionName!=''\">out<\/xsl:when>\r\n <xsl:when test=\"($maximum=.\/@Group and $directionName!='')\">in<\/xsl:when>\r\n <xsl:when test=\"$directionName=''\"><\/xsl:when>\r\n <xsl:otherwise >middle<\/xsl:otherwise >\r\n <\/xsl:choose>\r\n <\/xsl:attribute>\r\n <td >\r\n <xsl:value-of select=\"$directionName\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\"substring(.\/@DepartureTime,1,10)\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Carrier\"\/>\r\n <xsl:value-of select=\".\/@FlightNumber\"\/>\r\n <\/td>\r\n <td class=\"time\">\r\n <xsl:value-of select=\"substring(.\/@DepartureTime,12,5)\"\/>\r\n <\/td>\r\n <td class=\"time\">\r\n <xsl:value-of select=\"substring(.\/@ArrivalTime,12,5)\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Origin\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Destination\"\/>\r\n <\/td>\r\n <td class=\"center\">\r\n <xsl:value-of select=\"$bookingClass\"\/>\r\n\t\t <xsl:value-of select=\"$bookingCount\"\/> *\r\n <\/td>\r\n <td>\r\n <xsl:choose >\r\n <xsl:when test=\"$cabinClass\">\r\n <xsl:value-of select=\"$cabinClass\"\/>\r\n <\/xsl:when>\r\n <xsl:otherwise>\r\n  \r\n <\/xsl:otherwise>\r\n <\/xsl:choose>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\"$providerCode\"\/>\r\n <xsl:if test=\".\/@AvailabilitySource\">\r\n -\r\n <xsl:value-of select=\".\/@AvailabilitySource\"\/>\r\n <\/xsl:if>\r\n <\/td>\r\n <\/tr>\r\n <\/xsl:for-each>\r\n <\/xsl:template>\r\n\r\n <xsl:template match=\"*[local-name()='Journey']\">\r\n <xsl:call-template name=\"SegmentsForJourney\" \/>\r\n <\/xsl:template>\r\n\r\n <xsl:template name=\"SegmentsForJourney\">\r\n <xsl:for-each select=\"*[local-name()='AirSegmentRef']\">\r\n <xsl:variable name=\"indexFlight\" select=\".\/@Key\"\/>\r\n <xsl:variable name=\"position\" select=\"position()-2\" \/>\r\n\r\n <xsl:variable name=\"connecting\" select=\"..\/..\/*[local-name()='Connection' and @SegmentIndex=$position]\/@SegmentIndex\" \/>\r\n\r\n <xsl:variable name=\"bookingClass\" select=\"..\/..\/*[local-name()='AirPricingInfo'][position()=1]\/*[local-name()='BookingInfo' and @SegmentRef=$indexFlight]\/@BookingCode\"\/>\r\n\t <xsl:variable name=\"bookingCount\" select=\"..\/..\/*[local-name()='AirPricingInfo'][position()=1]\/*[local-name()='BookingInfo' and @SegmentRef=$indexFlight]\/@BookingCount\"\/>\r\n\t \r\n <xsl:variable name=\"cabinClass\" select=\"..\/..\/*[local-name()='AirPricingInfo'][position()=1]\/*[local-name()='BookingInfo' and @SegmentRef=$indexFlight]\/@CabinClass\"\/>\r\n <xsl:variable name=\"providerCode\" select=\"..\/..\/*[local-name()='AirPricingInfo'][position()=1]\/@ProviderCode\"\/>\r\n\r\n <xsl:for-each select=\"\/\/*[local-name()='AirSegment' and .\/@Key=$indexFlight]\">\r\n <xsl:variable name=\"directionName\">\r\n <xsl:if test=\"not($connecting)\" >\r\n <xsl:if test=\"$maximum>1\">\r\n OD Part <xsl:value-of select=\".\/@Group\"\/>\r\n <\/xsl:if>\r\n <xsl:if test=\"$maximum=1\">\r\n <xsl:choose>\r\n <xsl:when test=\".\/@Group='0'\">Outbound<\/xsl:when>\r\n <xsl:otherwise>Inbound<\/xsl:otherwise>\r\n <\/xsl:choose>\r\n <\/xsl:if>\r\n <xsl:if test=\"$maximum=0\">Oneway<\/xsl:if>\r\n <\/xsl:if>\r\n <\/xsl:variable>\r\n <tr>\r\n <xsl:attribute name=\"class\">\r\n <xsl:choose>\r\n <xsl:when test=\".\/@Group='0' and $directionName!=''\">out<\/xsl:when>\r\n <xsl:when test=\"($maximum=.\/@Group and $directionName!='')\">in<\/xsl:when>\r\n <xsl:when test=\"$directionName=''\"><\/xsl:when>\r\n <xsl:otherwise >middle<\/xsl:otherwise >\r\n <\/xsl:choose>\r\n <\/xsl:attribute>\r\n <td >\r\n <xsl:value-of select=\"$directionName\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\"substring(.\/@DepartureTime,1,10)\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Carrier\"\/>\r\n <xsl:value-of select=\".\/@FlightNumber\"\/>\r\n <\/td>\r\n <td class=\"time\">\r\n <xsl:value-of select=\"substring(.\/@DepartureTime,12,5)\"\/>\r\n <\/td>\r\n <td class=\"time\">\r\n <xsl:value-of select=\"substring(.\/@ArrivalTime,12,5)\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Origin\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Destination\"\/>\r\n <\/td>\r\n <td class=\"center\">\r\n <xsl:value-of select=\"$bookingClass\"\/>\r\n\t\t\t<xsl:value-of select=\"$bookingCount\"\/> _\r\n <\/td>\r\n <td>\r\n <xsl:choose >\r\n <xsl:when test=\"$cabinClass\">\r\n <xsl:value-of select=\"$cabinClass\"\/>\r\n <\/xsl:when>\r\n <xsl:otherwise>\r\n  \r\n <\/xsl:otherwise>\r\n <\/xsl:choose>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\"$providerCode\"\/>\r\n <xsl:if test=\".\/@AvailabilitySource\">\r\n -\r\n <xsl:value-of select=\".\/@AvailabilitySource\"\/>\r\n <\/xsl:if>\r\n <\/td>\r\n <\/tr>\r\n <\/xsl:for-each>\r\n <\/xsl:for-each>\r\n <\/xsl:template>\r\n\r\n <xsl:template match=\"*[local-name()='FlightOptionsList']\/*[local-name()='FlightOption']\/*[local-name()='Option']\">\r\n \r\n <xsl:variable name=\"TravelTime\" select=\".\/@TravelTime\" \/>\r\n\t \r\n <xsl:for-each select=\"*[local-name()='BookingInfo']\">\r\n <xsl:variable name=\"indexFlight\" select=\".\/@SegmentRef\"\/>\r\n <xsl:variable name=\"position\" select=\"position()-2\" \/>\r\n\r\n <xsl:variable name=\"connecting\" select=\"..\/*[local-name()='Connection' and @SegmentIndex=$position]\/@SegmentIndex\" \/>\r\n\r\n <xsl:variable name=\"providerCode\" select=\"ancestor::*[local-name() = 'AirPricingInfo']\/@ProviderCode\" \/>\r\n\r\n <xsl:variable name=\"bookingClass\" select=\".\/@BookingCode\"\/>\r\n\t <xsl:variable name=\"bookingCount\" select=\".\/@BookingCount\"\/>\r\n <xsl:variable name=\"cabinClass\" select=\".\/@CabinClass\"\/>\r\n <xsl:variable name=\"fareInfoRef\" select=\".\/@FareInfoRef\"\/>\r\n\r\n <xsl:variable name=\"brandId\" select=\"\/*[local-name()='FareInfo' and @Key=$fareInfoRef]\/*[local-name()='Brand']\/@BrandId\" \/>\r\n <xsl:variable name=\"brandName\" select=\"\/\/*[local-name()='Brand' and @Key=$brandId]\/@Name\"\/>\r\n \r\n \r\n\t \r\n <xsl:for-each select=\"\/\/*[local-name()='AirSegment' and .\/@Key=$indexFlight]\">\r\n <xsl:variable name=\"directionName\">\r\n <xsl:if test=\"not($connecting)\" >\r\n <xsl:if test=\"$maximum>1\">\r\n OD Part <xsl:value-of select=\".\/@Group\"\/>\r\n <\/xsl:if>\r\n <xsl:if test=\"$maximum=1\">\r\n <xsl:choose>\r\n <xsl:when test=\".\/@Group='0'\">Outbound<\/xsl:when>\r\n <xsl:otherwise>Inbound<\/xsl:otherwise>\r\n <\/xsl:choose>\r\n <\/xsl:if>\r\n <xsl:if test=\"$maximum=0\">Oneway<\/xsl:if>\r\n <\/xsl:if>\r\n <\/xsl:variable>\r\n\t\t\r\n\t\t<xsl:variable name=\"TravelTime02\">\r\n <xsl:if test=\"not($connecting)\" >\r\n <xsl:if test=\"$maximum>1\">\r\n <xsl:value-of select=\"$TravelTime\"\/>\r\n <\/xsl:if>\r\n <xsl:if test=\"$maximum=1\">\r\n <xsl:choose>\r\n <xsl:when test=\".\/@Group='0'\"><xsl:value-of select=\"$TravelTime\"\/><\/xsl:when>\r\n <xsl:otherwise><xsl:value-of select=\"$TravelTime\"\/><\/xsl:otherwise>\r\n <\/xsl:choose>\r\n <\/xsl:if>\r\n <xsl:if test=\"$maximum=0\"><xsl:value-of select=\"$TravelTime\"\/><\/xsl:if>\r\n <\/xsl:if>\r\n <\/xsl:variable>\r\n\t\t\r\n\t\t\r\n\t\t\r\n <tr>\r\n \r\n\t\t <xsl:attribute name=\"class\">\r\n <xsl:choose>\r\n <xsl:when test=\".\/@Group='0' and $directionName!=''\">out<\/xsl:when>\r\n <xsl:when test=\"($maximum=.\/@Group and $directionName!='')\">in<\/xsl:when>\r\n <xsl:when test=\"$directionName=''\"><\/xsl:when>\r\n <xsl:otherwise >middle<\/xsl:otherwise >\r\n <\/xsl:choose>\r\n <\/xsl:attribute>\r\n\t\t \r\n <td >\r\n <xsl:value-of select=\"$directionName\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\"substring(.\/@DepartureTime,1,10)\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Carrier\"\/>\r\n <xsl:value-of select=\".\/@FlightNumber\"\/>\r\n <\/td>\r\n <td class=\"time\">\r\n <xsl:value-of select=\"substring(.\/@DepartureTime,12,5)\"\/>\r\n <\/td>\r\n <td class=\"time\">\r\n <xsl:value-of select=\"substring(.\/@ArrivalTime,12,5)\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Origin\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@Destination\"\/>\r\n <\/td>\r\n <td class=\"center\">\r\n <xsl:value-of select=\"$bookingClass\"\/><xsl:value-of select=\"$bookingCount\"\/>\r\n <\/td>\r\n <td >\r\n <xsl:choose >\r\n <xsl:when test=\"$cabinClass\">\r\n <xsl:value-of select=\"$cabinClass\"\/>\r\n <\/xsl:when>\r\n <xsl:otherwise>\r\n  \r\n <\/xsl:otherwise>\r\n <\/xsl:choose>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\"$providerCode\"\/>\r\n <xsl:if test=\".\/@AvailabilitySource\">\r\n -\r\n <xsl:value-of select=\".\/@AvailabilitySource\"\/>\r\n <\/xsl:if>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\"$brandName\"\/>\r\n\t\t\t<!-- SegmentRef -->\r\n\t\t\t\r\n\t\t\t<xsl:variable name=\"FlightDetailsRef\" select=\".\/*[local-name()='FlightDetailsRef']\/@Key\"\/>\r\n\t\t\t\r\n\t\t\t<xsl:value-of select=\"$TravelTime02\"\/>\r\n\t\t\t\r\n\t\t\t<!--xsl:for-each select=\"\/\/*[local-name()='FlightDetails' and .\/@Key=$FlightDetailsRef]\">\r\n\t\t\t\r\n\t\t\t traveltime: <xsl:value-of select=\"@TravelTime\"><\/xsl:value-of> <BR\/>\r\n\t\t\t \ucd9c\ubc1c\uc2dc\uac04 : <xsl:value-of select=\"@DepartureTime\"><\/xsl:value-of> <BR\/>\r\n\t\t\t \ub3c4\ucc29\uc2dc\uac04 : <xsl:value-of select=\"@ArrivalTime\"><\/xsl:value-of> <BR\/>\r\n\t\t\t\r\n\t\t\t<\/xsl:for-each-->\r\n\t\t\t\r\n\t\t\t\r\n <\/td>\r\n\r\n <\/tr>\r\n <\/xsl:for-each>\r\n <\/xsl:for-each>\r\n <\/xsl:template>\r\n\r\n <xsl:template match=\"\/\/*[local-name()='RailPricingSolution']\">\r\n <xsl:variable name=\"Amt\">\r\n <xsl:value-of select=\".\/@TotalPrice\"\/>\r\n <\/xsl:variable>\r\n <xsl:variable name=\"Supplier\">\r\n <xsl:value-of select=\".\/@SupplierCode\"\/>\r\n <\/xsl:variable>\r\n <tr>\r\n <td>\r\n <table class=\"main\">\r\n <caption>\r\n From <xsl:value-of select=\"$Supplier\"\/> - Total price:\r\n <xsl:value-of select=\"$Amt\"\/>\r\n <\/caption>\r\n <thead >\r\n <tr>\r\n <th>Direction<\/th>\r\n <th>Date<\/th>\r\n <th>Train<\/th>\r\n <th>Depart<\/th>\r\n <th>Arrive<\/th>\r\n <th>From<\/th>\r\n <th>To<\/th>\r\n <\/tr>\r\n <\/thead>\r\n <tbody>\r\n <xsl:apply-templates select=\"*[local-name()='RailJourneyRef']\" \/>\r\n <\/tbody>\r\n <\/table>\r\n <\/td>\r\n <\/tr>\r\n <\/xsl:template>\r\n\r\n <xsl:template match=\"*[local-name()='RailJourneyRef']\">\r\n <xsl:variable name=\"indexJourney\" select=\".\/@Key\"\/>\r\n <xsl:for-each select=\"\/\/*[local-name()='RailJourney' and .\/@Key=$indexJourney]\">\r\n <xsl:variable name=\"direction\" select=\".\/@JourneyDirection\"\/>\r\n <xsl:apply-templates select=\"*[local-name()='RailSegmentRef']\">\r\n <xsl:with-param name=\"direction\" select=\"$direction\"><\/xsl:with-param>\r\n <\/xsl:apply-templates>\r\n <\/xsl:for-each>\r\n\r\n <\/xsl:template>\r\n\r\n <xsl:template match=\"*[local-name()='RailSegmentRef']\">\r\n <xsl:param name=\"direction\"\/>\r\n\r\n <xsl:variable name=\"position\" select=\"position()\" \/>\r\n <xsl:variable name=\"directionHeader\">\r\n <xsl:choose>\r\n <xsl:when test=\"position()=1\">\r\n <xsl:value-of select=\"$direction\"\/>\r\n <\/xsl:when>\r\n <xsl:otherwise>\r\n\r\n <\/xsl:otherwise>\r\n <\/xsl:choose>\r\n <\/xsl:variable>\r\n\r\n <xsl:variable name=\"indexSegment\" select=\".\/@Key\"\/>\r\n <xsl:for-each select=\"\/\/*[local-name()='RailSegment' and .\/@Key=$indexSegment]\">\r\n <tr>\r\n <xsl:attribute name=\"class\">\r\n <xsl:choose>\r\n <xsl:when test=\"$directionHeader='Outward'\">out<\/xsl:when>\r\n <xsl:when test=\"$directionHeader='Return'\">in<\/xsl:when>\r\n <xsl:otherwise ><\/xsl:otherwise >\r\n <\/xsl:choose>\r\n <\/xsl:attribute>\r\n <td>\r\n <xsl:value-of select=\"$directionHeader\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\"substring(.\/@DepartureTime,1,10)\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@TrainNumber\"\/>\r\n <\/td>\r\n <td class=\"time\">\r\n <xsl:value-of select=\"substring(.\/@DepartureTime,12,5)\"\/>\r\n <\/td>\r\n <td class=\"time\">\r\n <xsl:value-of select=\"substring(.\/@ArrivalTime,12,5)\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@OriginStationName\"\/>\r\n <\/td>\r\n <td>\r\n <xsl:value-of select=\".\/@DestinationStationName\"\/>\r\n <\/td>\r\n <\/tr>\r\n <\/xsl:for-each>\r\n <\/xsl:template>\r\n<\/xsl:stylesheet>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"For a single segment with no connection, the travel time is equal to the flight time (FlightDetails @TravelTime and AirSegment @TravelTime). The TravelTime element in […]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry","category-low-fare-search"],"_links":{"self":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=338"}],"version-history":[{"count":2,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":358,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/338\/revisions\/358"}],"wp:attachment":[{"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/uapi.ihavenomoney.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}