[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: how to reassign a variable's value?

Subject: RE: how to reassign a variable's value?
From: "Dion Houston" <dionh@xxxxxxxxxxxxx>
Date: Mon, 12 Aug 2002 10:53:07 -0700
xslt redefine variable
Hi James!

The short answer is you don't need to redefine variables :)  And XSLT
won't let you...

The longer answer is that XSLT is a language in the functional
programming paradigm.  This gives it the tremendous benefit of being
side-effect free (which couldn't be done with redefinable variables),
and only the slight cost of having to re-think how you typically do
things.

Why don't you give us your XML and XSLT you have now, and we can help
you to solve your problem without redefining variables...

Dion

-----Original Message-----
From: James L. [mailto:stardust@xxxxxxxxxx] 
Sent: Monday, August 12, 2002 10:35 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  how to reassign a variable's value?


Hi,

Sorry I am reposting my question from earlier.  Excite mail screwed up
my original email.  

How do I reassign the value to a variable?  I need to do the following

[xsl:variable name=foo select="1"]
..... do something ....
[xsl:variable name=foo select="2"]

note: I am using [ because excite mail hates lt and gt.

when I try this the xslt processor complains the variable has already
been defined.

-thanks
James






------------------------------------------------
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.