Introduction to XSLT
Northeastern University
January 12, 13, 19, and 26, 2017
Syd Bauman, Northeastern University
Julia Flanders, Northeastern University
Ashley Clark, Northeastern University
Sarah Connell, Northeastern University
Please note that this schedule and the slides linked below may be updated prior to the workshop date.
Pre-game TEI Warm-up
Thursday, January 12: Snell Library, Digital Scholarship Commons
Session 0, 10:00–12:00 TEI Review (SB & SC)
- Reminder: Basic tennets of XML (anatomy of an element, well-formedness)
- Reminder: What TEI is
- Basic TEI
- prerequisite: pointing
- prosopography 1, prosopography 2
Schedule
Thursday, January 12: Snell Library, room 422
Session 1, 1:00–2:15 Introduction to XSLT (JF; slides: HTML, Slidy)
Session 2, 2:30–4:00 Group Exploration: simple transformations plus hands-on (JF, SB; slides: HTML, Slidy, exercises)
Friday, January 13: Snell Library, room 422
Session 3, 10:00–11:15 Group Exploration: repetitive data plus hands-on practice (JF, SB; exercises)
- personography, personography stylesheet
- structured personography, structured personography stylesheet
Session 4, 11:30–1:00 Navigating the tree, selecting from the tree (slides: HTML, Slidy; cribsheet: HTML, TEI)
Thursday, January 19: Snell Library, room 422
Session 5, 1:00–2:15 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
- howto: running a transformation in oXygen
-
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
Session 6, 2:30–4:00 Conditionals (SB; slides: HTML, Slidy)
- plotting places in KML (e.g. Google Earth): gazetteer, stylesheet
Thursday, January 26: Snell Library, Digital Scholarship Commons (optional followup session w/o Syd)
Session 7, 10:00–1:00 Hands-on practice (exercises), questions, and trouble-shooting
Resources
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