[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] xsl:variable


Subject: RE: [xsl] xsl:variable
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 20 Aug 2003 22:09:13 +0100

> how do i assign value to xsl:variable. i think this question 
> must be answered on the group. i don't seem to find 
> appropriate answer. plz help me.


Yes, it has been answered many many times, though not recently. The
answer is that you don't: XSLT is a functional language, it is
side-effect free, and does not have an assignment statement.

The best thing is to show us what transformation you are trying to
perform, and someone, with luck, will show you how to write it in a
functional style.

It takes a bit of getting used to programming in this way, but most
people, once they get up the learning curve, recognize that they are
writing better programs as a result.

Michael Kay


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



Current Thread
Keywords