This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: concat variable names



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]