1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> 5 <title>Creating Applications: An Overview</title> 6 <meta name="generator" 7 content="amaya 8.1a, see http://www.w3.org/Amaya/" /> 8 <link href="styles.css" rel="stylesheet" type="text/css" /> 9 </head> 10 <body> 11 <h1>Creating Applications: An Overview</h1> 12 <p>The following steps briefly describe how to make a new application:<br /> 13 </p> 14 <ol> 15 <li>Design a template, adding forms and fields. In the beginning, it 16 is not that important to use the correct names in each of the fields - 17 these will be added later.</li> 18 <li>Add structural template attributes such as template:element, 19 template:attribute and template:value so that the fields sit in 20 different parts of the input document format being modelled. Replace 21 the field names with special functions such as template:field-name(). 22 For buttons which add and remove parts of the input document, employ 23 selector notation and the template:this-position() function.</li> 24 <li>Where multiple choice fields are employed, input documents must 25 be transformed so that the multiple choice options are included in the 26 output. This can be achieved using documents containing the different 27 option values and transformations which insert those values into the 28 input document.</li> 29 <li>To produce the output document, the template needs preparing 30 first so that an output stylesheet is produced; then, the output 31 stylesheet is applied to the processed input document utilising various 32 extension functions which produce the computed field names in the final 33 output document.</li> 34 </ol> 35 <h2>Recommendations</h2> 36 <ol> 37 <li>Where multiple fields exist and can be added and removed, put 38 them inside a separate element so that the selectors can successfully 39 identify them. Otherwise, changing element orders can result in the 40 wrong element being selected.</li> 41 <li>Make sure that transformations on the input document produce all 42 the necessary elements for the output document so that the resulting 43 page gives the user the opportunity to specify data that is missing.</li> 44 </ol> 45 </body> 46 </html>