Article View: fr.comp.text.xml
Article #8226Re: Expression XPath.
From: Alain Ketterlin
Date: Mon, 26 Nov 2001 15:49
Date: Mon, 26 Nov 2001 15:49
33 lines
1834 bytes
1834 bytes
darkman_spam@yahoo.fr (drkm) writes:
> J'ai un petit probl�me avec une exprssion XPath. Je poss�de un
> fichier xml ressemblant � :
>
> <functionset>
>
> <typelist>
> <type file="fichier1">type1</type>
> <type file="fichier2">type2</type>
> <typelist>
>
> <function>
> <name>nom</name>
> <param><type>type1</type> <name>nom1</name></param>
> </function>
>
> <function>
> ...
> </function>
>
> </functionset>
>
> Dans ma feuille de style xsl, dans le traitement de
> "/functionset/function/param/type", j'aimerais r�cup�rer la valeur de
> "@file" du "/functionset/typelist/type" dont le texte est �gal � celui
> du type trait� ("param/type").
../../../typelist/type[string(.)=string(current())]
peut-etre...
-- Alain.
Technical Details
Message-ID:
<wyk7wd5y8i.fsf@polya.u-strasbg.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!demon!shale.ftech.net!news.ftech.net!colt.net!easynet-quince!easynet.net!ciril.fr!news.u-strasbg.fr!not-for-mailReferences:
<8b283176.0111260659.5df4e19b@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,e3cc00bac1e77738 X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-11-26 08:38:00 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!demon!shale.ftech.net!news.ftech.net!colt.net!easynet-quince!easynet.net!ciril.fr!news.u-strasbg.fr!not-for-mail From: Alain Ketterlin <alain@dpt-info.u-strasbg.fr> Newsgroups: fr.comp.text.xml Subject: Re: Expression XPath. Date: 26 Nov 2001 16:49:01 +0100 Organization: CRC - Universite Louis Pasteur Strasbourg France Lines: 33 Message-ID: <wyk7wd5y8i.fsf@polya.u-strasbg.fr> References: <8b283176.0111260659.5df4e19b@posting.google.com> NNTP-Posting-Host: polya.u-strasbg.fr X-Trace: news.u-strasbg.fr 1006797550 11182 130.79.44.199 (26 Nov 2001 17:59:10 GMT) X-Complaints-To: usenet@u-strasbg.fr NNTP-Posting-Date: 26 Nov 2001 17:59:10 GMT X-Newsreader: Gnus v5.6.45/XEmacs 21.1 - "Capitol Reef"