| | When data entry is complete, the user clicks on a button to 'submit' the data. In fact, this fires the validation process, which if successful will populate the XML message file with the data, or if values fail the validation process, revise the form to show the values entered and error messages. The process is as follows:| | A generic XSLT stylesheet is applied to a datatypes XML file to produce an XSLT stylesheet which includes a template for each datatype. Each template contains the validation tests which are to be applied to data conforming to the datatype concerned.
|
| | A second generic XSLT stylesheet is applied to the context XML file to produce the XSLT stylesheet which will run the validation. The context file holds the datatype of each data item, so the resulting generated stylesheet links the context reference of individual data items to the XSLT template in the first generated stylesheet described above.
|
| | The generated stylesheets are applied to the XML file containing the form values, and an errors file produced. This contains, for each data item failing a validation test, the context reference of the item and the reference of the test it failed.
|
| | A generic XSLT stylesheet is applied to the XML file containing the form values, using the context references in this file to produce an XSLT stylesheet containing the full XPath expressions needed to populate the XML message file with the data from the form.
|
| | This stylesheet is applied to the XML message file, which may already be partially completed, to add the values entered by the user.
|
| | If errors have been found by validation, the 'Generate Form' module is fired to regenerate the form, using the errors file to include error messages, drawn from the datatypes file.
|
| | If no errors are file, a confirmation message is sent to the user.
|
|