XForms 仍然是现行标准吗?
XForms 标准页面似乎表明它已不再存在,现在 html5 可以完成这项工作。是这样吗?我正在考虑将异构数据块存储为 XML 片段 - 根据数据类型生成编辑器页面。
The XForms standard page seemed to indicate that it was no longer live, and that html5 kinda sorta does the job now. Is this the case? I'm looking at storing heterogenous data nuggets as XML fragments - generating a editor page according to the datatype.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对 Phil 的回答进行补充:
W3C 的 XForms 工作组很活跃,目前正在研究 XForms 2.0。请特别参阅 wiki 上提议的 2.0 功能 和 截至 2012 年 2 月正在进行的规范草案。
另外,我认为说 HTML 5“完成了这项工作”是不公平的。 HTML 5 表单比 HTML 4 表单带来了一些小而受欢迎的改进,但它们并没有弥合与 XForms 的差距。
另一方面,XForms 提供:
xf:repeat
声明性属性和计算的xf:submission
REST 服务我可能缺少一些。
更新 2016 年 11 月 28 日: 有关截至 2016 年底的最新答案,请参阅此 新问题。
To add to Phil's answer:
The XForms Working Group at W3C is active and currently working on XForms 2.0. See in particular the proposed 2.0 features on the wiki and the in-progress draft of the spec as of Feburary, 2012.
Also I don't think it's fair to say that HTML 5 "does the job". HTML 5 forms bring small and welcome improvements over HTML 4 forms, but they don't bridge the gap with XForms.
XForms on the other hand provides:
xf:repeat
xf:submission
And I am probably missing some.
UPDATE 2016-11-28: For an answer up to date as of the end of 2016, please see this newer question.
该标准绝对没有消亡,尽管可以说它在标准网络浏览生态系统中没有获得太大的吸引力。
我参与过许多项目,其中 XForms 被用作某些定制应用程序中的表单层;在我的例子中,XForms 部分由 Backplane BX 或 Ubiquity XForms,根据您的要求,这两者可能都值得一看(全面披露:我曾在过去作为这两个项目的实施者)。背板 BX 是 Windows/IE 专用的; Ubiquity XForms 是一个跨浏览器、客户端 JavaScript 库;两者都是开源的。
还有许多其他库我没有使用过,但我听说过它们的好消息:Orbeon 和 XSLTForms 浮现在脑海中,但可以找到更完整的列表,尽管有点过时此处。
The standard definitely isn't dead, although it's perhaps true to say that it hasn't gained much traction within the standard web-browsing ecosystem.
I have worked on a number of projects where XForms has been used as the forms layer in some bespoke application; in my cases the XForms parts have been handled by either Backplane BX or Ubiquity XForms, both of which may be worth taking a look at depending on your requirements (full disclosure: I've worked in the past as an implementer on both projects). Backplane BX is Windows/IE specific; Ubiquity XForms is a cross-browser, client-side javascript library; both are open source.
There are also a number of other libraries that I've not worked with but which I've heard good things about: Orbeon and XSLTForms spring to mind, but a more complete, albeit slightly outdated, list can be found here.