XSLTools

Annotated docs/directory.html

178:7e7d9dbcec62
2005-07-22 paulb [project @ 2005-07-22 18:26:38 by paulb] Tidied up the function names and added some API documentation. Added child-element and child-attribute functions for coherent references to potentially non-existent nodes in the form data.
paulb@118 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
paulb@118 2
<html xmlns="http://www.w3.org/1999/xhtml">
paulb@118 3
<head>
paulb@118 4
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" />
paulb@118 5
  <title>Creating Applications: Create a Directory</title>
paulb@134 6
  <meta name="generator"
paulb@134 7
 content="amaya 8.1a, see http://www.w3.org/Amaya/" />
paulb@118 8
  <link href="styles.css" rel="stylesheet" type="text/css" />
paulb@118 9
</head>
paulb@118 10
<body>
paulb@134 11
<h1>Creating Applications: Create
paulb@134 12
a Directory</h1>
paulb@134 13
<p>The recommended directory
paulb@134 14
structure of an XSLForms application is as
paulb@118 15
follows:</p>
paulb@134 16
<table style="text-align: left; width: 80%;" align="center" border="0"
paulb@134 17
 cellpadding="5" cellspacing="0" width="60%">
paulb@128 18
  <tbody>
paulb@128 19
    <tr>
paulb@128 20
      <td width="60%"></td>
paulb@134 21
      <th style="text-align: left;" colspan="2" width="40%">Example
paulb@134 22
Directory
paulb@134 23
Structure<br />
paulb@128 24
      </th>
paulb@128 25
    </tr>
paulb@128 26
    <tr>
paulb@134 27
      <th style="text-align: right;">A
paulb@134 28
top-level directory corresponding to a Python package</th>
paulb@134 29
      <td
paulb@134 30
 style="background-color: rgb(204, 204, 255); border-top-style: solid; border-left-style: solid; border-right-style: solid; border-right-width: 1px; border-left-width: 1px; border-top-width: 1px;"
paulb@134 31
 align="undefined" valign="undefined"><code><span
paulb@134 32
 style="font-weight: bold;">VerySimple</span><br />
paulb@134 33
__init__.py</code></td>
paulb@134 34
      <td></td>
paulb@128 35
    </tr>
paulb@128 36
    <tr>
paulb@134 37
      <th style="text-align: right;">A&nbsp;subdirectory
paulb@134 38
containing non-code resources for the
paulb@128 39
application</th>
paulb@134 40
      <td
paulb@134 41
 style="background-color: rgb(204, 204, 255); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px;"><br />
paulb@128 42
      </td>
paulb@134 43
      <td><span class="subdirectory"><code><span
paulb@134 44
 style="font-weight: bold;">Resources</span><br />
paulb@134 45
...</code></span></td>
paulb@128 46
    </tr>
paulb@128 47
  </tbody>
paulb@128 48
</table>
paulb@134 49
<p>For the above example, the
paulb@134 50
directory structure would be created using&nbsp;UNIX-style commands
paulb@134 51
as follows:</p>
paulb@129 52
<pre>mkdir VerySimple<br />mkdir VerySimple/Resources<br />touch VerySimple/__init__.py</pre>
paulb@134 53
<p>It is in the <code>Resources</code>
paulb@134 54
subdirectory that we will save
paulb@134 55
our template files when <a href="design.html">designing</a>
paulb@134 56
them as
paulb@134 57
part of the next activity in the application development <a
paulb@134 58
 href="overview.html">process</a>.</p>
paulb@118 59
</body>
paulb@118 60
</html>