No, you don't need dynamic evaluation unless the variable holds an XPath
expression. You can simply do
*[local-name()=$var]
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Hardy Merrill [mailto:HMerrill(_at_)dhcr(_dot_)state(_dot_)ny(_dot_)us]
Sent: 27 April 2005 14:47
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] msxml4 - eval()?
We're using MSXML4 - I'm in a for-each loop in a style sheet, and have
the name of an xml tag as the value of a variable. How can I get the
value(text) of that xml tag? It seems like I need an "eval" function
but I can't find one in the documentation - is this possible
in MSXML4?
TIA.
Hardy Merrill
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--