Efficient XML processing with XSLT 3.0 and higher order functions
summary
XSLT 3.0 adds true higher-order programming: function items, anonymous functions and partial application with the ? placeholder, plus built-ins like maps, accumulators and fold-left/right. Closures capture their surrounding variables (a persistent “backpack”), so memoization becomes practical with three modes memoization (cache/partial/none) and an identity-sensitivity hint to avoid node-identity blowup. Recursive algorithms can be rewritten into continuation-passing style to eliminate stack overflows. Exselt is an example streaming processor; some engines still need work to optimize complex closures.
AI-written summary · about
