[Home] [By Thread] [By Date] [Recent Entries]

  • From: Bart Stevens <bstevens@p...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Mon, 30 Apr 2001 12:16:49 +0200

Variables can't be changed in XSLT like in C or Java. In fact the so-called 'variables' are sort of constant declaration, which can't be changed later on. See the FAQ at http://www.dpawson.co.uk/xsl/N8090.html
 
Bart
-----Original Message-----
From: Thushara Perera [mailto:thusharap@e...]
Sent: Monday, April 30, 2001 11:54 AM
To: XML-DEV (E-mail); XSL News Group (E-mail)
Subject: XSL - Variable Assignment

Hi
 
Can someone please tell me how to assign a value to a variable in XSL ?
 
I have defined the variable as below:
 
 <xsl:variable name="foundFlag" select="'Yes'"/>
 
and later on I want to CHANGE the value of this variable to 'NO'.
 
How can I do that, PLEASE ?
 
Thanks a lot
 
Thushara

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member