From:
Date: 08/12/2003 - 16:09
Bonjour , je suis occupe a developper une application necessittant le tri dynamique des donnes XML via un Javascript.
J'ai utlise le code disponible sur ce site et cela fonctionne tres bien excepte pour une colonne qui est numerique et la, le tri ne fonctionne pas .
J'ai essaye de forcer le choix du tri en "number" plutot que texte en utilisant cette syntaxe mais rien ne va
Quqlqu'un a une idee ?
Merci d' avance
Xtophe
// Sélection de l'ordre xsl:sort
XSLSort = XSLSource.documentElement.selectNodes("//xsl:sort");
// Affectation de la rubrique de tri
if (XSLSort[0].attributes(0).text == rubrique.toString())
{
if ( XSLSort[0].attributes(2).text == "ascending")
{
XSLSort[0].attributes(2).text = "descending";
}
else
{
XSLSort[0].attributes(2).text = "ascending";
}
}
else {
XSLSort[0].attributes(2).text = "ascending";
}
XSLSort[0].attributes(0).text = rubrique.toString();
if ( XSLSort[0].attributes(2).text == "ascending")
{ img="/images/arrow_up.gif"; }
else
{img="/images/arrow_down.gif"; }
if (rubrique.toString() == "saldo")
{
XSLSort[0].attributes(1).text = "number";
alert ( XSLSort[0].attributes(0).text + XSLSort[0].attributes(1).text);
}
else
{
XSLSort[0].attributes(1).text = "text";
}
--
Visit our websites http://www.dexia.be - http://www.axionweb.be
"The information contained in this message is intended for the addressee
only and may contain confidential and/or privileged information and/or
information protected by intellectual property rights. If you are not the
addressee, please delete this message and notify the sender; you should
not use, alter, copy or distribute this message or disclose its contents
to anyone.
Email transmission cannot be guaranteed to be secure or error free as
information could be intercepted, corrupted, lost, destroyed, arrive late
or incomplete, or contain viruses. No responsibility is accepted by Dexia
Bank for any loss or damage arising in any way from its use.
Any views or opinions expressed in this message are those of the author
and do not necessarily represent those of Dexia Bank or any of its
affiliates. Therefore this email does not constitute a commitment by Dexia
bank unless it contains an express statement to the contrary from an
authorised representative."
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|