Subject: RE: parameter in path
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 4 Dec 2000 10:44:18 -0000
|
> is it possible to use a paramter in the path of the select of
> a xsl:value-of ?
>
> <xsl:param name="p1" select="'abc">
> <xsl:value-of select="//some1/$p1/some2"/>
>
Third time in a week! No, variables and parameters in XPath don't work by
textual substitution. A variable can only be used in places where the syntax
explicitly permits it. There is no mechanism in XSLT 1.0 to construct an
expression from a string.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|