1 Steps for making a new application:
2
3 1. Design a template, adding forms and fields. In the beginning, it is not
4 that important to use the correct names in each of the fields - these
5 will be added later.
6
7 2. Add structural template attributes such as template:element,
8 template:attribute and template:value so that the fields sit in
9 different parts of the input document format being modelled. Replace
10 the field names with special functions such as template:field-name().
11 For buttons which add and remove parts of the input document, employ
12 selector notation and the template:this-position() function.
13
14 3. Where multiple choice fields are employed, input documents must be
15 transformed so that the multiple choice options are included in the
16 output. This can be achieved using documents containing the different
17 option values and transformations which insert those values into the
18 input document.
19
20 4. To produce the output document, the template needs preparing first so
21 that an output stylesheet is produced; then, the output stylesheet is
22 applied to the processed input document utilising various extension
23 functions which produce the computed field names in the final output
24 document.
25
26 Recommendations:
27
28 * Where multiple fields exist and can be added and removed, put them
29 inside a separate element so that the selectors can successfully
30 identify them. Otherwise, changing element orders can result in the
31 wrong element being selected.
32
33 * Make sure that transformations on the input document produce all the
34 necessary elements for the output document so that the resulting page
35 gives the user the opportunity to specify data that is missing.