Introduction to XSLT for Digital Humanities
Brown University
2011-03-30/04-01
Syd Bauman, Brown University
(Syd_Bauman@Brown.edu)
David J. Birnbaum, University of Pittsburgh
(djbpitt@pitt.edu)
Schedule
Wed 30 Mar
Session 0, 09:00–09:30: Welcome and introductions
Session 1, 09:30–10:00: Gameplan; overview (slides: HTML, TEI)
Session 2, 10:15–12:00: Navigating the XML tree and selecting nodes: XPath path expressions (slides: HTML, TEI); executing an XSLT program (slides: HTML, TEI)
Lunch on your own; restaurants
Session 3, 13:30–15:00: XSLT template paradigm (slides: HTML, TEI), built-in rules (slides: HTML, TEI)
Session 4, 15:15–17:00: Hands-on
Dinner on your own. If you’d like to join us (at your own expense), Syd & David plan to eat at Chinese Iron Wok at ~18:00.
Thu 31 Mar
Session 5, 09:00–10:15: Operators, functions (slides: HTML, TEI)
Session 6, 10:45–12:00: Predicates (slides: HTML, TEI), values
Lunch on your own; restaurants
Session 7, 13:30–15:00: Storing information—variables; generating output (constructors, including attribute value templates).
Session 8, 15:30–17:00: CSS
Dinner on your own. If you’d like to join us (at your own expense), Syd & David plan to eat at Kabob and Curry at ~18:00.
Fri 01 Apr
Session 9, 09:00–10:30: Conditionals, and multiple-use templates (mode=)
Session 10, 10:15–12:00: Keys
Lunch on your own; restaurants
Session 11, 13:30–15:00: Grouping
Session 12, 15:00–16:00: Wrap-up (HTML, TEI), 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.