[xsl] Concatenating multiple variables in a XPath statement

Subject: [xsl] Concatenating multiple variables in a XPath statement
From: "Mohsen Saboorian" <mohsens@xxxxxxxxx>
Date: Tue, 20 Jun 2006 09:44:49 +0330
Hi,
I want to know if it is possible to make a XPath with multiple
variables, something like "$var1/$var2". This kind of query has
errors. In fact I think that placing a "/" befor $ makes the problem.
How can I use a query like this:
<xsl:value-of select="/rootElement/body/$colName" />
or
<xsl:value-of select="/$var1/$var2" />

Thanks in advance.

Current Thread