[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: problem using dyn:evaluate with MSXML

Subject: RE: problem using dyn:evaluate with MSXML
From: "Matthieu Ricaud" <matthieu.ricaud@xxxxxxx>
Date: Thu, 16 Dec 2004 17:27:29 +0100
dyn evaluate
Thanks Michael !
With David and you I can't forget it now ;)
Matthieu

-----Message d'origine-----
De : Michael Kay [mailto:mike@xxxxxxxxxxxx]
Envoye : jeudi 16 decembre 2004 16:34
A : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet : RE:  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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.