Skip to navigation

UW Gazette Archive

http://pole.uwaterloo.ca/cpahome/Gazette/

This is a listing of the UW Gazette from 1992 to 2004. It organizes the issues by years, then issues, then articles.

The main problem with the Gazette directory is the inconsistency in file naming, not to mention that there were many file formats used (plain text, HTML, Word documents, PDF, etc). Therefore the ruby script "xmlbuilder.rb" is written to manually account for the differences, and generate a large XML file (list.xml) that abstracts away the differences by listing the files in a uniform manner.

The PHP page that displays the archive is relatively simple with the XML file; it simply performs three XSL transformations on list.xml (of course, each with a different XSLT stylesheet), passing in $_GET variables as XSLT parameters to generate the lists.

The .xsl files specify how the XML data should be displayed; although they all work on the same data, each XSLT document picks out different parts of the XML and renders different HTML for them.
show.php is a simple HTML wrapper for plain-text files.

UW Website Redesign on Facebook