xsl:evaluate doesn't support use of user-defined functions
Fix Committed on JS Branch:
within the static context for
xsl:evaluate should be
All user-defined functions present in the containing package provided their visibility is not hidden or private;
Currently this is not the case for Saxon-JS and will be somewhat expensive to implement, requiring
Expr.evaluate() to search through the package SEF it is called from to find the function definitions, generate signatures and pass through on each invocation. It may be possible to arrange a cache.
Surely this simply requires the XPath processor to have access to context.fixed.userFunctions, which transform.js has already built and which is present in the context object passed to evaluateXDM?
context.fixed.userFunctions gives a map of
fnName#arity -> body (action) trees. Parent of the body gets the function tree and from their
arg children with name and type can be determined.
- Status changed from New to Resolved
Alterations to code committed
- Applies to branch deleted (
- Applies to JS Branch 1.0 added
- Fix Committed on JS Branch 1.0 added
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in JS Release set to Saxon-JS 1.0.1
Bug fix applied in Saxon-JS 1.0.1 maintenance release.
Please register to edit this issue
Also available in: Atom