1 <?xml version="1.0" encoding="iso-8859-1"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml"><head> 4 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> 5 <title>Creating Applications: Create a Directory</title> 6 <link href="styles.css" rel="stylesheet" type="text/css" /></head> 7 <body> 8 <h1>Creating Applications: Create 9 a Directory</h1> 10 <p>The recommended directory 11 structure of an XSLForms application is as 12 follows:</p> 13 <table style="text-align: left; width: 80%;" align="center" border="0" cellpadding="5" cellspacing="0" width="60%"> 14 <tbody> 15 <tr> 16 <td width="60%"></td> 17 <th style="text-align: left;" colspan="2" width="40%">Example Directory Structure</th> 18 </tr> 19 <tr> 20 <th style="text-align: right;">A 21 top-level directory corresponding to a Python package</th> 22 <td 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;" align="undefined" valign="undefined"><code><span style="font-weight: bold;">VerySimple</span><br /> 23 __init__.py</code></td> 24 <td></td> 25 </tr> 26 <tr> 27 <th style="text-align: right;">A subdirectory 28 containing non-code resources for the 29 application</th> 30 <td 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 /> 31 </td> 32 <td><span class="subdirectory"><code><span style="font-weight: bold;">Resources</span><br /> 33 ...</code></span></td> 34 </tr> 35 </tbody> 36 </table> 37 <p>For the above example, the 38 directory structure would be created using UNIX-style commands 39 as follows:</p> 40 <pre>mkdir VerySimple<br />mkdir VerySimple/Resources<br />touch VerySimple/__init__.py</pre> 41 <p>It is in the <code>Resources</code> 42 subdirectory that we will save 43 our template files. First, however, we must undertake some <a href="data.html">data definition</a> as the next activity in the application development <a href="overview.html">process</a>.</p> 44 </body></html>