xsl-list
[Top] [All Lists]

RE: [xsl] Concatenating multiple variables in a XPath statement

2006-06-20 01:31:09
Thank you Micheal.
There are xpath and element names in the variables. var1 
contains an xpath like /form/body/rows/row[$i] and var2 has 
an element name which is found dynamically in a loop.
I think this is the case that XPath does not support. Am I right?

Correct. XSLT does not allow you to construct XPath expressions dynamically
as strings. Several products including Saxon have extension functions that
allow this, for example saxon:evaluate().

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--