Introduction to XSLT for Digital Humanists

University of Victoria
2013-06-06/10

Syd Bauman, Brown University (Syd_Bauman@Brown.edu)
Martin Holmes, University of Victoria (mholmes@uvic.ca)

Schedule

Thu 06 Jun

Session 1,
09:30–12:00
Session 2,
13:15–15:50

Fri 07 Jun

Session 3,
09:30–12:00
Session 4,
13:15–15:50
  • 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

Sat 08 Jun

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

Sun 09 Jun

Session 7,
09:30–12:00
  • Questions (SB)
  • Quiz (MH)
  • hands-on
Session 8,
13:15–15:50
  • hands-on

Mon 10 Jun

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

Things we did

  • The stylesheet we wrote to demonstrate @mode; it displays a <note> both in the running prose and at the bottom.
  • The stylesheet we wrote to demonstrate a technique for collecting all the nodes that point to the context (i.e., currently matched) node. This stylesheet counts speeches per character in a TEI drama (e.g., Hamlet)

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.