This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Variable value and functions
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Variable value and functions
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 18 Jul 2000 16:01:53 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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