XPath Practice

  1. How would you isolate the ID number of this encoded text (VAA4025-109-1-a16)?

  2. How many lists are in the article text?

  3. How would you isolate the copyright statement (Copyright 2013 Trustees of Indiana University)?

  4. What are two different ways to isolate the publisher and pubPlace elements together (Indiana University Libraries Bloomington, IN)?
    1. /TEI.2/teiHeader/fileDesc/publicationStmt/*[position()<3]
    2. /TEI.2/teiHeader/fileDesc/publicationStmt/publisher|//publicationStmt/pubPlace

  5. How many paragraphs are in the text of this article?

  6. What different states are mentioned in the text?

  7. How many distinct cities are mentioned in the text? Hint: use distinct-values()

  8. How many times does “Evansville” appear in this article? Hint: use ctrl+F to check your work

  9. What’s your best guess for how to figure out how many book reviews there are in this article using XPath alone?