[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how to reassign a variable's value?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|