Introduction to XSLT
Northeastern University
March 17–18, 2016
Syd Bauman, Northeastern University
Julia Flanders, Northeastern University
Ashley Clark, Northeastern University
Schedule
Thursday, March 17: Snell Library, room 422
9:30: Welcome and introductions
Session 1, 10:00–11:00 Introduction to XML publishing (JF; slides: static HTML, TEI)
Break
Session 2, 11:15–12:30 Introduction to XSLT (JF; slides: HTML, Slidy)
Lunch on your own
Session 3, 2:00–3:30 Group Exploration: simple transformations plus hands-on (JF, SB; slides: HTML, Slidy, exercises)
Break
Session 4, 3:45–5:00 Group Exploration: repetitive data plus hands-on practice (JF, SB; exercises)
- personography, personography stylesheet, as modified in class
- structured personography, structured personography stylesheet
Group dinner, 6:00, location TBD
Friday, March 18: Snell Library, room 422
Session 5, 9:30–10:45 Navigating the tree, selecting from the tree (slides: HTML, Slidy; cribsheet: HTML, TEI)
Break
Session 6, 11:00–12:30 Group Exploration: more complex transformations (SB)
- calculating rudimentary statistics: personography (again), statistics stylesheet
- making a change to a file using an “identity” transform: structured personography (again), add-an-ID stylesheet
-
group task: generate a copy of
the
structured personography in which we put only the
year part of the @when into the content of
<birth> and <death>, and list
the <person>s in alphabetic order by name
our in-class answer (which doesn't do the sorting bit, as we already covered sorting yesterday and then did it separately).
Lunch on your own
Session 7, 1:30–3:00 Conditionals (SB; slides: HTML, Slidy)
- plotting places in KML (e.g. Google Earth): gazetteer, stylesheet
Break
Session 8, 3:15–5:00 Hands-on practice (exercises)
Resources
Reimbursement form: Excel
The resource page has links to all the slide sets (whether used in this seminar or not), interesting web sites we may have shown, and useful TEI links
XPath
Our basic XPath axes cribsheet
Our basic XPath functions cribsheet
W3School's comprehensive list of functions used in XPath, XSLT, and XQuery