Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/07/2005, 11:31
cmunozp
 
Fecha de Ingreso: abril-2001
Mensajes: 293
Antigüedad: 23 años
Puntos: 0
ordenar columnas en xsl

Hola amigos estoy tratando de aplicar un ejemplo en base a xhtml pauteado en esta direccion: http://www.webfx.nu/dhtml/sortableta...ttypedemo.html

y trato de hacer lo mismo en un xsl, el tema es que no me arroja ni error ni me hace nada, posteo el xsl a continuacion:


<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:template match="/">

<table border="1" class="sort-table" id="table-1" width="100%" cellspacing="0" bordercolordark="#FFFFFF" cellpadding="2">
<thead>
<tr>
<td width="20%" class="celda_titulo">Id. USUARIO</td>
<td width="20%" class="celda_titulo">RUT</td>
<td width="20%" class="celda_titulo">Nombres</td>
<td width="20%" class="celda_titulo">Apellido Paterno</td>
<td width="20%" class="celda_titulo">Apellido Materno</td>
</tr>
</thead>
<tbody>

<xsl:for-each select="ROOT/tabla">
<tr>
<td width="20%" class="celda_detalle">
<xsl:value-of select='ID_USUARIO' />
</td>
<td width="20%" class="celda_detalle">
<xsl:value-of select='RUT_USUARIO' />
</td>
<td width="20%" class="celda_detalle">
<xsl:value-of select='NOMBRES_USUARIO' />
</td>
<td width="20%" class="celda_detalle">
<xsl:value-of select='APELLIDO_PATERNO' />
</td>
<td width="20%" class="celda_detalle">
<xsl:value-of select='APELLIDO_MATERNO' />
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
<script type="text/javascript">
//<![CDATA[
var st1 = new SortableTable(document.getElementById("table-1"),
["Number", "String", "String", "String" ,"String"]);
//]]>
</script>
</xsl:template>
</xsl:stylesheet>



alguien sabe porque no funciona, o me faltara algo???

saludos