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

Re: [xsl] concat variable names


Subject: Re: [xsl] concat variable names
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 15 Mar 2002 00:44:15 GMT

> I have 5 variables $var_1, $var_2, ..., $var_5; all declared as global
> variables. 
> I want to use this varibles in a loop, something like this:

If you want to do this you would be better to hold the information in
elements rather than variables. variable names are constants, as they
are in most compiled languages you can not construct them on the fly any
more than you could make variable names up dynamically in C or Fortran.

(Not all XSL systems are compiled systems but the language is designed
to allow this)

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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



Current Thread
Keywords
xsl