This raises one question for me:
What has dyn:evaluate been intended for when it can only be used where
expressions are allowed.
I think you cannot achieve more with it than with a ordinary Xpath
Let $path has as its value the string "/A/B/C
will return the same node-set as the one, which will be selected when
evaluating the XPath expression:
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.
http://fxsl.sourceforge.net/ -- the home of FXSL
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list