Introduction to XSLT for Digital Humanists

University of Victoria
2017-06-12/16

Syd Bauman, Northeastern University (s.bauman@northeastern.edu)
Martin Holmes, University of Victoria (mholmes@uvic.ca)

Schedule

Mon 12 Jun

Session 1,
10:15–12:00
Session 2,
13:30–16:00

Tue 13 Jun

Session 3,
09:00–12:00
Session 4,
13:30–16:00
  • hands-on: exercises, or if you wish, start working on your own data.
  • XSL Variables: storing information (MH; slides: Slidy, static)
  • XSLT Constructors: dynamically constructed content and identity transforms (MH; slides: Slidy, static)
  • hands-on

Wed 14 Jun

Session 5,
09:00–12:00
  • Questions (SB)
  • Quiz (MH)
  • Conditionals (MH; slides: Slidy, static)
  • hands-on
Session 6,
13:30–16:00
  • Template modes (i.e., repeated use of input) (MH; slides: Slidy, static)
  • hands-on

Thu 15 Jun

Session 7,
09:00–12:00
  • Questions (SB)
  • Quiz (MH)
  • Pick-a-topic [more functions, regular expressions, css, javascript, keys, grouping]
  • hands-on
Session 8,
13:30–16:00
  • hands-on

Fri 16 Jun

Session 9,
09:00–12:00
  • Questions (SB)
  • Quiz (MH)
  • final presentation prep
  • wrap-up (SB; slides: Slidy, static)

Things we did

  • Wed 14 Jun afternoon: Hamlet stylesheet with TOC
  • At Martin’s suggestion, I also made an annotated version of it. This demonstrates copious use of XML comments — Syd.
  • Thu 15 Jun afternoon: we converted placeography to CSV. This demonstrates sparse use of oXygen’s “doc” namespace. Use Tools > Generate Documenation > XSLT Stylesheet Documentation… to generate nice HTML documentation from your stylesheet. Note that I chnaged the whitespace a bit since you saw it last (we had been using whitespace to move the interesting part up the screen so you could see it over the computers).

Topics not covered and slide sets not used.

Bibliography

Many slides and handouts refer to the page or chapter of the reference work that we personally use:

Kay, Michael. XSLT 2.0 and XPath 2.0 Programmer’s Reference. 4th edition. Indianapolis, IN: Wiley/Wrox, 2008. ISBN: 978-0-470-19274-0

References to “Kay” are to this book.

Resources

The resource page has links to all the slide sets (whether used in this workshop or not), interesting web sites we may have shown, and useful TEI links. The general WWP workshop materials for download page may be of interest, too.

Instructor contact information

Send mail to Martin or Syd.