<?xml version="1.0"  encoding="UTF-8"?>
<!-- DWXMLSource="datos.xml" -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <xsl:output method="html" encoding="iso-8859-1"/>
  <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>Untitled Document</title>
    <style type="text/css">
	a:hover{text-decoration:none;}
	a:link{text-decoration:none; }
	a:visited{text-decoration:none; }
	a:active{text-decoration:none; }
</style>
    </head>
    <body marginheight="0" marginwidth="0">
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr>
        <td><!-- MENÚ CABECERA -->
          <table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
            <tr>
              <td align="right" height="20"><table width="100%" height="124" border="0" cellpadding="0" cellspacing="0" background="./images/img_cabecera_individual.jpg">
                  <tr>
                    <td width="100%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="27" height="65"></td>
                          <td></td>
                        </tr>
                        <tr>
                          <td></td>
                          <td align="left" valign="top" class="textos_img_cabecera"><xsl:value-of select="Plantilla/general/infoCasa/nombre/@texto"/> <xsl:value-of select="Plantilla/general/tituloWeb/@titulo"/></td>
                        </tr>
                        <tr>
                          <td height="7"></td>
                          <td align="left" valign="top"  height="1"></td>
                        </tr>
                        <tr>
                          <td></td>
                          <td align="left" valign="top" class="textos_img_cabecera"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="43" align="left" valign="bottom" class="texto_base_cab"><a class="texto_base_cab" href="javascript:outputgroup('caracte.xsl');">Inicio</a></td>
								<xsl:if test="Plantilla/general/scr/@valor=1"><td width="15" align="left" valign="bottom" class="texto_base_cab"><a class="texto_base_cab" href="{Plantilla/general/scr}">Disponibilidad</a></td></xsl:if>
								<xsl:if test="Plantilla/general/scr/@valor=0"><td width="15" align="left" valign="bottom" class="texto_base_cab">Disponibilidad</td></xsl:if>								

                                <td width="40" align="left" valign="bottom" class="texto_base_cab"><a class="texto_base_cab" href="mailto:{Plantilla/general/infoCasa/info[4]/@texto}">Contacto</a></td>
                                <td width="380"></td>
                              </tr>
                            </table></td>
                        </tr>
                      </table></td>
                    <td width="260" align="left" valign="top"></td>
                  </tr>
                </table></td>
            </tr>
          </table>
          <!--espacio-->
          <table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
            <tr>
              <td height="17"></td>
            </tr>
          </table>
          <!--espacio-->
          <!-- CONTENIDO -->
          <table align="center" border="0" cellpadding="0" cellspacing="0" width="760">
            <tr>
              <!-- MENÚ -->
              <td width="160" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td><table width="145" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td align="left" valign="top" id="primera_opcion" height="102"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/menu_fondo.jpg">
                                          <tr>
                                            <td align="left" class="texto_mnu" id="opciones" height="53"></td>
                                          </tr>
                                          <tr>
                                            <td align="left" class="texto_mnu"  height="15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="30"></td>
                                                  <td align="left" valign="middle" class="texto_mnu"><a class="texto_mnu" href="javascript:outputgroup('caracte.xsl');">Características</a> </td>
                                                </tr>
                                              </table></td>
                                          </tr>
                                          <tr>
                                            <td height="4"></td>
                                          </tr>
											<xsl:if test="Plantilla/general/scr/@valor=1">
											<tr>
											  <td align="left" class="texto_mnu" id="opciones" height="15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
												  <tr>
													<td width="30"></td>
													<td align="left" valign="middle" class="texto_mnu">
														<a class="texto_mnu" href="{Plantilla/general/scr}">Reservar</a>
													  </td>
												  </tr>
												</table></td>
											</tr>
											</xsl:if>
                                          <tr>
                                            <td height="4"></td>
                                          </tr>
                                          <tr>
                                            <td align="left" class="texto_mnu" id="opciones" height="15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="30"></td>
                                                  <td align="left" valign="middle" class="texto_mnu"><a class="texto_mnu" href="javascript:outputgroup('entorno.xsl');">Entorno</a></td>
                                                </tr>
                                              </table></td>
                                          </tr>
                                          <tr>
                                            <td height="4"></td>
                                          </tr>
                                          <tr>
                                            <td align="left" class="texto_mnu" id="opciones" height="15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="30"></td>
                                                  <td align="left" valign="middle" class="texto_mnu"><a class="texto_mnu" href="javascript:outputgroup('localizacion.xsl');">Cómo llegar</a></td>
                                                </tr>
                                              </table></td>
                                          </tr>
                                          <tr>
                                            <td height="4"></td>
                                          </tr>
                                          <tr>
                                            <td align="left" class="texto_mnu" id="opciones" height="15"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                  <td width="30"></td>
                                                  <td align="left" valign="middle" class="texto_mnu"><a class="texto_mnu" href="javascript:outputgroup('fotos.xsl');">Fotografías</a> </td>
                                                </tr>
                                              </table></td>
                                          </tr>
                                          <tr>
                                            <td align="left" class="texto_mnu" id="opciones" height="10"></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr>
                                      <td id="fin_menu" height="3"/>
                                    </tr>
                                    <tr>
                                      <td height="14"/>
                                    </tr>
                                    <tr>
                                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="4"></td>
                                            <td><xsl:if test="Plantilla/general/fotos/foto[2]/@thumb">
                                                <table width="100%" height="105" border="0" cellpadding="0" cellspacing="0">
                                                  <tr>
                                                    <td align="left" valign="top"><table width="100%" height="105" border="0" cellpadding="0" cellspacing="3">
                                                        <tr>
                                                          <td align="center" valign="middle" style="border:1px solid #a5a4a4;" bgcolor="#5A7292">												 <xsl:if test="not(Plantilla/general/fotos/foto[2]/@ampliada)">
													 <img src="images/casa/{Plantilla/general/fotos/foto[2]/@thumb}" hspace="5" vspace="5"  border="0"/>
												</xsl:if>
												 <xsl:if test="Plantilla/general/fotos/foto[2]/@ampliada">
												 <a href="./images/casa/{Plantilla/general/fotos/foto[2]/@ampliada}" target="_blank">
												 <img src="images/casa/{Plantilla/general/fotos/foto[2]/@thumb}" hspace="5" vspace="5"  border="0"/>
												</a></xsl:if>
 </td>
                                                        </tr>
                                                      </table></td>
                                                  </tr>
                                                </table>
                                              </xsl:if></td>
                                            <td width="1"></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr>
                                      <td height="8"/>
                                    </tr>
                                    <tr>
                                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="4"></td>
                                            <td><xsl:if test="Plantilla/general/fotos/foto[3]/@thumb">
                                                <table width="100%" height="105" border="0" cellpadding="0" cellspacing="0">
                                                  <tr>
                                                    <td align="left" valign="top"><table width="100%" height="105" border="0" cellpadding="0" cellspacing="3">
                                                        <tr>
                                                          <td align="center" valign="middle" style="border:1px solid #a5a4a4;" bgcolor="#5A7292">												 <xsl:if test="not(Plantilla/general/fotos/foto[3]/@ampliada)">
													 <img src="images/casa/{Plantilla/general/fotos/foto[3]/@thumb}" hspace="5" vspace="5"  border="0"/>
												</xsl:if>
												 <xsl:if test="Plantilla/general/fotos/foto[3]/@ampliada">
												 <a href="./images/casa/{Plantilla/general/fotos/foto[3]/@ampliada}" target="_blank">
												 <img src="images/casa/{Plantilla/general/fotos/foto[3]/@thumb}" hspace="5" vspace="5"  border="0"/>
												</a></xsl:if>
 </td>
                                                        </tr>
                                                      </table></td>
                                                  </tr>
                                                </table>
                                              </xsl:if></td>
                                            <td width="1"></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr>
                                      <td height="8"/>
                                    </tr>
                                    <tr>
                                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="4"></td>
                                            <td><xsl:if test="Plantilla/general/fotos/foto[4]/@thumb">
                                                <table width="100%" height="105" border="0" cellpadding="0" cellspacing="0">
                                                  <tr>
                                                    <td align="left" valign="top"><table width="100%" height="105" border="0" cellpadding="0" cellspacing="3">
                                                        <tr>
                                                          <td align="center" valign="middle" style="border:1px solid #a5a4a4;" bgcolor="#5A7292">												 <xsl:if test="not(Plantilla/general/fotos/foto[4]/@ampliada)">
													 <img src="images/casa/{Plantilla/general/fotos/foto[4]/@thumb}" hspace="5" vspace="5"  border="0"/>
												</xsl:if>
												 <xsl:if test="Plantilla/general/fotos/foto[4]/@ampliada">
												 <a href="./images/casa/{Plantilla/general/fotos/foto[4]/@ampliada}" target="_blank">
												 <img src="images/casa/{Plantilla/general/fotos/foto[4]/@thumb}" hspace="5" vspace="5"  border="0"/>
												</a></xsl:if>
 </td>
                                                        </tr>
                                                      </table></td>
                                                  </tr>
                                                </table>
                                              </xsl:if></td>
                                            <td width="1"></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr>
                                      <td height="8"/>
                                    </tr>
                                  </table></td>
                              </tr>
                              <tr>
                                <td height="20"/>
                              </tr>
                              <tr>
                                <td></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr>
                          <td height="20"/>
                        </tr>
                        <tr>
                          <td></td>
                        </tr>
                      </table></td>
                    <td width="20"/>
                  </tr>
                </table></td>
              <!-- CONTENIDO -->
              <td width="612" align="right" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="13"></td>
                    <td><table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                          <td><table background="./images/fondo_madera_tit.jpg" width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
                              <tr>
                                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="10"></td>
                                      <td class="style1 style3_b" align="left">Fotografías</td>
                                    </tr>
                                  </table></td>
                              </tr>
                            </table></td>
                        </tr>
                        <tr>
                          <td height="10"></td>
                        </tr>
                        <tr>
                          <td align="right" width="612"><table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
                              <tr>
                                <td align="left" valign="top" width="400"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td><table bgcolor="#465169" border="0" cellpadding="0" cellspacing="0" width="400">
                                                <tr>
                                                  <td width="7"></td>
                                                  <td width="182"><span class="style1" style="">Imágenes del alojamiento</span><span class="texto_oscuro_3" style=""></span></td>
                                                  <td width="5"></td>
                                                </tr>
                                                <tr>
                                                  <td colspan="3" height="2"></td>
                                                </tr>
                                              </table></td>
                                          </tr>
                                          <tr>
                                            <td><table border="0" cellpadding="0" cellspacing="0" width="400">
                                                <tr>
                                                  <td colspan="7" height="10"></td>
                                                </tr>
												<tr>
                                                  <td width="10"></td>
                                                  <td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"> <xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[1]/@thumb">
									  				<xsl:if test="not(Plantilla/caracteristicas/habitaciones/completo/fotos/foto[1]/@ampliada)"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[1]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
													<xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[1]/@ampliada"> <a href="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[1]/@ampliada}" target="_blank"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[1]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
												  </xsl:if></td>
                                                  <td width="10"></td>
                                                  <td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"> <xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[2]/@thumb">
  									  				<xsl:if test="not(Plantilla/caracteristicas/habitaciones/completo/fotos/foto[2]/@ampliada)"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[2]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
													<xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[2]/@ampliada"> <a href="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[2]/@ampliada}" target="_blank"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[2]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
												  </xsl:if></td>
                                                  <td width="10"></td>
                                                  <td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"> <xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[3]/@thumb">
  									  				<xsl:if test="not(Plantilla/caracteristicas/habitaciones/completo/fotos/foto[3]/@ampliada)"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[3]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
													<xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[3]/@ampliada"> <a href="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[3]/@ampliada}" target="_blank"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[3]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
												  </xsl:if></td>
                                                  <td width="10"></td>
                                                </tr>
                                                <tr>
                                                  <td colspan="7" height="10"></td>
                                                </tr>
                                                <tr>
                                                  <td width="10"></td>
                                                  <td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"><xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[4]/@thumb">
  									  				<xsl:if test="not(Plantilla/caracteristicas/habitaciones/completo/fotos/foto[4]/@ampliada)"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[4]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
													<xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[4]/@ampliada"> <a href="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[4]/@ampliada}" target="_blank"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[4]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
												  </xsl:if></td>
                                                  <td width="10"></td>
                                                  <td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"><xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[5]/@thumb">
  									  				<xsl:if test="not(Plantilla/caracteristicas/habitaciones/completo/fotos/foto[5]/@ampliada)"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[5]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
													<xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[5]/@ampliada"> <a href="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[5]/@ampliada}" target="_blank"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[5]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
												  </xsl:if></td>
                                                  <td width="10"></td>
                                                  <td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"><xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[6]/@thumb">
  									  				<xsl:if test="not(Plantilla/caracteristicas/habitaciones/completo/fotos/foto[6]/@ampliada)"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[6]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
													<xsl:if test="Plantilla/caracteristicas/habitaciones/completo/fotos/foto[6]/@ampliada"> <a href="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[6]/@ampliada}" target="_blank"><img src="./images/casa/{Plantilla/caracteristicas/habitaciones/completo/fotos/foto[6]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
  												  </xsl:if></td>
                                                  <td width="10"></td>
												  </tr>
                                                <tr>
                                                  <td colspan="7" height="10"></td>
                                                </tr>
                                              </table></td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr>
                                      <!-- sacamos todas las habitaciones de la casa quitando si es el alijamiento compleo-->
                                      <td><xsl:for-each select="Plantilla/caracteristicas/habitaciones/*">
                                          <xsl:if test="name()!='completo'">
                                            <xsl:call-template name="habitacion"/>
                                            
                                          </xsl:if>
                                        </xsl:for-each></td>
                                    </tr>
                                  </table></td>
                                <td width="10"></td>
                                <td align="left" valign="top" bgcolor="#5A7292"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="10"></td>
                                      <td><table border="0" cellpadding="0" cellspacing="0">
                                          <tr>
                                            <td height="15"></td>
                                          </tr>
                                          <tr>
                                            <td class="texto_base" align="left"><b>Alojamiento</b></td>
                                          </tr>
                                          <xsl:for-each select="Plantilla/caracteristicas/habitaciones/*">
                                            <xsl:if test="name()='completo'">
                                              <xsl:call-template name="carac_comple"/>
                                              
                                            </xsl:if>
                                            <xsl:if test="name()!='completo'">
                                              <xsl:call-template name="carac_habita"/>
                                              
                                            </xsl:if>
                                          </xsl:for-each>
                                        </table></td>
                                    </tr>
                                  </table></td>
                              </tr>
                            </table></td>
                        </tr>
                      </table></td>
                  </tr>
                </table></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td></td>
      </tr>
      <tr>
        <td align="center"><img src="./images/img_pie.jpg" width="753" height="8" /></td>
      </tr>
      <tr>
        <td height="8"></td>
      </tr>
      <tr>
        <td align="center" class="texto_pie"><a href="http://www.ruralgest.com" target="_blank" class="texto_pie">Web realizada con RuralGest</a> - <a href="http://www.ruralgest.net" target="_blank" class="texto_pie">Sistema de disponibilidad y reservas de turismo rural</a> - Todos lo derechos reservados</td>
      </tr>
    </table>
    </body>
    </html>
  </xsl:template>
  <!--Componemos habitataciones-->
  <xsl:template name="habitacion">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table bgcolor="#465169" border="0" cellpadding="0" cellspacing="0" width="400">
            <tr>
              <td width="7"></td>
              <td width="182"><span class="style1" style="text-transform:capitalize"><xsl:value-of select="@clase"/>&#160;"<xsl:value-of select="@nombre"/>"</span></td>
              <td width="5"></td>
            </tr>
            <tr>
              <td colspan="3" height="2"></td>
            </tr>
          </table></td>
      </tr>
      <!-- fila de tres fotos-->
      <tr>
        <td><table border="0" cellpadding="0" cellspacing="0" width="400">
            <tr>
              <td colspan="7" height="10"></td>
            </tr>
			  <tr>
				<td width="10"></td>
				<td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"><xsl:if test="fotos/foto[1]/@thumb">
				<xsl:if test="not(fotos/foto[1]/@ampliada)"><img src="./images/casa/{fotos/foto[1]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
				<xsl:if test="fotos/foto[1]/@ampliada"> <a href="./images/casa/{fotos/foto[1]/@ampliada}" target="_blank"><img src="./images/casa/{fotos/foto[1]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
				</xsl:if></td>
				<td width="10"></td>
				<td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"><xsl:if test="fotos/foto[2]/@thumb">
				<xsl:if test="not(fotos/foto[2]/@ampliada)"><img src="./images/casa/{fotos/foto[2]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
				<xsl:if test="fotos/foto[2]/@ampliada"> <a href="./images/casa/{fotos/foto[2]/@ampliada}" target="_blank"><img src="./images/casa/{fotos/foto[2]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
				</xsl:if></td>
				<td width="10"></td>
				<td style="border: 1px solid #999999;" align="center" bgcolor="#5A7292" height="144" valign="middle" width="120"><xsl:if test="fotos/foto[3]/@thumb">
				<xsl:if test="not(fotos/foto[3]/@ampliada)"><img src="./images/casa/{fotos/foto[3]/@thumb}" hspace="5" vspace="5"  border="0"/></xsl:if>
				<xsl:if test="fotos/foto[3]/@ampliada"> <a href="./images/casa/{fotos/foto[3]/@ampliada}" target="_blank"><img src="./images/casa/{fotos/foto[3]/@thumb}" hspace="5" vspace="5"  border="0"/></a></xsl:if>				
				</xsl:if></td>
				<td width="10"></td>
			  </tr>
            <tr>
              <td colspan="7" height="10"></td>
            </tr>
          </table></td>
      </tr>
      <!-- fila de tres fotos-->
    </table>
  </xsl:template>
  <!--sacamnos las caractristicas del alojamiento completo-->
  <xsl:template name="carac_comple">
    <tr>
      <td class="texto_base"><b>Características</b></td>
    </tr>
    <tr>
      <td class="texto_base"><xsl:for-each select="cpropias/item">
          <xsl:value-of select="."/><br/>
        </xsl:for-each>
        <xsl:for-each select="ccomunes/item">
          <xsl:value-of select="."/><br/>
        </xsl:for-each>
        <xsl:for-each select="actividades/item">
          <xsl:value-of select="."/><br/>
        </xsl:for-each>
        <br/></td>
    </tr>
  </xsl:template>
  <!--sacamnos las caractristicas de las habiotaciones del alojamiento-->
  <xsl:template name="carac_habita">
    <tr>
      <td class="nombre_habitacion" style="text-transform:capitalize"><xsl:value-of select="@clase"/>&#160;"<xsl:value-of select="@nombre"/>"</td>
    </tr>
    <xsl:if test="cpropias/item">
      <tr>
        <td class="texto_base_oscuro"><b>Equipamiento Propio</b></td>
      </tr>
      <tr>
        <td class="texto_base" style="text-transform:capitalize"><xsl:for-each select="cpropias/item">
            <xsl:value-of select="."/><br/>
          </xsl:for-each></td>
      </tr>
    </xsl:if>
    <tr>
      <td height="5"></td>
    </tr>
    <xsl:if test="ccomunes/item">
      <tr>
        <td class="texto_base_oscuro"><b>Equipamiento Compartido</b></td>
      </tr>
      <tr>
        <td class="texto_base" style="text-transform:capitalize"><xsl:for-each select="ccomunes/item">
            <xsl:value-of select="."/><br/>
          </xsl:for-each>
          <br/></td>
      </tr>
    </xsl:if>
  </xsl:template>
</xsl:stylesheet>
