XForms 1.0 推荐标准 第2部分

TransWiki - W3CHINA.ORG开放翻译计划(OTP)

目录 | 第1部分 | 第2部分 | 第3部分 | 第4部分 | 第5部分 | 第6部分 | 第7部分 | 第8部分 | 第9部分 | 第10部分 | 第11部分 | 第12部分 | 第13部分 | 附录A | 附录B | 附录C | 附录D | 附录E | 附录F | 附录G | 附录H | 附录I | 附录J |


2 XForms导论

XForms has been designed on the basis of several years' experience with HTML forms. HTML Forms have formed the backbone of the e-commerce revolution, and having shown their worth, have also indicated numerous ways they could be improved.


XForms是在多年的HTML表单基础上设计出来的。HTML表单形成了电子商务革命的支柱,显示了自身的价值,同时也表现出其可以被改进的若干方面。


The primary difference when comparing XForms with HTML Forms, apart from XForms being in XML, is the separation of the data being collected from the markup of the controls collecting the individual values. By doing this, it not only makes XForms more tractable by making it clear what is being submitted where, it also eases reuse of forms, since the underlying essential part of a Form is no longer irretrievably bound to the page it is used in.


与HTML表单比起来,XForms最大的不同点就是将数据整体采集与使用控件采集单独的值分离开来。这样做不仅能够清楚表明被提交的数据究竟是什么,使XForms更易于处理,同时也可以使表单的重复利用变得更容易,因为表单最本质的部分再也不像以前一样受到使用这个表单的web页面的限制。


A second major difference is that XForms, while designed to be integrated into XHTML, is no longer restricted only to be a part of that language, but may be integrated into any suitable markup language.


另一个主要的不同是,XForms虽然统一于XHTML中,但它并不仅仅是这种语言的一部分而已,它能够被整合进各种合适的标记语言中。


XForms has striven to improve authoring, reuse, internationalization, accessibility, usability, and device independence. Here is a summary of the primary benefits of using XForms:


XForms着力改进了编写、重用、国际化、存取性能、使用性能以及设备无关性。以下概括了使用XForms的益处:


Strong typing 强类型


Submitted data is strongly typed and can be checked using off-the-shelf tools. This speeds up form filling since it reduces the need for round trips to the server for validation.


被提交的数据is strongly typed,并可以使用off-the-shelf工具进行检查。这大大提高了表格的填写速度,因为它降低了往返服务器请求确认的需求。


XML submission 使用XML提交数据


This obviates the need for custom server-side logic to marshal the submitted data to the application back-end. The received XML instance document can be directly validated and processed by the application back-end.


使用XML提交数据,就不用为了适应请求终端的数据整合要求而做服务器端的配置。请求终端接受到的XML实例文件可以被直接验证并使用请求终端的应用程序进行处理。


现存模式(schema)的重用 Existing schema re-use

This obviates duplication, and ensures that updating the validation rules as a result of a change in the underlying business logic does not require re-authoring validation constraints within the XForms application.


外部模式扩充 External schema augmentation

This enables the XForms author to go beyond the basic set of constraints available from the back-end. Providing such additional constraints as part of the XForms Model enhances the overall usability of the resulting Web application.


国际化 Internationalization

Using XML 1.0 for instance data ensures that the submitted data is internationalization ready.


增强的存取性能 Enhanced accessibility

XForms separates content and presentation. User interface controls encapsulate all relevant metadata such as labels, thereby enhancing accessibility of the application when using different modalities. XForms user interface controls are generic and suited for device-independence.


支持多重设备 Multiple device support

The high-level nature of the user interface controls, and the consequent intent-based authoring of the user interface makes it possible to re-target the user interaction to different devices.


少用脚本 Less use of scripting

By defining XML-based declarative event handlers that cover common use cases, the majority of XForms documents can be statically analyzed, reducing the need for imperative scripts for event handlers.

个人工具
其它语言
 
 Page execution time: 238.06 ms.
网上报警 苏ICP备05002329号