🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: XSLT : Variables pas tres variables

#8706
From: Alexandre Fayolle
Date: Wed, 15 Aug 2001 11:14
25 lines
1991 bytes
On Wed, 15 Aug 2001 09:24:41 GMT, Xavier Blanc <Xavier.Blanc@lip6.fr> wrote:
>J'ai d�fini une variable globale dans ma feuille de style XSLT. Mais je ne
>sais pas comment changer la valeur de cette variable au cours de la transfo.

En XSLT, une fois qu'une variable est li�e, on ne peut plus changer sa valeur.
Par contre on peut en d�clarer une autre avec le m�me nom qui la masquera dans
le contexte courant. 

>
>Genre:
>...
><xsl:variable name="x">2</xsl:variable>
>...
><xsl:template ...>
>    <!-- j'aimerais que ce template change la valeur de x -->

D�sol�, c'est pas possible. Si tu nous dis ce que tu veux faire, on pourra 
peut-�tre te proposer une autre solution. 


Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).
Technical Details
Message-ID: <slrn9nkmca.us.alf@leo.logilab.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!wanadoo.fr!teaser.fr!nerim.net!norfair.nerim.net!alf
References: <tdre7.4425$8Z1.1779767@nnrp5.proxad.net>

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII
X-Google-Thread: 114f60,707ef045a743a0a2
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-08-15 04:14:19 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!wanadoo.fr!teaser.fr!nerim.net!norfair.nerim.net!alf
From: alf@leo.logilab.fr (Alexandre Fayolle)
Newsgroups: fr.comp.text.xml
Subject: Re: XSLT : Variables pas tres variables
Date: Wed, 15 Aug 2001 11:14:18 +0000 (UTC)
Organization: Nerim -- xDSL Internet Provider
Lines: 25
Message-ID: <slrn9nkmca.us.alf@leo.logilab.fr>
References: <tdre7.4425$8Z1.1779767@nnrp5.proxad.net>
Reply-To: alexandre.fayolle@logilab.fr
NNTP-Posting-Host: aboukir-101-2-1-logilab.adsl.nerim.net
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: norfair.nerim.net 997874058 55063 62.4.19.137 (15 Aug 2001 11:14:18 GMT)
X-Complaints-To: abuse@nerim.net
NNTP-Posting-Date: Wed, 15 Aug 2001 11:14:18 +0000 (UTC)
User-Agent: slrn/0.9.6.4 (Linux)