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 |
Wed 14 Jun
| Session 5, 09:00–12:00 |
|
| Session 6, 13:30–16:00 |
Thu 15 Jun
| Session 7, 09:00–12:00 |
|
| Session 8, 13:30–16:00 |
|
Fri 16 Jun
| Session 9, 09:00–12:00 |
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
- DHSI Coursepack for this workshop
- sample TEI data file #1: WordHoard Hamlet
- sample TEI data file #2: gazetteer of the Colonial Despatches of B.C. and Vancouver Island
- oXygen crib sheet: HTML, TEI
- XPath functions crib sheet: HTML, TEI
- XHTML crib sheet: HTML, TEI
- CSS crib sheet: HTML, TEI
- transforming in oXygen crib sheet: HTML, TEI
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.