🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Restituer l'ordre d'apparition des attributs

#9616
From: Rapha�l THERY
Date: Tue, 13 Mar 2001 09:32
38 lines
2417 bytes
Bonjour,

je ne comprends pas pourquoi l'affichage d'un document xml sous forme de
tableau ne se fait pas dans l'ordre d'apparition !!

soit un dico :
<dictionnaire>
 <langue lang-fr="Fran�ais" lang-en="English" lang-de="Deutch"
lang-it="Italiano" lang-sp="Espagnol" lang-nl="Hollandais"
lang-pt="Portuguese"/>
 <terme lang-fr="Num�ro" lang-en="Number" lang-de=""/>
 <terme lang-fr="Num�ro" lang-en="Number" lang-de=""/>
 <terme lang-fr="Num�ro" lang-en="Number" lang-de=""/>
 <terme lang-fr="Num�ro" lang-en="Number" lang-de=""/>
</dictionnaire>

si j'�cris une feuille xsl du genre :
<xsl:for-each select="langue/@*">
  <th><xsl:value-of select='.' /></th>
</xsl:for-each>

l'affichage me donne :
Deutch - Enghish - Francais - Italiano -Hollandais - Portuguese - Espagnol
soit selon un ordre alphab�tique (je suppose) (d[e] < e[n] < f[r] < n[l] <
...) et non selon l'ordre d'apparition des attributs.

Y aurait-il moyen ?

D'autre part, par le biais d'une DTD, y a-t-il moyen de pr�ciser l'ordre des
attributs car rien empeche d'avoir :
 <terme lang-fr="Num�ro" lang-en="Number" lang-de=""/>
 <terme lang-en="Number2" lang-de="" lang-fr="Num�ro2" />
et si l'affichage se fait par ordre d'apparition, l'information affich�e ne
correspondra pas forcement � la colonne auquelle elle est attach�e !

d'avance merci

Rapha�l
Technical Details
Message-ID: <AOlr6.145$022.604232@nnrp2.proxad.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!freenix!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,fc875c24d19f36c4,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-03-13 01:34:07 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!freenix!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail
From: "Rapha�l THERY" <raphael.thery@free.fr>
Newsgroups: fr.comp.text.xml
Subject: Restituer l'ordre d'apparition des attributs
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <AOlr6.145$022.604232@nnrp2.proxad.net>
Date: Tue, 13 Mar 2001 09:32:16 GMT
NNTP-Posting-Host: 195.115.154.77
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp2.proxad.net 984475936 195.115.154.77 (Tue, 13 Mar 2001 10:32:16 CET)
NNTP-Posting-Date: Tue, 13 Mar 2001 10:32:16 CET
Organization: Guest of ProXad - France