How can I call jQuery-UI components from a browser

2019-04-16 20:23发布

问题:

All mainstream browsers still support XSLT for rendering HTML from XML using XSLT, although most only support XSLT 1.0. Version 2.0 and some 3.0 can be used via Saxon-JS.

The advent of popular Javascript libraries for rendering HTML (I happen to use jQuery-UI), not only produces the visual HTML, but connects the components to event listeners for behavior.

I would like the best of both worlds. I would like to send XML to the browser to be rendered via XSL, but for interactive components, I would like to call the jQuery-UI renderer from my XSL.

Is this doable from an XSLT extension? Will the Saxon-JS find the reference on the browser to the Javascript engine?