2. How does the OUCS system work?

The OUCS XML documentation system has six components:

  1. An XML schema, derived from the Text Encoding Initiative, located at http://www.oucs.ox.ac.uk/schemas/tei-oucs.rng
  2. A set of XSLT stylesheets, which can transform document instances to HTML pages; see http://www.tei-c.org/Tools/Stylesheets/
  3. A set of XSLT stylesheets, which can transform document instances into PDF for printing; see http://www.tei-c.org/Tools/Stylesheets/
  4. CSS stylesheets for displaying the XML files directly (http://www.oucs.ox.ac.uk/schemas/tei-oucs.css, which can also be used with some editors), and for enhancing the HTML versions (http://www.oucs.ox.ac.uk/stylesheet/oucs/oucs.css)
  5. The XML text document
  6. The change management system where all the material is stored

Taking each of these parts in turn:

2.1. XML Schema

The rules of the TEI XML format are stored in a schema (we use the RELAXNG schema language) file. This file defines the structure of how XML is to be written and is the key to transforming the text from one format to another. In order to write a valid TEI XML document the schema has to be followed. Luckily there are many XML editors that look after the schema for you and show any errors when the document is tested against the schema.

2.2. XSLT Stylesheets

An XSLT Stylesheet or Extensible Stylesheet Language Transformation Stylesheet is basically a set of rules to process a XML document. It turns an XML rendition of a file into the final version of a file. OUCS uses two versions of XSLT files, one turns an XML file into a web page (HTML format), the other turns XML into PDF format for printing.

2.3. CSS Stylesheets

CSS or Cascading Style Sheets are files containing information on how a document is to be presented e.g. bold, red headings or grey backgrounds. There are two versions used by OUCS: one displays the XML file directly and is fairly simple; the other displays the final web page and is fairly complex.

2.4. Version Control System

This is the method by which documents are stored. OUCS uses an open source system called Subversion to store XML documents. It is not restricted in the type of documents it can accept, allowing us to store just about anything we might need.

Up: Contents Previous: 1. Introduction Next: 3. Getting Started - The Basics