🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

comment tester un attribut?

#10172
From: lionel
Date: Thu, 23 Nov 2000 00:00
22 lines
1175 bytes
salut,

j'ai un probl�me que je ne sais r�soudre: comment faire pour  tester un
attribut avec la formule xsl:if dans un document xsl?

exemple:
j'ai un xml qui comporte les �l�ments suivants:

<urba>
     <enreg sel="0" etat="initial">
          <cle>1</cle>
          <nom>titi</nom>
            ......
    </enreg>
    .....
</urba>

j'aimerais tester maintenant avec <xsl:if ...> si l'attribut sel est �gale �
0 ou 1 et faire des choses en cons�quences ...

comment faut il faire pour que ceci marche?
merci
Technical Details
Message-ID: <9U5T5.614$m35.774226@nnrp2.proxad.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,9397af7af50921fb,start
X-Google-Attributes: gid114f60,public
From: "lionel" <goubetli@voila.fr>
Subject: comment tester un attribut?
Date: 2000/11/23
Message-ID: <9U5T5.614$m35.774226@nnrp2.proxad.net>
X-Deja-AN: 697003979
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp2.proxad.net 974973573 212.234.83.243 (Thu, 23 Nov 2000 10:59:33 CET)
Organization: Guest of ProXad - France
X-MSMail-Priority: Normal
NNTP-Posting-Date: Thu, 23 Nov 2000 10:59:33 CET
Newsgroups: fr.comp.text.xml