Thanks Michael !
With David and you I can't forget it now ;)
Matthieu
-----Message d'origine-----
De : Michael Kay [mailto:mike(_at_)saxonica(_dot_)com]
Envoye : jeudi 16 decembre 2004 16:34
A : xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Objet : RE: [xsl] problem using dyn:evaluate with MSXML
I define a variable $y containing an Xpath expression laike this :
<xsl:variable name="y" select"'@my_attribute'">
Calling
<xsl:value-of select="dyn:evaluate(., $y)"/>
works fine and give me the attribute value.
The problem I have is that when I define $y like this :
<xsl:variable name="y">@num</xsl:variable>
(Which is to me exactly the same definition as before)
then I get a error !
The HTML page cannot be loaded.
The two expressions are not at all the same. In one, the variable is a
string, in the other it is a result tree fragment. XPath automatically
converts a result tree fragment to a string when required (probably at
considerable cost), but Javascript does not.
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>
--~--
--~------------------------------------------------------------------
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>
--~--