Aeronautical Information Services (AIS) and XForms

October 12, 2011 at 2:19 pm 4 comments


One area where we give ourselves in the hand of technology is air traffic. As soon as we enter an airplane we have to trust a complex machinery and hope that machines, pilots and ground personal are doing their job right and bring us safely back to the ground. But flying does not only involve airplanes and well-trained pilots but mountains of data about airports, airspaces, run ways, weather conditions etc. etc.

A important acronym in this domain is ATM which stands for ‘Air Traffic Management’. Two of the most important organizations in air traffic are the Federal Aviation Association (FAA) and Eurocontrol. Together both organizations developed a conceptual model of the whole aeronautical domain and also offer an implementation of that model in XML Schema. This is the technological foundation for Aeronautical Information Services (AIS) that allow the digital exchange of data between all relevant parties.

However it takes more than a schema to build an application. The schema describes all the entities, objects and their relationships and it’s up to the software vendors to build complete solutions from that. All the data that are needed to ensure a high level of safety in the operation of air traffic must be entered by humans and those need good user interfaces to do their job. The gathered information is then used on-flight to give pilots up-to-date information about outages, special conditions at certain airports, restricted airspaces and so forth.

This is where XForms comes into play. The aforementioned schema consists of about 4 megabytes of schema definitions and about 150 ‘features’ and same amount of ‘objects’ as they are called in this model. These ‘features’ and ‘objects’ can then be combined with each other, nested within each other and linked to other ‘features’ and ‘objects’. All this happens at runtime when ground operators build complex messages from the available set of entities.

Though clean from a conceptual view this highly dynamic model puts heavy burdens on the engineers and eliminates any possibility to build static user interfaces to support all types of messages. Fortunately the authors of XForms decided to build it upon XML and as such it is ideally suited to be generated from a formal description such as a XML Schema.

The application described here was build by a leading vendor of Air Traffic Control (ATC) solutions.Their engineers have choosen a SOA approach to provide maximum flexibility and connectivity with other applications. In the backend a large Oracle database is used to store all the collected data. The whole user interface for collecting and maintaining the data is generated from the XML Schema resulting in about 300 separate XForms documents using several dozens of custom datatypes. Each form comes with its own template instance which represents one entity from the schema. Those template instances are then aggregated at runtime to build a certain message to be stored in the database.

The necessary aggregation of instances and associated user interfaces was a problem that couldn’t be solved elegantly with XForms 1.1. The key to success was a tiny extension to XForms allowing forms to be embedded in already loaded ones. With an additional value ’embed’ for the attribute ‘show’ of the XForms load action and an attribute ‘targetid’ this extension is only a very small addition to the language set of XForms. Here’s an example:

<xf:load show="embed' targetid="foo">
    <xf:resource value="'myResource'"/>
 </xf:load>

This extension has already been proposed for XForms 2.0 which is currently under development.

Additional challenges had to be met: we needed a way to exchange instance data of a subform with their respective ‘master’ and to allow to ‘mount’ some piece of data into the master instance to build a complete messages. We developed several solutions to this that do not break the encapsulation of the target model but discussion of the details is left to another blog post. Further we had to find a user interface presentation that allows an operator to keep the overview over a complex document. To solve this we implemented a tabbed control behaving like a XForms repeat – for each loaded subform a tab is dynamically added and shows the respective subform within it. An additional breadcrumb navigation helps to keep track of the hierarchy in the document. Last but not least the instance data of a stored message are not allowed to contain empty nodes. Thus when loading a stored message for editing the data had to be merged with their template instances. This was solved with a XSLT transform to be executed whenever a message was read from the web-service layer of the database.

After heavy and serious testing the customer was able to deliver the first implementation of the standard worldwide which is now in production use in several countries. Soon after first release the generative approach proved itself valuable as the application needed to be migrated to a new XML Schema version. With a single excecution of the XForms generator the new forms were available and could be used right away.

We think this project is an impressive example of the power of XForms. To summarize the facts:

  • 300 generated XForms documents
  • about 50 custom datatypes
  • a highly dynamic user interface embedded inside of a portal
  • about 4 megabyte of raw XML Schema data using about a dozen of different namespaces
  • massive use of optional elements
  • all forms connected to SOAP web-services
  • running in a standard web browser without any plugins
  • not a single line of script code was necessary to implement the forms

Entry filed under: XForms. Tags: , , .

XML Summer School is using betterFORM News from the editor

4 Comments Add your own

  • 1. Christian Bosson (@christianbosson)  |  January 8, 2013 at 2:11 am

    Very interesting post, thank you !
    I have a question : you said “The whole user interface (…) is generated from the XML Schema resulting in (…) separate XForms documents (…)”. How did you do that ? Is it a generic or automated method to do it ?
    I am currently evaluating XForms with a sample application, for which I have defined a relatively complex XML Schema. I find very painful to have to write instances, bindings and UI elements for each complex types of my schema in my forms (and to update them when my schema is evolving !).
    I would be very interested to know a little more about your experience on that problem.
    Thanks in advance !

    Reply
    • 2. joernturner  |  January 8, 2013 at 10:50 am

      We used XSLT to build a generator that converted the schemas into xforms. This was not a single-step transform but several transformations building on each other. This normally can’t be done without some ‘special case’ handling. E.g. there are constructs in some schemas that cannot be automatically (or generically) be transformed into a UI. In these cases you have to help the generator by adding special templates. Building such generator is an incrementatl process which make take some days but that effort is still not comparable to hand-coding all forms. If you’d like to learn more please don’t hesitate to contact us at info at betterform dot de.

      Reply
      • 3. Arnaud M  |  April 8, 2014 at 4:54 pm

        Hi,
        do you plan to open source the XSLT files, as it could be very handy to bootstrap big XForms creation.

        Thanks.

      • 4. joernturner  |  October 9, 2014 at 11:26 pm

        Oops – missed your comment. The whole project is open source so you can take the XSLT and use them freely🙂

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Recent Posts

betterFORM tweets


%d bloggers like this: