1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/docs/data.html Tue Jul 19 00:19:38 2005 +0000
1.3 @@ -0,0 +1,101 @@
1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.5 +<html xmlns="http://www.w3.org/1999/xhtml">
1.6 +<head>
1.7 +
1.8 +
1.9 +
1.10 +
1.11 +
1.12 +
1.13 +
1.14 +
1.15 + <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" />
1.16 +
1.17 +
1.18 +
1.19 +
1.20 +
1.21 +
1.22 +
1.23 +
1.24 +
1.25 +
1.26 +
1.27 +
1.28 + <title>Creating Applications: Design the Structure of the Form Data</title>
1.29 + <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" />
1.30 +
1.31 +
1.32 +
1.33 +
1.34 +
1.35 +
1.36 +
1.37 +
1.38 + <link href="styles.css" rel="stylesheet" type="text/css" />
1.39 +</head>
1.40 +
1.41 +
1.42 +<body>
1.43 +
1.44 +
1.45 +
1.46 +
1.47 +<h1>Creating Applications: Design the Structure of the Form Data</h1>
1.48 +
1.49 +
1.50 +
1.51 +
1.52 +<p>Before designing a template, we must first consider how the form
1.53 +data to be modelled in our application will be structured. Let us
1.54 +consider the following hierarchical structure:</p>
1.55 +
1.56 +<ul>
1.57 +
1.58 + <li>A list of items, each containing...<br />
1.59 +
1.60 +
1.61 +
1.62 +
1.63 +
1.64 +
1.65 +
1.66 +
1.67 +
1.68 +
1.69 +
1.70 +
1.71 + <ul>
1.72 +
1.73 + <li>An editable value.</li>
1.74 + <li>A list of subitems, each containing...<br />
1.75 + <ul>
1.76 + <li>An editable value.</li>
1.77 + </ul>
1.78 + </li>
1.79 +
1.80 +
1.81 + </ul>
1.82 +
1.83 +
1.84 +
1.85 +
1.86 +
1.87 +
1.88 + </li>
1.89 +
1.90 +</ul>
1.91 +
1.92 +<p>Since XSLForms is an XML-based framework, let us define this structure using an informal example XML document:</p>
1.93 +<pre><?xml version="1.0"?><br /><structure><br /> <item value="some value"><br /> <subitem subvalue="some other value"/><br /> </item><br /></structure></pre>
1.94 +<p>The above example only shows a single item and a single subitem
1.95 +within it. Our application will provide the ability to add and remove
1.96 +items and subitems, although this is not directly modelled in the XML
1.97 +documents that will be used to represent the form data.</p>
1.98 +<p>With this basic information defined, we can now proceed to <a href="design.html">designing a template</a> in the next stage of the <a href="overview.html">process</a>.</p>
1.99 +
1.100 +
1.101 +
1.102 +
1.103 +</body>
1.104 +</html>