XForms 仍然是现行标准吗?

发布于 2024-10-17 21:32:10 字数 90 浏览 1 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半城柳色半声笛 2024-10-24 21:32:10

对 Phil 的回答进行补充:

W3C 的 XForms 工作组很活跃,目前正在研究 XForms 2.0。请特别参阅 wiki 上提议的 2.0 功能截至 2012 年 2 月正在进行的规范草案

另外,我认为说 HTML 5“完成了这项工作”是不公平的。 HTML 5 表单比 HTML 4 表单带来了一些小而受欢迎的改进,但它们并没有弥合与 XForms 的差距。

另一方面,XForms 提供:

  • MVC 架构
  • XML 数据模型(当然,您喜欢或不喜欢)
  • 强大重复模型
  • 具有 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:

  • MVC architecture
  • XML data model (you like it or you don't, of course)
  • a powerful repeat model with xf:repeat
  • declarative properties and calculations
  • declarative event handlers
  • integration between the data model and REST services with xf:submission
  • built-in notion of hint, help, and alert messages

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.

只是我以为 2024-10-24 21:32:10

该标准绝对没有消亡,尽管可以说它在标准网络浏览生态系统中没有获得太大的吸引力。

我参与过许多项目,其中 XForms 被用作某些定制应用程序中的表单层;在我的例子中,XForms 部分由 Backplane BXUbiquity 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文