Article View: fr.comp.text.xml
Article #9696Un petit probleme de syntaxe !!!
From: HERVE LEDOUX
Date: Mon, 26 Feb 2001 21:32
Date: Mon, 26 Feb 2001 21:32
29 lines
1866 bytes
1866 bytes
bonjour, je vous remercie par avance de bien vouloir repondre a mon probleme Dans mon fichier XML, j'ai : <question numero="1" temps="..">....</question> <question numero="2" temps="..">....</question> <question numero="3" temps="..">....</question> je sais que l'on peut acceder directemment ๏ฟฝ la premiere ou la derniere "question" par : p=<xsl:value-of select="../question[0]/@temps"> p=<xsl:value-of select="../question[end( )]/@temps"> p=<xsl:value-of select="../question[position( )=2]/@temps"> mais je voudrais acceder directement a la "question" suivante : p=<xsl:value-of select="../question[next( )]/@temps"> mais cela ne fonctionne pas... j'ai pens๏ฟฝ aussi a mettre une variable javascript.. mais c'est la meme probleme : temp="5"; p=<xsl:value-of select="../question[@numero=temp]/@temps"> ( je suis dans une boucle et si je mets directement "5", j'aurais toujours la meme valeur!!) besoin d'aide.. merci
Technical Details
Message-ID:
<nXzm6.1955$Fx2.6974638@nnrp2.proxad.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,be625deb22b083be,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-02-26 13:34:02 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail From: "HERVE LEDOUX" <hledoux@free.fr> Newsgroups: fr.comp.text.xml Subject: Un petit probleme de syntaxe !!! Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: <nXzm6.1955$Fx2.6974638@nnrp2.proxad.net> Date: Mon, 26 Feb 2001 21:32:03 GMT NNTP-Posting-Host: 213.228.27.177 X-Complaints-To: abuse@proxad.net X-Trace: nnrp2.proxad.net 983223123 213.228.27.177 (Mon, 26 Feb 2001 22:32:03 CET) NNTP-Posting-Date: Mon, 26 Feb 2001 22:32:03 CET Organization: Guest of ProXad - France