Next / Previous / Index / ITC Help System / Publications / Site map / NM Tech homepage

DOM example: Web presentation

Tech Computer Center logo

Given the existence of the previously discussed Python module, the HTML presentation is written by a Python script named addr-web.

Here are the command line options to this script:

    addr-web [-u] infile.xml
-u Show unlisted entries and phone numbers. Default is to omit them.
infile.xml Name of the input file, valid according to address.dtd.

Design considerations for this script:

Heavy use is made of Cascading Style Sheets to give the Web rendering an attractive styling. Here is a list of the principle rules in the address.css stylesheet:
span.intro-date The date/time stamp in the introductory paragraph. A phone number.
span.index-term The string used to alphabetize this block. For a person, e.g., this will be 'Last[, First][ "Nick"]'. An <org> element other than the index-term. The <contact> element in an <org>, if any.
span.person A <person> element other than the index-term.
span.loc A location (mail or street).
span.dir The content from a <directions> element.
span.notes The <notes> content if any.

See also: Document Object Model example: address book
Previous: DOM example: address book software design
Site map
Index: Keyword index to help pages
Help: New Mexico Tech Information Technology and Communications: Help System
ITC Publications
To report a problem: File a ticket
Send mail to the User consultant on duty or call them at 575-835-5437
Home: About New Mexico Tech

John Shipman,
Last updated: 2002/11/07 00:48:41 UT
QR two-dimensional bar code