[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Dynamic function names
Unfortunately XQuery has neither higher-order functions nor
dynamic evaluation. (With higher-order functions, the variable doesn't hold the
name of the function as a string, it holds a reference to the function as a
first class object). However, many implementations do have an eval() function
(in saxon it's called saxon:evaluate()) and some (including Saxon-SA) also have
a capability for higher-order functions.
If you're prepared to consider XSLT rather than XQuery,
Dimitre Novatchev's FXSL library provides a full implementation of higher-order
programming in 100% portable XSLT code (this is possible in XSLT because it can
ride on the dynamic despatch mechanism offered by
xsl:apply-templates).
Michael Kay
http://www.saxonica.com/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
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
|