This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: concat variable names
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 15 Mar 2002 00:44:15 GMT
- Subject: Re: [xsl] concat variable names
- References: <SAK.2002.03.15.ebgrispm@scratchy>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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