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

Re: Re: EXSL's dyn:evaluate() and XALAN vs. xsl:use-at

Subject: Re: Re: EXSL's dyn:evaluate() and XALAN vs. xsl:use-attribute-sets
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Sat, 23 Aug 2003 22:48:32 +0200
 Re: Re: EXSL's dyn:evaluate() and XALAN vs. xsl:use-at
> BUT
>
> This raises one question for me:
>
> What has dyn:evaluate been intended for when it can only be used where
XPath
> expressions are allowed.
> I think you cannot achieve more with it than with a ordinary Xpath
> expression.


Let $path has as its value the string "/A/B/C

then

    dyn:evaluate($path)

will return the same node-set as the one, which will be selected when
evaluating the XPath expression:
   /A/B/C

However, evaluating $path will simply return *the string* "/A/B/C" -- not
any node-set at all.


dyn:evaluate can be used for the evaluation of XPath expressions, which are
not known statically at compile time but are generated dynamically at
run-time. XPath (1.0 and 2.0) does not allow such evaluation of dynamically
generated XPath expressions.



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL







 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.