Cliquez ici.
Accueil
 chercher             Plan du site             Info (English version) 
L'histoire de XML s'écrit en ce moment même. XMLfr vous aide à la suivre et à en dégager les tendances.Les listes de discussions XMLfr sont à votre disposition pour réagir sur nos articles ou simplement poser une question.Si vous ètes passionnée(e) par XML, pourquoi ne pas en faire votre métier ?XMLfr n'est heureusement pas le seul site où l'on parle de XML. Découvrez les autres grâce à XMLfr et à l'ODP.Les partenaires grâce auxquels XMLfr peut se développer.Pour tout savoir sur XMLfr.XMLfr sans fil, c'est possible !Pour ceux qui veulent vraiment en savoir plus sur XML.L'index du site.
 Commentaires et questions non techniques.Commentaires et questions techniques.

 
Cliquez ici.

xml tech : Technologies XML

[xml-tech] Re: Sorting in XSLT

[xml-tech] Re: Sorting in XSLT

Auteur: Stephane Bortzmeyer <stephane@sources.org>
Date: 16/03/2008 - 21:37

On Thu, Mar 13, 2008 at 02:06:56PM +0100,
 hufflen jean-michel <hufflen@lifc.univ-fcomte.fr> wrote
 a message of 69 lines which said:

> En cherchant sur le "Net", j'ai vu des endroits où l'on propose un
> contournement : récupérer la concaténation de tous les noms et
> prénoms des auteurs et se baser sur cette gigantesque chaîne.

Tiré d'une liste IETF, un bon exemple de pourquoi c'est une mauvaise
idée :

From: Mark Crispin <mrc@Washington.EDU>

Sorting the addr-name opens a HUGE can of worms.

Given the names "Bandou Mitsugoro", "Mark Crispin", "Nishimura Aiko",
"Pedro Castro Gomez", and "Mao Zedong", a stupid sort will collate these
as:
        Bandou Mitsugoro
        Mao Zedong
        Mark R. Crispin
        Nishimura Aiko
        Pedro Castro Gomez
and a falsely-clever sort will collate these as:
        Nishimura Aiko
        Mark R. Crispin
        Pedro Castro Gomez
        Bandou Mitsugoro
        Mao Zedong
Both of these are totally wrong.

The actual correct collation, assuming(!) surname-first collation and
Latin character ordering(!!), is:
        Bandou Mitsugoro
        Pedro Castro Gomez
        Mark R. Crispin
        Mao Zedong
        Nishimura Aiko
due to where the surname is located in various cultures.

And even that is making multiple unwarranted assumptions. The addr-name
may not even be a name that has a surname e.g., a corporate name. Latin
character ordering may not be correct either; in Japanese "Bandou" will
collate before "Nishimura", but "Tanaka" will collate before either of
these.

This is why this was punted to be a sort of the addr-mailbox. Once again,
changing this now would be an incompatible change that may benefit some,
will cost others, and will create instability and unreliability.

--
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)
Received on Sun Mar 16 22:38:17 2008

Archive générée par hypermail 2.1.8 le 27/03/2008 - 19:53 UTC

webmaster@xmlfr.org

 

xml tech

Discussions techniques au sujet de XML.

Cette liste est à votre disposition pour discuter en français de tout sujet technique lié à XML.



Devenez rédacteur <XML>fr et contribuez au développement du xml francophone !
Les documents publiés sur ce site le sont sous licence "Open Content"
Conception graphique
  l.henriot@online.fr  

Conception, réalisation et hébergement