johnlumley / jwiXML

An iXML processor for JavaScript and SaxonJS
MIT License
13 stars 0 forks source link

Donate public functions of library module the `visibility="public"` attribute decoration, to allow calling them with fn:transform/SaxonJS.transform #3

Open martin-honnen opened 1 year ago

martin-honnen commented 1 year ago

I would suggest to use the attribute visibility="public" (or perhaps visibility="final") on the various functions like compileGrammar or parse in the jwiXML XSLT library module as that then allows calling them directly with fn:transform or SaxonJS.transform as the initial-function/initialFunction from XPath/JS (https://www.w3.org/TR/xslt-30/#dt-initial-function).

martin-honnen commented 1 year ago

@johnlumley , are you on holiday or busy with other stuff? Or is that suggestion (which would allow calling your XSLT library functions from fn:transform and/or SaxonJS.transform as the initial-function/initialFunction) not something you want your library to be used for?