[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|