<!-- Yes we should not be using the <tt> "teletype" tag as it is deprecated. -->
<p>As you can see, this is an XML tag format similar to HTML but with tags defined to hold cave survey data. These files are processed by troggle in real-time to produce an HTML file on the fly which is sent to your browser so that it
<p>When you fill in the online form you creating a file just like the one above: troggle takes the input data from the form and creates the file. Troggle also stores the cave information in it's live memory when you use the form method.
<p>If instead of using the form you create the file by hand and upload it to the server you will also need find a nerd to run the cave import procedure before troggle "knows" that the cave exists.
<h3>Cave entrances</h3>
<p>There is <ahref="newentrancefile.html">an exactly analogous file</a> for cave entrances except that those files live in <spanstyle="font-family: monospace">::expoweb::/entrance_data/</span>
<h2>File layout</h2>
<p>The caves in our site are stored as XML files in the directory <tt>::expoweb::/cave_data</tt> and in
files named <tt>::expoweb::/cave_data/{area}-{cavenumber}</tt>. Entrances are correspondingly
in <tt>::expoweb::/entrance_data</tt> files, with the same naming convention, except that if
there is more than one entrance they have a,b,c suffixes, e.g. <tt>::expoweb::/<b>entrance</b>_data/{area}-{cavenumber}b</tt>
<p></p>Any <em>associated files</em>, usually photos and surveys, are
stored under the area names <tt>::expoweb::/1623/{cavenumber}</tt> or <tt>::expoweb::/1626/{cavenumber}</tt>
Note that this is a different naming convention: caves and entrances have the {area} as <em>
part of the file name
</em>
whereas associated files have the {area} <em>as a directory</em> in which the files are stored.
<p>An
understanding of this file layout is very important when filling in the forms or writing the tags so that images
appear on the final published website. The URLs in the XML file <em>should be relative URLs</em> to the cave page, which <em>appears</em>
as <tt>cave/{area}/{cavenumber}</tt> on the website even though <em>internally</em> they are <tt>cave_data/{area}-{cavenumber}</tt></p>