🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

XPath dans tous les sens ;-(

#9511
From: Rapha�l THERY
Date: Tue, 27 Mar 2001 07:49
30 lines
1844 bytes
Bonjour, j'ai un petit soucis dans l''utilisation de XPath; Je n'arrive pas
� s�lectionner les f�res du noeud courant.

Exemple :
soit
<Elements>
    <Groupe>
        <fils xml:lang="fr">saValeur</fils>
        <fils xml:lang="en">saValeur</fils>
        <fils xml:lang="en">saValeur</fils>
        <fils xml:lang="de">saValeur</fils>
    </Groupe>
</Elements>

Pour localiser celui en Fran�ais je fais :
<xsl:template match="Groupe">
....
<xsl:when test="Elements/Groupe/fils[lang('fr')] = text()">
...
</xsl:template>

Par contre ensuite depuis ce noeud je veux remonter sur le p�re pour
connaitre l'ensemble de ses fils ... anglais par exemple !
Mais j'ai beau triturer les axes dans tous les sens je n'arrive pas � �crire
l'expression.


Pourriez vous m'aider ?
d'avance merci
Rapha�l
Technical Details
Message-ID: <TBXv6.69$Iz2.442407@nnrp3.proxad.net>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.icl.net!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2.proxad.net!nnrp3.proxad.net.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,664a9a54c3d5dfca,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-03-26 23:58:06 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.icl.net!news.tele.dk!193.251.151.101!opentransit.net!proxad.net!feeder2.proxad.net!nnrp3.proxad.net.POSTED!not-for-mail
From: "Rapha�l THERY" <raphael.thery@free.fr>
Newsgroups: fr.comp.text.xml
Subject: XPath dans tous les sens ;-(
Lines: 33
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: <TBXv6.69$Iz2.442407@nnrp3.proxad.net>
Date: Tue, 27 Mar 2001 07:49:07 GMT
NNTP-Posting-Host: 195.115.154.77
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp3.proxad.net 985679347 195.115.154.77 (Tue, 27 Mar 2001 09:49:07 CEST)
NNTP-Posting-Date: Tue, 27 Mar 2001 09:49:07 CEST
Organization: Guest of ProXad - France