⬆️ ⬇️

Answers to frequently asked questions about XForms 1.0

In this document, members of the W3C XForms Working Group gathered frequently asked questions about XForms 1.0.







What are the benefits of XForms?



')

Here are the main benefits:



XForms improve usability .

XForms are designed to allow you to check a lot on the browser side: field types, their obligation to fill out; that one date should follow another. This reduces the need for data exchange with the server or for bulk scripting solutions, and also improves usability: the response to the input follows as the fields are filled.



XForms is XML and can pass XML .

XForms are properly embedded in XML: these are XML, the data collected in the form is also XML, XML documents can be loaded as source data, and the results can be transferred in XML format. Ultimately, this means that we have an XML transmission channel, right down to the user's desktop.



XForms integrate existing XML technologies .

Instead of reinventing the wheel, XForms uses many existing XML technologies, such as XPath to access and calculate values, and XML Schema to define data types. This gives a double advantage: ease of learning for those who already know these technologies, as well as the opportunity for developers to use ready-made components to create systems.



XForms is platform independent .

The same form can be transmitted without changes to a regular browser, PDA, mobile phone, voice browser, and even some new exotic clients like messaging programs. This greatly facilitates the transfer of forms to a wide audience, because you have to write one universal code.



XForms makes it easier to create complex forms .

Since XForms use a declarative approach to defining the properties of values ​​and the links between them, it is much easier for the author to create complex and universal forms without resorting to scripting.



XForms are internationalized .

Since the data is transmitted as XML, they are properly internationalized.



XForms available .

XForms are designed in such a way that they work equally well with special technologies, for example, for visually impaired users, as well as with ordinary visual browsers.



What can I do with XForms, what can't I do with old HTML forms?





XForms can do everything HTML can, and something else. In particular, XForms allow:







XForms harder than HTML forms?





Not. The XForms recommendation may seem complicated, but it is not a technology tutorial; it is intended for authors of implementations who require precise details, and therefore contains a lot of details.



The same form, written in HTML and XForms, looks about the same. Once you create forms that are not intended for HTML, XForms becomes much easier. Thus, XForms contains something that is not in HTML, but this is done to simplify the process of creating forms. For examples, see “ XForms for HTML Authors ”.



Do I need to wait for new browsers?





Not. There are already several implementations that allow using XForms with existing browsers, both with the attraction of plug-ins and server-side form conversion, and with the help of the built-in functionality.



There is a list of XForms implementations that contains details about many projects; xml.com has an editorial overview with snapshots of some implementations.



Will XForms work on PDAs and mobile phones?





At the time of writing, XForms were shown on PDAs and mobile phones using substitutes, using technologies that are widely used to present network content on small devices. We expect that native XForms clients will soon appear on mobile devices.



What servers are currently working with XForms?





Everything! XForms has several new submission methods compared to HTML forms, but they are all standard HTTP methods for sending data over the network. XForms can use PUT to put data on a server, can communicate with a SOAP or XML RPC server, but also inherits formats that allow forms to work with all existing servers.



What organizations support XForms?





The XForms working group, which created the technology, includes representatives from many IT companies, see the press release and reference features of XForms for details . In this case, a large number of implementations . In fact, XForms is the most widely implemented W3C specification at this stage in its life cycle.



Some large user groups are already emerging, including the British initiative with the electronic parliament, the tax service of a particular country, and the insurance industry.



Are other companies not working on new form technologies?





This is true. Forms have become the basis of the revolution in network commerce, and they still remain an important issue! However, many companies that support XForms, believe that the advantage of using technology that is not protected by patents, which is based on common standards and is not tied to one developer. This means an abundance of user agents for various platforms. In addition, we believe that, once appreciating the advantages of XForms — the creation of one code for different platforms, the interaction with XML, the ability to “edit” external XML documents — you no longer want to look at other technologies!



Where to get more information?





A good source of information is the XForms home page .



Books are published on XForms, the search query "XForms" in any well-known online store should help.



There is an introduction to XForms for HTML authors .

Source: https://habr.com/ru/post/31391/



All Articles