Skip to content

Commit

Permalink
Do not remove empty <dummy> elements
Browse files Browse the repository at this point in the history
  • Loading branch information
DerMika committed Mar 19, 2018
1 parent 3bb268c commit 2fc229f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Release 1.7.0 (UNRELEASED)


# Release 1.6.1 (19 March 2018)
* Do not remove ``<dummy>`` node from outgoing XML (https://github.com/amabnl/amadeus-ws-client/issues/161)

# Release 1.6.0 (7 February 2018)
* Recognize Passenger-level error messages in ``PNR_Reply`` responses (https://github.com/amabnl/amadeus-ws-client/issues/139)
* Added support for Layover per connection options in ``Fare_MasterPricerTravelBoardSearch`` (https://github.com/amabnl/amadeus-ws-client/pull/138) - Artem Zakharchenko
Expand Down
2 changes: 1 addition & 1 deletion src/Amadeus/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Client extends Base
*
* @var string
*/
const VERSION = "1.6.0";
const VERSION = "1.6.1";

/**
* An identifier string for the library (to be used in Received From entries)
Expand Down
4 changes: 2 additions & 2 deletions src/Amadeus/Client/SoapClient/removeempty.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
- originDestination
- markerRoomStayData, markerGlobalBookingInfo, markerRoomstayQuery, marker, markerOfExtra (Offer_ConfirmHotelOffer)
- SalesReports_DisplayQueryReport (can be an empty request)
- fopReference, authorisationSupplementaryData (FOP_CreateFormOfPayment)
- fopReference, authorisationSupplementaryData, dummy (FOP_CreateFormOfPayment)
Author: Dieter Devlieghere <dermikagh@gmail.com>
-->
<xsl:template
match="node()[descendant-or-self::*[local-name(.) = 'Security_SignOut'] or descendant-or-self::*[local-name(.) = 'marker1'] or descendant-or-self::*[local-name(.) = 'dumbo'] or descendant-or-self::*[local-name(.) = 'boardOffPoints'] or descendant-or-self::*[local-name(.) = 'originDestination'] or descendant-or-self::*[local-name(.) = 'markerRoomStayData'] or descendant-or-self::*[local-name(.) = 'markerGlobalBookingInfo'] or descendant-or-self::*[local-name(.) = 'markerRoomstayQuery'] or descendant-or-self::*[local-name(.) = 'marker'] or descendant-or-self::*[local-name(.) = 'markerOfExtra'] or descendant-or-self::*[local-name(.) = 'SalesReports_DisplayQueryReport'] or descendant-or-self::*[local-name(.) = 'fopReference'] or descendant-or-self::*[local-name(.) = 'authorisationSupplementaryData'] or descendant-or-self::*[@*] or descendant-or-self::*[string-length(normalize-space(.)) &gt; 0]]">
match="node()[descendant-or-self::*[local-name(.) = 'Security_SignOut'] or descendant-or-self::*[local-name(.) = 'marker1'] or descendant-or-self::*[local-name(.) = 'dumbo'] or descendant-or-self::*[local-name(.) = 'boardOffPoints'] or descendant-or-self::*[local-name(.) = 'originDestination'] or descendant-or-self::*[local-name(.) = 'markerRoomStayData'] or descendant-or-self::*[local-name(.) = 'markerGlobalBookingInfo'] or descendant-or-self::*[local-name(.) = 'markerRoomstayQuery'] or descendant-or-self::*[local-name(.) = 'marker'] or descendant-or-self::*[local-name(.) = 'markerOfExtra'] or descendant-or-self::*[local-name(.) = 'SalesReports_DisplayQueryReport'] or descendant-or-self::*[local-name(.) = 'fopReference'] or descendant-or-self::*[local-name(.) = 'authorisationSupplementaryData'] or descendant-or-self::*[local-name(.) = 'dummy'] or descendant-or-self::*[@*] or descendant-or-self::*[string-length(normalize-space(.)) &gt; 0]]">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="node()"/>
Expand Down

0 comments on commit 2fc229f

Please sign in to comment.