Project

Profile

Help

Feature #5558

open

Allow clients of SaxonJS to supply a map of custom XPath functions with arbitrary names

Added by Conal Tuohy 2 months ago. Updated about 2 months ago.

Status:
In Progress
Priority:
High
Assignee:
-
Category:
API
Sprint/Milestone:
Start date:
2022-06-10
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

There's an existing mechanism whereby JavaScript functions which are in the global Window scope are automatically made available as XPath functions in a "js:" namespace, but this excludes use cases where it's desirable to add custom implementation functions in some standard namespace, e.g. the EXPath function libraries, XProc's XPath extension functions, etc.

I'd like to see this appear in the API in the same way that params member of the options object appears in the evaluate function; i.e. as an additional functions member of options, whose value is a JavaScript object mapping QNames to JavaScript functions.

Please register to edit this issue

Also available in: Atom PDF Tracking page