xml样式表xslt

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
 <xsl:template match="/">
  <xsl:call-template name="AdditionInfos"/>
 </xsl:template>
 
 <xsl:template name="AdditionInfos">
  <xsl:if test="count(BookingInfo2/AdditionInfo/Addition)>0">
   
   <table width="760" border="1"  borderColor="#F2EAF5"  align="center" cellpadding="4" cellspacing="0" >
    <tr >
     <td align="center" width="264">
      <strong><font face="宋体" size="2" >名称</font></strong>
     </td>
     <td width="98" align="center" >
      <strong><font face="宋体" size="2">计量单位</font></strong>
     </td>
     <td align="center"  width="144">
      <strong><font face="宋体" size="2">单价</font></strong>
     </td>
     <td align="center"  width="214">
      <strong><font face="宋体" size="2">数量</font></strong>
     </td>
    </tr>
    <xsl:for-each select="BookingInfo2/AdditionInfo/Addition">
     <tr>
      <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
       <xsl:value-of disable-output-escaping="yes" select="AdditionName"/></font>
      </td>
      <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
       <xsl:value-of disable-output-escaping="yes" select="Unit "/></font>
      </td>
      <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
       <xsl:value-of disable-output-escaping="yes" select="AdditionSalePrice"/></font>
      </td>
      <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
       <xsl:value-of disable-output-escaping="yes" select="AdditionAmount"/></font>
      </td>
     </tr>
    </xsl:for-each>
   </table>
  </xsl:if>
 </xsl:template>
 
 
</xsl:stylesheet>

 

 

 

 

 

 

 

 

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
 <xsl:template match="/">
  <xsl:call-template name="JourneyInfo"/>
 </xsl:template>
 
 <xsl:template name="JourneyInfo">
  <table width="760" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#F2EAF5">
   <tr>
    <td width="39" bgcolor="#FFFFFF">
     <strong><font face="宋体" size="2">行程</font></strong>
    </td>
    <td width="49" align="center" bgcolor="#FFFFFF">
     <strong><font face="宋体" size="2">出发</font></strong>
    </td>
    <td width="79" align="center" bgcolor="#FFFFFF">
     <strong><font face="宋体" size="2">出发日期</font></strong>
    </td>
    <td width="72" align="center" bgcolor="#FFFFFF">
     <strong><font face="宋体" size="2">到达</font></strong>
    </td>
    <td width="98" align="center" bgcolor="#FFFFFF">
     <strong><font face="宋体" size="2">交通</font></strong>
    </td>
    <td width="143" align="center" bgcolor="#FFFFFF">
     <strong><font face="宋体" size="2">入住酒店</font></strong>
    </td>
    <td width="216" align="center" bgcolor="#FFFFFF">
     <strong><font face="宋体" size="2">住宿时间</font></strong>
    </td>
   </tr>
   <xsl:for-each select="BookingInfo2/JourneyInfo/journey">
    <tr>
     <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
      <xsl:value-of select="position()"/>
     </font></td>
     <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
      <xsl:value-of disable-output-escaping="yes" select="HotelInfo/DepCity"/>
     </font></td>
     <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
      <xsl:value-of disable-output-escaping="yes" select="HotelInfo/StartDate"/>
     </font></td>
     <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
      <xsl:value-of disable-output-escaping="yes" select="HotelInfo/ArrCity"/>
     </font></td>
     <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
      <xsl:for-each select="VehicleInfo/Vehicle">
       <xsl:if test="string-length(VehicleTypeName)>0">
        <xsl:value-of disable-output-escaping="yes" select="VehicleTypeName"/>:<xsl:value-of disable-output-escaping="yes" select="ATCName"/>
        <xsl:if test="position()!=last()">
         <br/>
        </xsl:if>
       </xsl:if>
      </xsl:for-each>
     </font></td>
     <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
      <xsl:value-of select="HotelInfo/HotelName"/>
     </font></td>
     <td align="center" bgcolor="#FFFFFF"><font face="宋体" size="2">
      <xsl:value-of select="HotelInfo/CheckInNights"/>晚(<xsl:value-of select="HotelInfo/CheckInDate"/>至<xsl:value-of select="HotelInfo/CheckOutDate"/>)     </font></td>
    </tr>
   </xsl:for-each>
  </table>
 </xsl:template>

 
 
</xsl:stylesheet>

 

 

 

 

 

 

 

 

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <xsl:template match="Root">
  <!--填写预定单-->
  <xsl:call-template name="WriteBookInfos"/>
  <!--产品名称-->
  <xsl:call-template name="ProductNameInfos"/>
  <!--行程-->
  <xsl:call-template name="JourneyInfo"/>
  <!--附加产品-->
  <xsl:call-template name="AdditionInfos"/>
  <!--税款情况-->
  <xsl:call-template name="TaxInfos"/>
  <!--乘客信息-->
  <xsl:call-template name="PassengerInfos"/>
  <!--联系人信息-->
  <xsl:call-template name="LinkManInfos"/>
  <!--特殊要求-->
  <xsl:call-template name="CorpsInfos"/>
  <!--酒店信息-->
  <xsl:call-template name="HotelInfos"/>
  <!--航班信息-->
  <xsl:call-template name="FlightInfos"/>
  <!--列车信息-->
  <xsl:call-template name="TrainInfos"/>
  <!--油轮信息-->
  <xsl:call-template name="CruiseInfos"/>
  <!--实收金额-->
  <xsl:call-template name="FactFeeInfos"/>
  <!--预定说明-->
  <xsl:call-template name="BookExplain"/>
 </xsl:template>
 <!-- 行程开始-->
 <xsl:template name="JourneyInfo">
  <table width="760" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="thistle">
   <tr>
    <td width="39" bgcolor="#FFFFFF">
     <strong>行程</strong>
    </td>
    <td width="49" align="center" bgcolor="#FFFFFF">
     <strong>出发</strong>
    </td>
    <td width="79" align="center" bgcolor="#FFFFFF">
     <strong>出发日期</strong>
    </td>
    <td width="72" align="center" bgcolor="#FFFFFF">
     <strong>到达</strong>
    </td>
    <td width="98" align="center" bgcolor="#FFFFFF">
     <strong>交通</strong>
    </td>
    <td width="143" align="center" bgcolor="#FFFFFF">
     <strong>入住酒店</strong>
    </td>
    <td width="216" align="center" bgcolor="#FFFFFF">
     <strong>住宿时间</strong>
    </td>
   </tr>
   <xsl:for-each select="BookingInfo2/JourneyInfo/journey">
    <tr>
     <td align="center" bgcolor="#FFFFFF">
      <xsl:value-of select="position()"/>
     </td>
     <td align="center" bgcolor="#FFFFFF">
      <xsl:value-of disable-output-escaping="yes" select="HotelInfo/DepCity"/>
     </td>
     <td align="center" bgcolor="#FFFFFF">
      <xsl:value-of disable-output-escaping="yes" select="HotelInfo/StartDate"/>
     </td>
     <td align="center" bgcolor="#FFFFFF">
      <xsl:value-of disable-output-escaping="yes" select="HotelInfo/ArrCity"/>
     </td>
     <td align="center" bgcolor="#FFFFFF">
      <xsl:for-each select="VehicleInfo/Vehicle">
       <xsl:if test="string-length(VehicleTypeName)>0">
        <xsl:value-of disable-output-escaping="yes" select="VehicleTypeName"/>:<xsl:value-of disable-output-escaping="yes" select="ATCName"/>
        <xsl:if test="position()!=last()">
         <br/>
        </xsl:if>
       </xsl:if>
      </xsl:for-each>
     </td>
     <td align="center" bgcolor="#FFFFFF">
      <xsl:value-of select="HotelInfo/HotelName"/>
     </td>
     <td align="center" bgcolor="#FFFFFF">
      <xsl:value-of select="HotelInfo/CheckInNights"/>晚(<xsl:value-of select="HotelInfo/CheckInDate"/>至<xsl:value-of select="HotelInfo/CheckOutDate"/>)     </td>
    </tr>
   </xsl:for-each>
  </table>
 </xsl:template>
 <!-- 行程结束-->
 <!--附加产品开始-->
 <xsl:template name="AdditionInfos">
  <xsl:if test="count(BookingInfo2/AdditionInfo/Addition)>0">
   <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
     <td width="1" valign="top" bgcolor="#CCADCD">
      <img src="images/spacer.gif" width="1" height="1"/>
     </td>
     <td valign="top">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="thistle">
       <tr>
        <td>
         <img src="images/spacer.gif" width="10" height="1"/>
         <strong>附加产品</strong>
        </td>
       </tr>
       <tr>
        <td width="1" valign="top" bgcolor="#CCADCD">
         <img src="images/spacer.gif" width="1" height="1"/>
        </td>
       </tr>
      </table>
     </td>
    </tr>
   </table>
   <table width="760" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#CCADCD">
    <tr>
     <td align="center" bgcolor="#FFFFFF">
      <strong>名称</strong>
     </td>
     <td width="74" align="center" bgcolor="#FFFFFF">
      <strong>计量单位</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF">
      <strong>单价</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF">
      <strong>数量</strong>
     </td>
    </tr>
    <xsl:for-each select="BookingInfo2/AdditionInfo/Addition">
     <tr>
      <td align="center" bgcolor="#FFFFFF">
       <xsl:value-of disable-output-escaping="yes" select="AdditionName"/>
      </td>
      <td align="center" bgcolor="#FFFFFF">
       <xsl:value-of disable-output-escaping="yes" select="Unit "/>
      </td>
      <td align="center" bgcolor="#FFFFFF">
       <xsl:value-of disable-output-escaping="yes" select="AdditionSalePrice"/>
      </td>
      <td align="center" bgcolor="#FFFFFF">
       <xsl:value-of disable-output-escaping="yes" select="AdditionAmount"/>
      </td>
     </tr>
    </xsl:for-each>
   </table>
  </xsl:if>
 </xsl:template>
 <!--附加产品结束-->
 <!--旅客信息开始-->
 <xsl:template name="PassengerInfos">
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCADCD">
   <tr>
    <td width="1" valign="top" bgcolor="#CCADCD">
     <img src="images/spacer.gif" width="1" height="1"/>
    </td>
    <td valign="top">
     <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
       <td>
        <img src="images/spacer.gif" width="10" height="1"/>
        <strong>旅客信息</strong>
       </td>
      </tr>
     </table>
    </td>
    <td width="1" valign="top" bgcolor="#CCADCD">
     <img src="images/spacer.gif" width="1" height="1"/>
    </td>
   </tr>
  </table>
  <table width="760" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCADCD">
   <tr>
    <td width="100" bgcolor="#FFFFFF">
     <strong>姓名</strong>
    </td>
    <td width="40" align="center" bgcolor="#FFFFFF">
     <strong>类别</strong>
    </td>
    <td width="100" align="center" bgcolor="#FFFFFF">
     <strong>证件类别</strong>
    </td>
    <td align="center" bgcolor="#FFFFFF">
     <strong>证件号码</strong>
    </td>
    <td width="80" align="center" bgcolor="#FFFFFF">
     <strong>联系电话</strong>
    </td>
    <td width="80" align="center" bgcolor="#FFFFFF">
     <strong>国籍</strong>
    </td>
    <td width="80" align="center" bgcolor="#FFFFFF">
     <strong>出生日期</strong>
    </td>
    <td width="50" align="center" bgcolor="#FFFFFF">
     <strong>性别</strong>
    </td>
   </tr>
   <xsl:for-each select="BookingInfo3/PassengerInfo/Passenger">
    <tr>
     <td bgcolor="#FFFFFF" class="bt04">
      <xsl:value-of disable-output-escaping="yes" select="PassengerName"/>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <xsl:value-of disable-output-escaping="yes" select="PassengerType"/>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <xsl:value-of disable-output-escaping="yes" select="CertificationType"/>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <xsl:value-of disable-output-escaping="yes" select="CertificationNO"/>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <xsl:value-of disable-output-escaping="yes" select="PhoneNO"/>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <xsl:value-of disable-output-escaping="yes" select="Nationality"/>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <xsl:value-of disable-output-escaping="yes" select="Birthday"/>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <xsl:value-of disable-output-escaping="yes" select="Gender"/>
     </td>
    </tr>
   </xsl:for-each>
  </table>
 </xsl:template>
 <!--旅客信息结束-->
 <!--酒店信息开始-->
 <xsl:template name="HotelInfos">
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
    <td width="1" valign="top" bgcolor="#CCADCD">
     <img src="images/spacer.gif" width="1" height="1"/>
    </td>
    <td valign="top">
     <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCADCD">
      <tr>
       <td>
        <img src="images/spacer.gif" width="10" height="1"/>
        <strong>酒店信息</strong>
       </td>
      </tr>
     </table>
    </td>
    <td width="1" bgcolor="#CCADCD">
     <img src="images/spacer.gif" width="1" height="1"/>
    </td>
   </tr>
  </table>
  <table width="760" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCADCD">
   <tr>
    <td width="265" bgcolor="#FFFFFF">
     <strong>入住酒店</strong>
    </td>
    <td width="480" bgcolor="#FFFFFF">
     <strong>住宿时间</strong>
    </td>
   </tr>
   <xsl:for-each select="BookingInfo2/JourneyInfo/journey/HotelInfo">
    <tr>
     <td bgcolor="#FFFFFF">
      <xsl:value-of select="HotelName"/>
     </td>
     <td bgcolor="#FFFFFF">
      <xsl:value-of select="CheckInNights"/>晚(<xsl:value-of select="CheckInDate"/>至<xsl:value-of select="CheckOutDate"/>)     </td>
    </tr>
   </xsl:for-each>
  </table>
 </xsl:template>
 <!--酒店信息结束-->
 <!--列车信息开始-->
 <xsl:template name="TrainInfos">
  <xsl:if test="count(BookingInfo2/JourneyInfo/journey/VehicleInfo/Vehicle[VehicleTypeID='2'])>0">
   <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
     <td width="1" valign="top" bgcolor="#CCADCD">
      <img src="images/spacer.gif" width="1" height="1"/>
     </td>
     <td valign="top">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCADCD">
       <tr>
        <td>
         <img src="images/spacer.gif" width="10" height="1"/>
         <strong>列车信息</strong>
        </td>
       </tr>
      </table>
     </td>
     <td width="1" valign="top" bgcolor="#CCADCD">
      <img src="images/spacer.gif" width="1" height="1"/>
     </td>
    </tr>
   </table>
   <table width="760" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCADCD">
    <tr>
     <td width="147" bgcolor="#FFFFFF" class="bt04">
      <strong>车次</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>出发时间</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>出发城市</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>到达城市</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>座位类型</strong>
     </td>
    </tr>
    <xsl:for-each select="BookingInfo2/JourneyInfo/journey/VehicleInfo/Vehicle[VehicleTypeID='2']">
     <tr>
      <td width="147" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="VehicleName"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="DepTime"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="DepPlace"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="ArrPlace"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="CabinType"/>
      </td>
     </tr>
    </xsl:for-each>
   </table>
  </xsl:if>
 </xsl:template>
 <!--列车信息结束-->
 <!-- 航班信息开始-->
 <xsl:template name="FlightInfos">
  <xsl:if test="count(BookingInfo2/JourneyInfo/journey/VehicleInfo/Vehicle[VehicleTypeID='1'])>0">
   <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
     <td width="1" valign="top" bgcolor="#CCADCD">
      <img src="images/spacer.gif" width="1" height="1"/>
     </td>
     <td valign="top">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCADCD">
       <tr>
        <td class="bt03">
         <img src="images/spacer.gif" width="10" height="1"/>
         <strong>航班信息</strong>
        </td>
       </tr>
      </table>
     </td>
     <td width="1" valign="top" bgcolor="#CCADCD">
      <img src="images/spacer.gif" width="1" height="1"/>
     </td>
    </tr>
   </table>
   <table width="760" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCADCD">
    <tr>
     <td width="154" bgcolor="#FFFFFF" class="bt04">
      <strong>航空公司</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>航班号</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>起飞机场</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>到达机场</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>起飞时间</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>到达时间</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>机型</strong>
     </td>
    </tr>
    <xsl:for-each select="BookingInfo2/JourneyInfo/journey/VehicleInfo/Vehicle[VehicleTypeID='1']">
     <tr>
      <td width="154" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="VehicleName"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="ATCName"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="DepPlace"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="ArrPlace"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="DepTime"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="ArrTime"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="CabinType"/>
      </td>
     </tr>
    </xsl:for-each>
   </table>
  </xsl:if>
 </xsl:template>
 <!--航班信息结束-->
 <!-- 油轮信息开始-->
 <xsl:template name="CruiseInfos">
  <xsl:if test="count(BookingInfo2/JourneyInfo/journey/VehicleInfo/Vehicle[VehicleTypeID='3'])>0">
   <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
     <td width="1" valign="top" bgcolor="#CCADCD">
      <img src="images/spacer.gif" width="1" height="1"/>
     </td>
     <td valign="top">
      <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCADCD">
       <tr>
        <td class="bt03">
         <img src="images/spacer.gif" width="10" height="1"/>
         <strong>油轮信息</strong>
        </td>
       </tr>
      </table>
     </td>
     <td width="1" valign="top" bgcolor="#CCADCD">
      <img src="images/spacer.gif" width="1" height="1"/>
     </td>
    </tr>
   </table>
   <table width="760" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCADCD">
    <tr>
     <td width="154" bgcolor="#FFFFFF" class="bt04">
      <strong>航线名称</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>油轮名称</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>出发城市</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>到达城市</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>出发时间</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>到达时间</strong>
     </td>
     <td align="center" bgcolor="#FFFFFF" class="bt04">
      <strong>舱型</strong>
     </td>
    </tr>
    <xsl:for-each select="BookingInfo2/JourneyInfo/journey/VehicleInfo/Vehicle[VehicleTypeID='3']">
     <tr>
      <td width="154" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="VehicleName"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="ATCName"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="DepPlace"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="ArrPlace"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="DepTime"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="ArrTime"/>
      </td>
      <td align="center" bgcolor="#FFFFFF" class="bt04">
       <xsl:value-of disable-output-escaping="yes" select="CabinType"/>
      </td>
     </tr>
    </xsl:for-each>
   </table>
  </xsl:if>
 </xsl:template>
 <!--油轮信息结束-->
 <!--填写预定单-->
 <xsl:template name="WriteBookInfos">
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
    <td width="25" height="25" align="center">
     <img src="images/bit_14.jpg" width="14" height="14"/>
    </td>
    <td class="nr05">
     <strong>
      <font color="#FF0000">填写预订单</font>--
     <xsl:value-of disable-output-escaping="yes" select=" ProductInfos/BaseInfos/ProductName"/>
     </strong>
    </td>
   </tr>
   <tr>
    <td height="20" align="center">
     <img src="images/spacer.gif" width="1" height="1"/>
    </td>
    <td>
     <img src="images/spacer.gif" width="1" height="1"/>
    </td>
   </tr>
  </table>
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
   <tr>
    <td height="1" bgcolor="#CCADCD"/>
   </tr>
  </table>
 </xsl:template>
 <!--产品名称-->
 <xsl:template name="ProductNameInfos">
  <table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCADCD">
   <tr>
    <td width="1" valign="top" bgcolor="#CCADCD">
     <img src="images/spacer.gif" width="10" height="1"/>
    </td>
    <td valign="top">
     <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
       <td>
        <strong>
         <xsl:value-of select="ProductInfos/BaseInfos/ProductName"/>
        </strong>
       </td>
      </tr>
     </table>
    </td>
    <td width="1" valign="top" bgcolor="#CCADCD">
     <img src="images/spacer.gif" width="1" height="1"/>
    </td>
   </tr>
  </table>
  <br/>
 </xsl:template>
 <!--税款情况-->
 <xsl:template name="TaxInfos">
  <table width="760" border="0" align="center" cellpadding="5" cellspacing="0">
   <tr>
    <td height="25" align="right" bgcolor="#FDF8FE">
    出行人数:共<xsl:value-of select="number(ProductInfos/BaseInfos/ChiNum)+number(ProductInfos/BaseInfos/AduNum)"/>人(成人:<xsl:value-of select="ProductInfos/BaseInfos/AduNum"/>)     <strong>
      <font color="#CA0000"> 总价:<xsl:value-of select="BookingInfo2/MainInfo/TotalSalePrice"/> RMB(含税)</font>
     </strong>
    </td>
   </tr>
  </table>
 </xsl:template>
 <!--联系人信息-->
 <xsl:template name="LinkManInfos">
  <table width="760" align="center" cellpadding="0" cellspacing="0" border="0">
   <tr>
    <td>
     <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCADCD">
      <tr>
       <td class="bt03">
        <img src="images/spacer.gif" width="10" height="1"/>
        <strong>联系人信息</strong>
       </td>
      </tr>
     </table>
     <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCADCD">
     <tr>
      <td>
     <table width="100%" border="0" cellpadding="4" cellspacing="0">
      <tr bgcolor="#FFFFFF">
       <td width="120" align="left" bgcolor="#FBF3FF">联系人姓名:</td>
       <td width="250" bgcolor="#FFFFFF">
        <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/ContactName"/>
       </td>
       <td width="120" bgcolor="#FBF3FF">传真:</td>
       <td bgcolor="#FFFFFF">
        <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/FaxNO"/>
       </td>
      </tr>
      <tr>
       <td align="left" bgcolor="#FBF3FF">手机号码:</td>
       <td bgcolor="#FFFFFF">
        <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/Mobile"/>
       </td>
       <td bgcolor="#FBF3FF">电子邮件:</td>
       <td bgcolor="#FFFFFF">
        <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/Email"/>
       </td>
      </tr>
      <tr bgcolor="#FFFFFF">
       <td align="left" bgcolor="#FBF3FF">电话:</td>
       <td bgcolor="#FFFFFF">
        <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/Telephone"/>
       </td>
       <td bgcolor="#FBF3FF">选择联系方式:</td>
       <td bgcolor="#FFFFFF">
        <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/ContactType"/>
       </td>
      </tr>
     </table>
    </td>
   </tr>
   <tr>
    <td>     <xsl:call-template name="InvoiceInfos"></xsl:call-template>
</td>
   </tr>
  </table>
  </td>
 </tr>
 </table>
 </xsl:template>
 <!--发票信息-->
 <xsl:template name="InvoiceInfos">
  <table width="100%" border="0" cellpadding="4" cellspacing="0">
   <tr bgcolor="#FFFFFF">
    <td width="120"  align="left" bgcolor="#FBF3FF">送票方式:</td>
    <td width="628" bgcolor="#FFFFFF">
     <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/DeliveryType"/>
    </td>
   </tr>
   <tr bgcolor="#FFFFFF">
    <td width="120"  align="left" bgcolor="#FBF3FF">送票城市:</td>
    <td width="628" bgcolor="#FFFFFF">
     <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/DeliveryCity"/>
    </td>
   </tr>
   <tr bgcolor="#FFFFFF">
    <td width="120" align="left" bgcolor="#FBF3FF">送票地址:</td>
    <td width="628" bgcolor="#FFFFFF">
     <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/DeliveryAddress"/>
    </td>
   </tr>
   <tr bgcolor="#FFFFFF">
    <td align="left" bgcolor="#FBF3FF">发票抬头:</td>
    <td width="628" bgcolor="#FFFFFF">
     <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/InvoiceTitle"/>
    </td>
   </tr>
   <tr bgcolor="#FFFFFF">
    <td align="left" bgcolor="#FBF3FF">发票明细:</td>
    <td width="628" bgcolor="#FFFFFF">
     <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/InvoiceType"/>
    </td>
   </tr>
   <tr>
    <td colspan="2" class="bt03">
     <img src="images/spacer.gif" width="10" height="1"/>
     <strong>支付方式</strong>
    </td>
   </tr>
   <tr>
    <td  colspan="2" bgcolor="#FFFFFF">
     <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/PaymentType"/>
    </td>
   </tr>
  </table>
 </xsl:template>
 <!--特殊要求-->
 <xsl:template name="CorpsInfos">
  <table width="760" border="0" align="center" cellspacing="1" class="box01" bgcolor="#CCADCD">
   <tr>
    <td class="bt03">
     <img src="images/spacer.gif" width="10" height="1"/>
     <strong>特殊要求</strong>
    </td>
   </tr>
   <tr>
    <td height="20" bgcolor="#FFFFFF" class="bt04">
     <xsl:value-of disable-output-escaping="yes" select="BookingInfo3/MainInfo/SpecialRequest"/>
    </td>
   </tr>
  </table>
 </xsl:template>
 <!--实收金额-->
 <xsl:template name="FactFeeInfos">
  <table width="760" border="0" align="center" cellpadding="4" cellspacing="0">
   <tr>
    <td class="nr01">
     <strong>  实收金额:<font color="#FF0000" size="3">
       <xsl:value-of select="BookingInfo2/MainInfo/TotalSalePrice"/> 元</font>
     </strong>
    </td>
   </tr>
   <tr>
    <td class="nr01"/>
   </tr>
  </table>
 </xsl:template>
 <!--预定说明-->
 <xsl:template name="BookExplain">
  <table width="760" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCADCD">
   <tr>
    <td bgcolor="#FFFFFF"> 本产品为即时确认产品当您成功“提交”后,系统就会自动确认您的预订。     <br/>
     &#8226;若您选择信用卡支付,预订系统将会直接扣款完成交易。     <br/>
     &#8226;若您选择现金支付,工作人员将在您成功提交订单一个工作小时内与您联系付款事宜。</td>
   </tr>
  </table>
 </xsl:template>
</xsl:stylesheet>

 

 

 

 


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值