How can I call jQuery-UI components from a browser side XSL rendering of HTML using Saxon-JS?

自闭症网瘾萝莉.ら 提交于 2019-12-06 14:23:26

问题


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?

来源:https://stackoverflow.com/questions/44208134/how-can-i-call-jquery-ui-components-from-a-browser-side-xsl-rendering-of-html-us

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!