Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/11/2008, 09:15
hook69
 
Fecha de Ingreso: junio-2008
Mensajes: 21
Antigüedad: 16 años, 10 meses
Puntos: 0
Respuesta: Guardar variable de XSL... o algo asi

Gracias por responder.

Mira el codigo ASP que tengo.
Código:
 		
	<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> 
	<% Response.Buffer=True %> 
 
 	<!--#include file="inc/declareVariables.asp"-->
 	<!--#include file="inc/strRoomGroup.asp"-->
	<!--#include file="inc/routines.asp" -->
		
	<% 
		 
  	Call buildHotelInfoRequestString
		
 	%>		
		
	<!--#include file="inc/xmlPointer.asp" -->
	<!--#include file="inc/xmlDebugString.asp" -->
	<!--#include file="mapa.asp" -->

	<%
 	 
	Set xsl = Server.CreateObject("MSXML2.FreeThreadedDOMDocument.3.0")
	xsl.async = false		 
	xsl.load (Server.MapPath("xsl/fotoshotel.xsl"))
	
	Set template = Server.CreateObject("MSXML2.XSLTemplate")
		template.stylesheet = xsl
	set processor = template.createProcessor()
		processor.input = xml
	
	
		
	%>
	
	<!--#include file="inc/xslParamHotels.asp"-->

	
	<%
	
	
	
  	processor.transform()
	Response.Write (processor.output)
	   Set xsl = Nothing
 	   Set xml = Nothing
	   Set xmlhttp = Nothing
	   Set template = Nothing
	
 	%>
La cosa es que no se como manejar el fichero xsl. Puedo abrirlo como un simple codigo normal??

El codigo del xsl es
Código:
<?xml version="1.0" encoding="iso-8859-15"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" encoding="iso-8859-15"/>

  <xsl:include href="infoTable.xsl"/>
 	
	<xsl:include href="linkParams.xsl"/>
	 
 	<xsl:param name="locale"/>
	<xsl:param name="currencyCode"/>
 
 	<xsl:param name="hotelId"/>
	<xsl:param name="hotname"/>
	<xsl:param name="hotaddress"/>
	<xsl:param name="hotcity"/>
	<xsl:param name="city"/>
	<xsl:param name="stateProvince"/>
	<xsl:param name="country"/>
	
	<xsl:param name="arrivalDate"/>
	<xsl:param name="departureDate"/>
	
	<xsl:param name="amenities"/>
	<xsl:param name="supplierType"/>
	<xsl:param name="propertyType"/>
	<xsl:param name="hrnQuoteKey"/>
	
	<xsl:param name="numberOfRooms"/>
	<xsl:param name="numberOfBedRooms"/>
	<xsl:param name="numberOfBeds"/>
	<xsl:param name="minStarRating"/>
	<xsl:param name="propertyName"/>
	 
	<xsl:param name="numberOfAdults1"/>
	<xsl:param name="numberOfAdults2"/>
	<xsl:param name="numberOfAdults3"/>
	<xsl:param name="numberOfAdults4"/>
	<xsl:param name="numberOfAdults5"/>
	<xsl:param name="numberOfAdults6"/>
	<xsl:param name="numberOfAdults7"/>
	<xsl:param name="numberOfAdults8"/>
	
	<xsl:param name="numberOfChildren1"/>
	<xsl:param name="numberOfChildren2"/>	
	<xsl:param name="numberOfChildren3"/>	
	<xsl:param name="numberOfChildren4"/>	
	<xsl:param name="numberOfChildren5"/>	
	<xsl:param name="numberOfChildren6"/>	
	<xsl:param name="numberOfChildren7"/>	
	<xsl:param name="numberOfChildren8"/>	
	
	<xsl:param name="childAges1"/>
	<xsl:param name="childAges2"/>
	<xsl:param name="childAges3"/>
	<xsl:param name="childAges4"/>
	<xsl:param name="childAges5"/>
	<xsl:param name="childAges6"/>
	<xsl:param name="childAges7"/>
	<xsl:param name="childAges8"/>	
	
	<xsl:output method="html"/>
	
	<xsl:template match="/">
		<html>
			<head>
				<title></title>
 				<script language="javascript" src="../js/script.js"></script>
        <link href="estiloshotelszzz.css" rel="stylesheet" type="text/css" />
      </head>
      <body background="../Images/fondo.jpg" onload="load()" onunload="GUnload()" >

					<xsl:variable name="hotelId" select="HotelInfo/hotelId"/>		
					<xsl:variable name="hotname" select="normalize-space(HotelInfo/hotelName)"/>
					<xsl:variable name="hotaddress" select="normalize-space(HotelInfo/address1)"/>
					<xsl:variable name="hotcity" select="normalize-space(HotelInfo/city)"/>



        <table width="580px" height="230px" style="position:absolute;">
          <tr>
            <td>
              <xsl:call-template name="infoTable"/>
            </td>
          </tr>
        </table>

      </body>
		</html>
	</xsl:template>
</xsl:stylesheet>
La variable que quiero sacar es <xsl:variable name="hotaddress" select="normalize-space(HotelInfo/address1)"/>


Gracias por todo