Re: Variable names *as* variables

Subject: Re: Variable names *as* variables
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 13 Oct 2000 10:01:22 GMT
> Then in the template (so goes the theory) I'd just need to do something like:
> 
>    <xsl:value-of select="concat('$', @place)"/>
> 
> But -- duh -- all this does is produce the *string* "$location1," 
> "$location2," and "$location3."

Ah, but what does

 <xsl:value-of select="document('')//xsl:variable[@name=current()/@place]"/>

produce?

David


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


Current Thread