This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: parameter in path
- To: xsl-list at mulberrytech dot com
- Subject: Re: parameter in path
- From: Eric van der Vlist <vdv at dyomedea dot com>
- Date: Fri, 01 Dec 2000 17:32:50 +0100
- References: <5.0.0.25.0.20001129170437.00a19eb0@pop3.web.de>
- Reply-To: xsl-list at mulberrytech dot com
Frank Hess wrote:
>
> Hi,
>
> is it possible to use a paramter in the path of the select of a xsl:value-of ?
>
> Example:
>
> <xsl:param name="p1" select="'abc">
> <xsl:value-of select="//some1/$p1/some2"/>
As such, no.
But you can write
<xsl:value-of select="//some1/*[name()=$p1]/some2"/>
Eric
--
See you at XML 2000
http://gca.org/attend/2000_conferences/XML_2000/building.htm#vlist
------------------------------------------------------------------------
Eric van der Vlist Dyomedea http://dyomedea.com
http://xmlfr.org http://4xt.org http://ducotede.com
------------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list