🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Comment acc�der tous les descendants d'un tag-�l�ment XSLT

#9508
From: Pascal
Date: Sat, 24 Mar 2001 23:49
23 lines
1887 bytes
Bonjour, je veux utiliser XSLT pour avoir acc�s � tous les sous-�l�ments
d'un tag xml donn� sauf que je ne connais que le joker '/*' qui ne me permet
que d'avoir acc�s aux descendants directs et non pas aux descendants du
2i�me niveau.
Je veux avoir acc�s uniquement � tous les descendants qui poss�dent un
attribut
Par exemple si j'ai :

<element1> <element2> <element3 attribute='1'> Some text </element3>
<element3 attribute='2'> Some text </element3> <element2> <element1>

Je veux avoir acc�s aux sous �l�ments de element1 qui ont l'attribut
'attribut='1'
Cependant, si je mets dans mon fichier .xsl la commande :

<xsl:template match="element1/element2/element3[@attribut='1']">

Je n'aurai pas acc�s � l'�l�ment3 (la recherche va s'arr�ter � "element2"

Quelqu'un � une id�e comment je pourrais 'phraser' ma recherche pour avoir
acc�s aux sous �l�ment element3 � partir de element1
Merci!
Pascal
Technical Details
Message-ID: <XNPv6.415$FE1.61439@weber.videotron.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!teaser.fr!wesley.videotron.net!weber.videotron.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,d0c1ef6255f48d32,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-03-26 14:56:08 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!teaser.fr!wesley.videotron.net!weber.videotron.net.POSTED!not-for-mail
From: "Pascal" <paco@orbitek.com>
Newsgroups: fr.comp.text.xml
Subject: Comment acc�der tous les descendants d'un tag-�l�ment XSLT
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
Message-ID: <XNPv6.415$FE1.61439@weber.videotron.net>
Date: Sat, 24 Mar 2001 18:49:43 -0500
NNTP-Posting-Host: 24.200.194.166
X-Complaints-To: abuse@videotron.net
X-Trace: weber.videotron.net 985647351 24.200.194.166 (Mon, 26 Mar 2001 17:55:51 EST)
NNTP-Posting-Date: Mon, 26 Mar 2001 17:55:51 EST