Re: [xsl] XSLT variable eval

Subject: Re: [xsl] XSLT variable eval
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 1 Dec 2004 13:18:00 GMT
please don't take things off list.

>  <xsl:value-of select="variable with name in attribute @name".

You can't do that in XSLT any more than you can in C or fortran or most
other languages. Variable names need to be known at compile time.

If you ask on list and give a description of what you are trying to do
(not how you are trying to do it)  someone will be able to help.

probably rather than lots of variables you just want one variable that
contains some xml data so that instead of

<xsl:value-of select="variable with name in attribute @name"..

you can do

<xsl:value-of select="$x/*[@name()=current()/@name]"/>

But you'd need to give a clearer description (on list)  of what you are
trying to do.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread