Cargar un swf desde XSL
Publicado por Roberto (1 intervención) el 22/03/2006 17:33:33
Buenas... He intentado tropecientas veces cargar un SWF desde XSL y me ha sido imposible. He intentado cargarlo haciendo una llamada a un HTML y nada.... posteo en concreto el código donde debería ir insertada la carga del SWF (Donde pone AQUIIIIII)
<!-- edited with XML Spy v2.5 NT - http://www.xmlspy.com -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" version="1.0" encoding="windows-1252" indent="yes"/>
<xsl:template match="/">
<head>
<script language="javascript">
function go(form) {
codart=form.name;
var donde=window.location.href;
var s=donde.lastIndexOf('/');
var loc=donde.substring(0,s);
cantidad=form.cantidad.value
nrandom=Math.floor(Math.random( ) *65535)
loc+='/carro.asp?codart='+codart+"&cantidad="+cantidad+"&rnd"+nrandom
window.open(loc,'carro')
}
function goart(form) {
codart=form.name
var donde=window.location.href;
cantidad=form.cantidad.value
nrandom=Math.floor(Math.random( ) *65535)
var z=escape(donde);
loc='articulo_ficha.asp?codart='+codart+'&desde='+z+'&rnd'+nrandom
whan=window.open(loc,'articulos')
whan.focus()
}
</script>
<link rel="stylesheet" type="text/css" href="img104/css/estilos.css"/>
<!-- tros nou -->
<meta http-equiv="Content-Type" content="text/html; charset=windows-1152"/>
</head>
<body class="amarillo" topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align="center">
<p style="margin-top: 10" align="center"/>
<h4>OFERTAS ESPECIALES EN EQUIPOS MONTADOS - RPM -</h4>
<h4>- - - - - - - - - - - - - - - - - - - - - - - -</h4>
AQUIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
<h4>- - - - - - - - - - - - - - - - - - - - - - - -</h4>
<h4>OFERTAS ESPECIALES EN EQUIPOS MONTADOS - RPM -</h4>
</td>
</tr>
</table>
</body>
</xsl:template>
</xsl:stylesheet>
Muchísimas Gracias
<!-- edited with XML Spy v2.5 NT - http://www.xmlspy.com -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" version="1.0" encoding="windows-1252" indent="yes"/>
<xsl:template match="/">
<head>
<script language="javascript">
function go(form) {
codart=form.name;
var donde=window.location.href;
var s=donde.lastIndexOf('/');
var loc=donde.substring(0,s);
cantidad=form.cantidad.value
nrandom=Math.floor(Math.random( ) *65535)
loc+='/carro.asp?codart='+codart+"&cantidad="+cantidad+"&rnd"+nrandom
window.open(loc,'carro')
}
function goart(form) {
codart=form.name
var donde=window.location.href;
cantidad=form.cantidad.value
nrandom=Math.floor(Math.random( ) *65535)
var z=escape(donde);
loc='articulo_ficha.asp?codart='+codart+'&desde='+z+'&rnd'+nrandom
whan=window.open(loc,'articulos')
whan.focus()
}
</script>
<link rel="stylesheet" type="text/css" href="img104/css/estilos.css"/>
<!-- tros nou -->
<meta http-equiv="Content-Type" content="text/html; charset=windows-1152"/>
</head>
<body class="amarillo" topmargin="0" leftmargin="0" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" align="center">
<p style="margin-top: 10" align="center"/>
<h4>OFERTAS ESPECIALES EN EQUIPOS MONTADOS - RPM -</h4>
<h4>- - - - - - - - - - - - - - - - - - - - - - - -</h4>
AQUIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
<h4>- - - - - - - - - - - - - - - - - - - - - - - -</h4>
<h4>OFERTAS ESPECIALES EN EQUIPOS MONTADOS - RPM -</h4>
</td>
</tr>
</table>
</body>
</xsl:template>
</xsl:stylesheet>
Muchísimas Gracias
Valora esta pregunta


0