RE: Variable value and functions

Subject: RE: Variable value and functions
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 18 Jul 2000 16:01:53 +0100
> I want to get the value of a variable whose name is equal to the value
> of the "id" attribute found in the current node.

You can't. There is no way in XSLT of constructing XPath expressions (e.g.
variable references) at run-time.

There's a workaround in Saxon, the saxon:expression() function:

 <xsl:value-of select="saxon:expression(concat('$', @id))"/>

Mike Kay


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


Current Thread