Introduction to XSLT for Digital Humanities
Brown University
March 8-10, 2012
Syd Bauman, Brown University
(Syd_Bauman@Brown.edu)
David J. Birnbaum, University of Pittsburgh
(djbpitt@pitt.edu)
with the assistance of Gabi Kirilloff
Schedule
Thursday 8 March: Rockefeller Library Conference Room
Session 0, 09:00–09:30: Welcome and introductions
Session 1, 09:30–10:15: Gameplan; overview (slides: HTML, Slidy); group transformation
Session 2, 10:30–12:00: Navigating the XML tree and selecting nodes: XPath path expressions (slides: HTML, Slidy); executing an XSLT program (slides: HTML, Slidy)
Lunch on your own; restaurants
Session 3, 13:30–15:00: XSLT template paradigm (slides: HTML, Slidy), built-in rules (slides: HTML, Slidy)
Session 4, 15:15–17:00: Hands-on
Dinner on your own (or perhaps as a group, TBD)
Friday 9 March: Rockefeller Library Conference Room
Session 5, 09:00–10:15: Operators, functions (slides: HTML, Slidy)
Session 6, 10:45–12:00: Predicates (slides: HTML, Slidy), values
Lunch on your own; restaurants
Session 7, 13:30–15:00: Storing information—variables (unused slides: HTML, Slidy); generating output (constructors, including attribute value templates) (unused slides: HTML, Slidy). We actually covered only one constructor, namely <xsl:attribute, and using an identity transform, for which see also a wiki page that discusses a TEI-specific version and a more efficient version.
Session 8, 15:30–17:00: CSS
Dinner on your own (or perhaps as a group, TBD)
Saturday 10 March: 169 Angell Street, room 202
Session 9, 09:00–09:30: quiz
Session 9, 09:30–10:00: Conditionals (slides: HTML, Slidy), and multiple-use templates (mode=) (slides: HTML, Slidy)
Session 10, 10:15–12:00: Keys (Slides: HTML, Slidy)
Lunch on your own; restaurants
Session 11, 13:30–15:00: Grouping (Slides: HTML, Slidy)
Session 12, 15:00–16:00: Wrap-up (HTML, Slidy), final questions, and discussion
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
- sample TEI data file #1: WordHoard Hamlet
- sample TEI data file #2: gazateer of the Colonial Despatches of B.C. and Vancouver Island
- first toy XSLT program: first.xsl
- second toy XSLT program: second.xsl
- XHTML crib sheet: HTML, TEI
- CSS 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.