Subject: RE: [xsl] how to reassign a variable's value? From: "Dion Houston" <dionh@xxxxxxxxxxxxx> Date: Mon, 12 Aug 2002 10:53:07 -0700 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to reassign a variabl, Gustaf Liljegren | Thread | Re: [xsl] how to reassign a variabl, Charles Knell |
Re: [xsl] how to reassign a variabl, Jeni Tennison | Date | Re: [xsl] how to merge tags/nodes v, Joerg Heinicke |
Month |