🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

manipulation d'une variable

#10098
From: Rapha�l THERY
Date: Wed, 20 Dec 2000 10:23
27 lines
1852 bytes
Soit un flux XML
<dictionnaire>
  <terme lang-fr="jkljm" lang-en="klmkmklm" ..... />
  <terme lang-fr="kklfmjkljm" lang-en="klmgdfkmklm" ..... />
  ....
</dictionnaire>

je souhaite pouvoir afficher le dictionnaire selon le tri sp�cifi� par la
variable lang.
<xsl:param name="lang" select="lang-fr" />

<xsl:template match="dictionnaire">
<xsl:copy>
  <xsl:for-each select="terme">
    <xsl:sort select="$lang" order="ascending" />  <=== l'erreur est l� !!
    <xsl:copy-of select="." />
  </xsl:for-each>
</xsl:copy>
</xsl:template>

Mais une fois de plus il semblerait que je bute sur un truc tout con !!!!
J'ai essay� les { }, les fonctions string(), .... attribute:: ....
mais rien n'y fait soit il r�le soit il n'en tient pas compte ! Je ne vais
tout de m�me pas utiliser un xsl:choose ?

d'avance merci
Rapha�l
Technical Details
Message-ID: <uM%%5.2806$XW5.9381904@nnrp1.proxad.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,771e0e4a20a35205,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2000-12-20 02:23:30 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!fr.clara.net!heighliner.fr.clara.net!proxad.net!feeder2.proxad.net!nnrp1.proxad.net.POSTED!not-for-mail
From: "Rapha�l THERY" <raphael.thery@nordnet.fr>
Newsgroups: fr.comp.text.xml
Subject: manipulation d'une variable
Lines: 31
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: <uM%%5.2806$XW5.9381904@nnrp1.proxad.net>
Date: Wed, 20 Dec 2000 10:23:22 GMT
NNTP-Posting-Host: 195.115.154.77
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp1.proxad.net 977307802 195.115.154.77 (Wed, 20 Dec 2000 11:23:22 MET)
NNTP-Posting-Date: Wed, 20 Dec 2000 11:23:22 MET
Organization: Guest of ProXad - France