7AAVDH06 Home | 7AAVDH06/XSLT Home |

An XSLT Tutorial

Written by John Bradley, Elena Pierazzo and Paul Spence

Introduction

It should be pretty clear that a document entitled "An XSLT Tutorial" has the primary purpose of introducing you to (the basics of) XSLT! There are several excellent resources in print already that introduce people to XSLT. Why do we need another one? One possible reason is that we are using these notes in the context of courses in Humanities Computing. If you are one of our students it is likely that your background is different from that assumed for most of the other XSLT tutorials you will find. We try to accommodate this difference in these notes. Furthermore, in several ways the materials that we use to illustrate points about XSLT here are almost entirely drawn from humanities-like sources, and many are actual examples that we have come up against in our daily work. Materials from humanities-like sources are the kind of things those interested in Humanities Computing are likely to come up against, and it is useful to see how XSLT works with these kinds of materials.

Before we really begin, however, it is important for you to understand that, although introducing you to XSLT with examples drawn from humanities sources is the primary purpose of this tutorial, the writer has other agendas as well -- and, furthermore, does not want them to be hidden from you:

Finally, before we really begin, we must give you a different sort of warning. Almost all of our material (indeed, one of the principal uses of XSLT world-wide) makes use of XSLT to generate HTML. It turns out that XSLT will require you to understand HTML tagging in ways that high-level tools that "do" HTML for you such as Dreamweaver or Word don't show. Indeed, all of the exercises we have provided in this tutorial will expect you to know HTML well enough that you could first create at least basic HTML pages with text, lists, headings, links and tables with a non-HTML-aware editor such as Notepad. If your only experience of HTML has been to generate it using these high-level tools then you will find that your understanding of HTML will not be not enough to allow you to deal with the material covered here. Before proceeding further with XSLT be sure that you develop a real hands-on, low level, understanding of HTML.

About this Tutorial

This tutorial is composed by several modules, each of them will be structured as follows:

  1. Abstract and Goals: a description of the content of the module and a list of the leaning goals of the same.
  2. Main notes: the main content of the module.
  3. Exercises: some exercises about the things explained in the main notes.
  4. Taking it further: contains additional readings or more explanations on the topics covered by the main notes.

Notice that some of these sections may not be present all the times.