Next we set up some manifest constants, grouped at the top of the script for easy maintenance.
lxml package does not support
generation of a DOCTYPE declaration, we'll just write one
at the top of the file as ordinary text.
XHTML_DOCTYPE = ( '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n' ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n' )
This is the namespace URI that identifies the XHTML document type.
XHTML_NS = "http://www.w3.org/1999/xhtml"
Gives the URL of the stylesheet for TCC web pages.
CSS_URL = "http://www.nmt.edu/tcc/style.css"
This is the string that separates elements of the page-top navigational bar.
TOP_NAV_SEP = " / "
This is the URL that people reach if they click on the TCC logo.
TCC_MAIN_URL = "http://www.nmt.edu/tcc/"
This is the URL of the official TCC logo.
TCC_LOGO_URL = "http://www.nmt.edu/tcc/images/logo.png"