<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" omit-xml-declaration="yes"/>
<xsl:template name="DecodeDate">
<xsl:param name="DateUTC"/>
<xsl:choose>
<xsl:when test="$DateUTC != '' ">
<xsl:value-of select="substring($DateUTC , 9 ,2)"/>/<xsl:value-of select="substring($DateUTC , 6 ,2) "/>/<xsl:value-of select="substring($DateUTC , 1 ,4) "/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$DateUTC" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="FormatCurrency">
<xsl:param name="Impo"/>
<xsl:value-of select="translate(format-number($Impo, '##.00'),'.',',')"/>
</xsl:template>
<xsl:template match="/">
<html>
<body>
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td>
<img alt="" width="39%" src="http://NEW_BN.jpg"/>
</td>
</tr>
<tr>
<td>
<br></br>
<br></br>
<br></br>
<table cellspacg="0" cellpadding="2" width="80%" border="0" align="center">
<tr>
<td class="testo">
<font size="2"><b>
<xsl:value-of select="Entities/Hotel/Name/.">
</xsl:value-of>
</b>
<br/>
<xsl:value-of select="Entities/Hotel/Address/.">
</xsl:value-of>
<br/>
<xsl:value-of select="Entities/HotelAccommodation/City/.">
</xsl:value-of>
<br/>
Tel.
<xsl:value-of select="Entities/Hotel/Telephone/.">
</xsl:value-of>
</font>
</td>
<td class="testo" valign="top">
<font size="2">
<xsl:value-of select="Entities/Account/AccountNumber/.">
</xsl:value-of>
</font>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<br/>
<br/>
<font size="4">
<b>
VOUCHER HOTEL <xsl:value-of select="Entities/HotelAccommodation/VoucherNumber/.">
</xsl:value-of> DATE <xsl:value-of select="Entities/HotelAccommodation/VoucherDate/.">
</xsl:value-of>
</b>
</font>
<br/>
<br/>
</td>
</tr>
<tr>
<td colspan="2">
<font size="2">
Rif.<xsl:text> </xsl:text>
<xsl:value-of select="Entities/Hotel/Reference/.">
</xsl:value-of>
</font>
</td>
</tr>
<tr>
<td colspan="2">
<font size="2">PLEASE PROVIDE IN EXCHANGE OF THIS VOUCHER TO:</font>
</td>
</tr>
<tr>
<td colspan="2" align="left">
<font size="2"> <b>
<xsl:value-of select="Entities/Contact/FullName/.">
</xsl:value-of></b>
<xsl:text> </xsl:text><xsl:text> </xsl:text><xsl:text> </xsl:text>
<xsl:text> </xsl:text><xsl:text> </xsl:text><xsl:text> </xsl:text>x N.1 Pax
</font>
</td>
</tr>
<tr>
<td colspan="2" align="left">
<table>
<tr>
<td valign="top">
<font size="2">
N.<xsl:text> </xsl:text>1
</font>
</td>
<td>
<font size="2">
<xsl:value-of select="Entities/Room/Description/."> </xsl:value-of>
<br></br>
<xsl:value-of select="Entities/HotelAccommodation/TreatmentType/."> </xsl:value-of>
<br></br>
In<xsl:text> </xsl:text>
<xsl:call-template name="DecodeDate">
<xsl:with-param name="DateUTC" select="Entities/HotelAccommodation/DateStart/."/>
</xsl:call-template>
Out<xsl:text> </xsl:text>
<xsl:call-template name="DecodeDate">
<xsl:with-param name="DateUTC" select="Entities/HotelAccommodation/DateEnd/."/>
</xsl:call-template>
<br></br>
<br></br>
<br></br>
CANCELLAZIONE SENZA PENALE ENTRO IL GIA IN PENALE
<br></br>
<br></br>
Intestare fattura e/o ricevuta fiscale per il pagamento ad :<br></br>
Uvet American Express Corporate Travel
VIA A. BINDA,21 20143 MILANO
<br></br>
<xsl:variable name="totalAmount" select="sum(/Entities/HotelAccommodationRate/BaseAmount/.)"/>
EUR <xsl:text> </xsl:text><xsl:text> </xsl:text>
<xsl:call-template name="FormatCurrency">
<xsl:with-param name="Impo" select="$totalAmount"/>
</xsl:call-template>
</font>
<br></br>
<br></br>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2">
<font size="2">
In caso di necessità contattare MARIANGEL DI FIDIO<br></br><br></br>
Tel. +39 0281838835<br></br>
Fax +39 0281838216<br></br>
E-mail offline@uvetamex.com
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>