Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/02/2003, 12:09
loren777
 
Fecha de Ingreso: diciembre-2002
Mensajes: 16
Antigüedad: 21 años, 5 meses
Puntos: 0
Ya encontré algo...

Hola! ya encontré que para insertar código xml dándole formato con una xsl en un documento html se necesita hacer algo como se ve en este ejemplo:

<html>
<head>
<title>Untitled Document</title>

</head>

<xml id="source" src="webdev.xml"></xml>
<xml id="style" src="list.xsl"></xml>

<SCRIPT FOR="window" EVENT="onload">
xsltarget.innerHTML = source.transformNode (style.XMLDocument);
</SCRIPT>


<body bgcolor="#CCCCCC">
<table width="95%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align="center">
<tr>
<td height="35" width="37%">
<DIV id="xsltarget"></DIV>
</td>
<td height="35" width="63%">&nbsp;</td>
</tr>
</table>
</body>
</html>

Lo que no he podido lograr es que tome alguna hoja de estilo .css o un .js externo (la hoja .xsl estaba relacionada con dos archivos de este tipo) y no lo toma, no sé como se debe hacer

Alguien tiene alguna idea?

Muchas Gracias...