🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: manipulation d'une variable

#10102
From: Tom.
Date: Wed, 20 Dec 2000 18:14
33 lines
2035 bytes
In article <pk006.3366$F06.5260388@nnrp6.proxad.net>, "Rapha�l THERY"
<raphael.thery@nordnet.fr> wrote:
> la vraie �criture est celle-ci
> <xsl:sort select="@lang-fr" order="ascending"/>
> [...]
> �a
> <xsl:param name="lang" select="lang-fr" />
> ou �a
> <xsl:param name="lang">lang-fr</xsl:param>
> pour moi c'est la m�me chose

�a ne l'est pas.
D'un c�t� on a (devrait avoir) les noeuds fils de nom lang-fr (mais il
n'y en a pas : il n'y a m�me pas encore de noeud courant au top-level
de la feuille XSLT), donc un node-set vide; de l'autre un noeud de
texte contenant le texte 'lang-fr'.

> bien qu'en fait j'ai mis
> <xsl:param name="lang" select="'lang-fr'" />  <== il y a des ' ' en
> plus

C'est mieux. On a donc bien un objet de type string et de valeur
'lang-fr'.

> et le but et que j'arrive � une chose comme cela :
> <xsl:param name="lang" select="'fr'" />
> ...
[� mettre en rapport avec le tout d�but de ce message]

select="@*[name() = concat('lang-', $lang)]"
par exemple.

Tom.
Technical Details
Message-ID: <mssq19.4o.ln@ptittom.free.fr>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!isdnet!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail
References: <uM%%5.2806$XW5.9381904@nnrp1.proxad.net> <m3ae9rjs1m.fsf@fret.sncf.fr> <pk006.3366$F06.5260388@nnrp6.proxad.net>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,771e0e4a20a35205
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2000-12-20 10:15:00 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!isdnet!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!not-for-mail
From: "Tom." <ptittom@free.fr>
Subject: Re: manipulation d'une variable
Newsgroups: fr.comp.text.xml
Organization: -
References: <uM%%5.2806$XW5.9381904@nnrp1.proxad.net> <m3ae9rjs1m.fsf@fret.sncf.fr> <pk006.3366$F06.5260388@nnrp6.proxad.net>
User-Agent: Pan/0.9.1 (Unix)
X-No-Productlinks: Yes
Message-ID: <mssq19.4o.ln@ptittom.free.fr>
Lines: 33
Date: Wed, 20 Dec 2000 18:14:58 GMT
NNTP-Posting-Host: 193.251.185.47
X-Complaints-To: abuse@proxad.net
X-Trace: nnrp2.proxad.net 977336098 193.251.185.47 (Wed, 20 Dec 2000 19:14:58 CET)
NNTP-Posting-Date: Wed, 20 Dec 2000 19:14:58 CET