Next / Previous / Contents / TCC Help System / NM Tech homepage

3. The XHTML to be generated

Here is a general outline of the page to be generated.

  1. A DOCTYPE identifier for XHTML 1.0. Although the existing PyStyler web uses HTML, we want to move toward XHTML, and there's no reason not to use it for generated pages.

  2. A head element containing:

    1. The page's title element.

    2. A link to the standard TCC stylesheet at /tcc/style.css on the server.

  3. The top navigational bar, a set of top navigational links. This must fit on a single line, with the links separated by the string " / ".

    Each link has a short name consisting of a generic word or phrase such as “Next” or “Site map”. The word or phrase always appears, even if it is not a link. Thus the layout of the top nav bar is static over the whole site.

  4. The formal page header, formatted as a one-row, two-column table with the page title on the left and the TCC logo graphic on the right.

  5. The page body, followed by a horizontal rule (hr element).

  6. A set of bottom navigational links. Each appears on a separate line, and the entire line is omitted if that link points nowhere.

    Each bottom nav link consists of three parts:

    • A boldfaced generic link type, which will be the same as that link in the top nav link, e.g., “Next”, followed by a colon and space.

    • One or more destination links, each of which uses the page title (or a close approximation) as its link text. If there are multiple links, they are separated by semicolons.

  7. Another horizontal rule, followed by the colophon:

    • The “author credit”, which for dynamic pages will credit not a human author, but the script that wrote the page.

    • The date and time when the page was generated.

    • The URL of the page, if known.