有人在他们的 Web 应用程序中使用 XForms 吗?
几年前,我们开始尝试使用 W3C 的 XForms 来开发一个需要数百个自定义表格。
由于主要浏览器目前不支持它们,您今天在项目中使用哪些解析器/工具?
我对插件并不是很感兴趣——这需要是服务器端模拟 XForms 的东西。
A few years ago we started playing around with XForms from the W3C for a web app which required hundreds of custom forms.
As they aren't currently supported natively by the major browsers, what parsers/tools are you using on your projects today?
I'm not really interested in plugins - this needs to be something server side that emulates XForms.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我们使用 XForms 为基于 SOAP 的 Web 服务创建用户界面。 目前我们与 Chiba XForms 引擎 (http://chiba.sourceforge.net/),但是Orbeon(http://www.orbeon.com/ )实际上看起来更加成熟。 两者都是服务器端引擎,可以即时将 XForms 转换为 HTML。 验证是在 AJAX 的帮助下在服务器端执行的。 这对服务器提出了相当高的要求,因此在创建流量大的网站时我不会押注于这些引擎。 XForms Wikipedia 页面上详细记录了替代方案:http://en.wikipedia.org/wiki/XForms。
We use XForms for creating user interfaces for SOAP-based web services. Currently we settled with Chiba XForms engine (http://chiba.sourceforge.net/), but Orbeon (http://www.orbeon.com/) actually seems more mature. Both are server-side engines, which convert XForms into HTML on the fly. The validation is performed on server side with the help of AJAX. This puts quite high demands on the server, so I wouldn't bet on those engines when creating sites with heavy traffic. Alternatives are well documented on XForms Wikipedia page: http://en.wikipedia.org/wiki/XForms.
据我所知,XForms 非常适合当前基于 REST 的架构风格,同时以一种非常简洁的方式解决了复杂表单开发的大多数主要问题。
遗憾的是,人们基本上已经忘记了它:(
也就是说,有一些基于 Javascript 的 xforms 引擎,例如 普遍性将有助于获得跨浏览器xforms支持,并且最近开发的高性能Javascript VM也将为此类引擎提供出色的性能。
As far as I've understood, XForms is a natural fit to the current flavour of REST-based architectures while addressing most of the major issues with complex form development in a pretty neat way.
It's sad that people have largely forgotten about it :(
That said, there are Javascript-based xforms engines like Ubiquity that would help in getting cross-browser xforms support. And the recent development of high-performance Javascript VM's would give such engines great performance as well.
还可以仅通过 XSLT 转换将 XForms 转换为 XHTML+Javascript,因此无需插件即可在客户端完成。 请查看 http://www.agencexml.com/xsltforms/。 这是一个开源项目:http://sourceforge.net/projects/xsltforms
It is also possible to convert XForms to XHTML+Javascript with just an XSLT transformation so it can be done on client-side without plug-in. Have a look at http://www.agencexml.com/xsltforms/. It's an opensource project : http://sourceforge.net/projects/xsltforms
我不使用它们,并且由于任何主要浏览器都不支持它们,我怀疑其他人也不会经常使用它们。
I do not use them and as they are not supported by any major browsers I doubt that anybody else will use them very often either.