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