xsl-list
[Top] [All Lists]

[xsl] Concatenating multiple variables in a XPath statement

2006-06-19 23:15:03
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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--