Class 3 Agenda

First, we'll learn XPath by revisiting this simple XML document.

For our in-class exercise, we'll practice XPath using this XML document: http://purl.dlib.indiana.edu/iudl/vwwp/encodedtext/VAB7166.

We want to answer the following questions about this document:

  1. How many lines of poetry are there?
  2. How many verses of poetry are there?
  3. What’s the average number of lines per verse?
  4. Without looking at the table of contents, how can I get a list of all the titles of the poems?
  5. How many lines in this work contain the word “wine”?
  6. What’s the title of the 50th poem?

After a break, we'll learn about XSLT and make our first transformation! We'll use this one again.

At the end of the class, we'll strategize how to do this week's homework.