简体   繁体   English

使用 Javascript 在 XSLT 页面中包含富文本区域

[英]To include rich text area in XSLT page using Javascript

In one of the legacy project, business want to have rich text area on the client page.在一个遗留项目中,企业希望在客户端页面上有富文本区域。 The page is based on XSLT and javascript.该页面基于 XSLT 和 javascript。

The knowledge that I am having about xsl/xslt is limited.我对 xsl/xslt 的了解是有限的。 I searched on internet but not able to find any helpful/complete answer to my question.我在互联网上搜索,但找不到任何有用/完整的问题答案。

Need to know whether we can support rich text editor in XSL/XSLT page.需要知道我们是否可以在 XSL/XSLT 页面中支持富文本编辑器。

The traditional approach to using XSLT on the browser is that XSLT simply generates the HTML page content.在浏览器上使用 XSLT 的传统方法是 XSLT 仅生成 HTML 页面内容。 So you have to think about how to do the rich text editing in HTML/Javascript, and then when you've worked out what HTML and Javascript you want, it's a fairly simple job to write the XSLT code to generate it.所以你必须考虑如何在 HTML/Javascript 中进行富文本编辑,然后当你弄清楚你想要什么 HTML 和 Javascript 时,编写 Z139E293A7146F23CD247C6BE049EBF 代码来生成它是一项相当简单的工作。

If you want to code more of the actual interactive behaviour in XSLT, then you could consider using Saxon-JS.如果您想在 XSLT 中编写更多实际交互行为,那么您可以考虑使用 Saxon-JS。 As well as supporting XSLT 3.0 rather than the rather ancient 1.0 standard supported natively by the browsers, it allows you to write XSLT code that actually responds to user input events, rather than having to write this in Javascript.除了支持 XSLT 3.0 而不是浏览器原生支持的相当古老的 1.0 标准外,它还允许您编写实际响应用户输入事件的 XSLT 代码,而不必在 Z9E13B69D1D24AAAA93771 中编写此代码。 Declaration of interest: Saxon-JS is my product.利益声明:Saxon-JS 是我的产品。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM