This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: parameter in path
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: parameter in path
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 4 Dec 2000 10:44:18 -0000
- Reply-To: xsl-list at mulberrytech dot com
> 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