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]

Re: Variable names *as* variables



> 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

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