🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

stockage de valeur et comparaison en XSL

#10682
From: Benoit ROSAZ
Date: Mon, 28 Aug 2000 00:00
19 lines
1391 bytes
En gros ce que je veut faire c'est
si le corps est different alors je l'affiche !
si il est identique (pour ne pas avoir de redondance) je ne fait rien

en fait a chaque boucle (each), il stocke "titre/Le_Type" dans "Le_Type_Old"
et si dans la boucle d'apres "titre/Le_Type" = "Le_Type_Old"
alors je n'afiche pas "titre/Le_Type"

est ce que c'est correct ?
comment est que je peut stocker "titre/Le_Type" dans "Le_Type_Old"
sinon comment faire ?

<xsl:for-each select="element">
    <xsl:sort select="titre/Le_Type"/>
    <xsl:if test="not(titre/Le_Type=Le_Type_Old)">
     <xsl:apply-templates select="titre/Le_Type"/>
    </xsl:if>
     <xsl:variable name="Le_Type_Old" select="titre/Le_Type"/>
</xsl:for-each>
Technical Details
Message-ID: <P4sq5.3144$HF.10532891@nnrp3.proxad.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit
X-Google-Thread: 114f60,783ac71a9ec48ee6,start
X-Google-Attributes: gid114f60,public
From: "Benoit ROSAZ" <PasDeSpam@chezmoi.com>
Subject: stockage de valeur et comparaison en XSL
Date: 2000/08/28
Message-ID: <P4sq5.3144$HF.10532891@nnrp3.proxad.net>
X-Deja-AN: 663433725
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp3.proxad.net 967462319 212.11.4.192 (Mon, 28 Aug 2000 13:31:59 CEST)
Organization: Guest of ProXad - France
X-MSMail-Priority: Normal
NNTP-Posting-Date: Mon, 28 Aug 2000 13:31:59 CEST
Newsgroups: fr.comp.text.xml