This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: dynamicaly build select expression
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] dynamicaly build select expression
- From: Guillaume Rousse <rousse at ccr dot jussieu dot fr>
- Date: Thu, 13 Sep 2001 18:25:47 +0200
- Organization: =?iso8859-1?q?Universit=E9=20Pierre=20&=20Marie?= Curie
- References: <07D07AD1C8CAD4119B0900D0B7E7E8E0649AA0@UHURA>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Ainsi parlait Dmitri Ilyin :
> thanks
>
> will it also work if i have:
> <xsl:variable
> name="some_name">node[@name='n1']/node[@name='n2']</xsl:variable>
Here your variable is no more the name of an element.
Use two variable (or parameter):
<xsl:variable name="n1"/>
<xsl:variable name="n2"/>
<xsl:apply-template select="node[@id=$n1]/node[@id=$n2]"/>
--
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list