Introduction to XSLT for Digital Humanities
Brown University
Wed 20 Jul – Fri 22 Jul, 2011
Syd Bauman, Brown University
(Syd_Bauman@Brown.edu)
David J. Birnbaum, University of Pittsburgh
(djbpitt@pitt.edu)
Schedule
Wed 20 July
Session 0, 09:00–09:30: Welcome and introductions
Session 1, 09:30–10:00: Overview (slides: Slidy, static)
Session 2, 10:15–12:00: Collaborative first stylesheet; executing an XSLT program (slides: Slidy, static)
→ Lunch on your own; restaurants
Session 3, 13:30–15:00: Navigating the XML tree and selecting nodes: XPath path expressions (slides: Slidy, static); pulling data from elsewhere
Session 4, 15:15–17:00: Hands-on
→ Dinner on your own, with possible group excursion to a local restaurant.
Thu 21 July
Session 5, 09:00–10:15: Operators, functions (slides: Slidy, static)
Session 6, 10:45–12:00: Built-in rules (slides: Slidy, static); more predicates (slides: Slidy, static)
→ Lunch on your own; restaurants
Session 7, 13:30–15:00: XSL Variables: storing information (slides: Slidy, static); XSLT Constructors: dynamically constructed content and identity transforms (slides: Slidy, static)
Session 8, 15:30–17:00: CSS (slides: Slidy, static), hands-on
→ Dinner on your own, with possible group excursion to local restaurant.
Fri 22 July
Session 9, 09:00–10:30: Conditionals (slides: Slidy, static), and repeated use of input (modes) (slides: Slidy, static)
Session 10, 10:15–12:00: Keys (slides: Slidy, static)
→ Lunch on your own; restaurants
Session 11, 13:30–15:00: Grouping (slides: Slidy, static)
Session 12, 15:00–16:00: Wrap-up (slides: Slidy, static), 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: TEI, HTML
- CSS crib sheet: HTML (styled source)
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.