🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9949

Transformation dynamique d'un XSL ne se fait qu'une fois

#9949
From: Gilles Colombari
Date: Wed, 31 Jan 2001 15:54
29 lines
2114 bytes
Bonjour,
    j'ai r�ussi � faire un xsl avec un script qui permet de trier
dynamiquement un tableau selon la colonne sur laquelle l'on a cliqu�, mais
cela ne marche qu'une fois :-(((

source = document.XMLDocument
styleSheet = document.XSLDocument
// mes_donnees est un tag span qui couvre le template de tout le xsl

function clic_titre() // appell� par l'�v�nement onclick des colonnes de la
table()"
{ 
 el = window.event.srcElement // l'objet d'o� provient le clic

// l'attribut du xsl-sort
 objParam = styleSheet.selectSingleNode("//xsl:template/span/table/xsl:apply-templates/xsl:sort/@select") 

 objParam.nodeValue = el.title // changement de l'attribut de tri

// zone du document � reparser
 mes_donnees.innerHTML = source.documentElement.transformNode(styleSheet)
}

Quelqu'un sait-il si le parser msxml 3.0 a un bug de ce c�t� l�
ou est-ce un souci dans ma fonction ?

Merci d'avance
-------------------------------------------------------------------------
Gilles COLOMBARI
Technical Details
Message-ID: <0zWd6.1988$oo5.4846643@nnrp4.proxad.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!proxad.net!feeder2.proxad.net!nnrp4.proxad.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,1be3c6b8043cbb42
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-01-31 07:55:09 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!opentransit.net!proxad.net!feeder2.proxad.net!nnrp4.proxad.net.POSTED!not-for-mail
Reply-To: "Gilles Colombari" <gcolombari@net-up.com>
From: "Gilles Colombari" <gcolombari@net-up.com>
Newsgroups: fr.comp.text.xml
Subject: Transformation dynamique d'un XSL ne se fait qu'une fois
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <0zWd6.1988$oo5.4846643@nnrp4.proxad.net>
Date: Wed, 31 Jan 2001 15:54:36 GMT
NNTP-Posting-Host: 62.106.66.3
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp4.proxad.net 980956476 62.106.66.3 (Wed, 31 Jan 2001 16:54:36 CET)
NNTP-Posting-Date: Wed, 31 Jan 2001 16:54:36 CET
Organization: Guest of ProXad - France