Understand XForms with the new “DMV Forms” sample application

We just introduced for the first time at the ObjectWeb conference a new XForms example that runs on the Orbeon PresentationServer (OPS) 3.0 platform. The “DMV Forms” sample application shows how to implement dynamic web forms “the right way” with XForms, services and OPS. It is based on a real-life form, namely a California Department of Motor Vehicles form.
Access a live demo of the example within the OPS examples portal or standalone (faster).
The DMV Forms example tackles:
-
Using XForms to capture and display form data. XForms was designed primarily to replace HTML forms, and of course it shines at capturing and displaying form data. We illustrate how to use XForms control to capture simple text data, dates, and flags.
-
Using XML Schema to validate form data. By using XForms’s XML Schema support, you can write validation constraints once and use them both on the client and on the server. We also show how you can use other XForms constraints to ensure that certain fields are required.
-
Using XForms to retrieve and save data from XML services. XForms is fully XML-aware, not only in its syntax, but in the way it communicates with the external world. This example retrieves and stores data through XML services thanks to the XForms submission facilities.
-
Repeating homogeneous data sections. In this example we show how you can easily insert new rows and delete existing rows in a repeated section, using
xforms:repeat,xforms:insertandxforms:delete, while controlling the minimal and maximal number of rows. -
Producing forms in formats such as HTML, XML or PDF. Storing form data in XML format makes it easy to exchange between systems. This example allows you to easily look at the resulting XML document. It also features a full template-based PDF export, which allows you to print an official resulting form. The PDF facilities are available in Orbeon PresentationServer.
-
Implementing XML services. Many technologies and platforms can be used to implement services. Orbeon PresentationServer does not focus on services but on the presentation, however, we show how you can quickly implement XML services with OPS’s Page Flow Controler, XPL and the eXist XML database,
-
Navigating between pages. XForms pages rarely exist in a vacuum, and are often part of a flow of pages. Here we show how you can easily go back and forth between a summary and detail page while passing information in the process using the OPS Page Flow Controller and XForms facilities such as
xforms:loadandxforms:submission. -
Externalizing resources. We show how easy it is to externalize text resources in order to facilitate maintenance and localization.
This morning I was fighting against some nasty little bug and it got to a point where I needed some additional tool to squash the villain: a tool that would show me the HTTP headers sent back by my web application. For this, I used
Models, even if sometimes crude, can help us better get a understanding of the world. After dividing the industry in 3 sectors (goods, services, and insurances), we have seen how this model applies to software. We’ll focus now specifically on open source software, and we’ll see how this model can help use categorize different types of open source business models.
How do we pay and how should we pay for software: as a good, service, or insurance? Traditionally, software has been sold as a good, often even packaged in a box and available in a store. This was not unlike traditional goods where each additional “copy” has to be produced or manufactured, and shipped, at a cost to the vendor. Of course with the Internet, all of this has changed: now software can be delivered at virtually no cost.
This “article” will be split in 3 parts, to keep each one short and focused. With absolutely no credential in the field of economics, we will start in this first part by looking at another way to divide our industry into 3 sectors. In the second part, we’ll see how this can help us better understand different business models for software. And finally we’ll look more specifically at open source software, a subject dear to our heart, and see how to classify different open source business models.
Postings RSS