NewtFire logo: a mosaic rendering of a firebelly newt
newtFire {upg dh|ds}
Creative Commons License Last modified: Monday, 17-Feb-2020 18:36:39 UTC. Maintained by: Elisa E. Beshero-Bondar (eeb4 at psu.edu). Powered by firebellies.

First of all, download the XML file I have linked here: ForsterGeorgComplete.xml. Open the file in oXygen and work with the XPath Window set to version 3.1. Respond to the XPath questions below in a text file, and upload to Canvas for this assignment when you’re finished. (Please use an attachment! If you paste your answer into the text box, canvas may munch the code formatting.) Some of these tasks are thought-provoking, and even difficult. If you get stuck, do the best you can, and if you can’t get a working answer, give the answers you tried and explain where they failed to get the results you wanted. Sometimes doing that will help you figure out what’s wrong, and even when it doesn’t, it will help us identify the difficult moments. These tasks involve the use of path expressions and predicates, as well as the XPath function, count(), and there may be more than one possible answer. Consult our introductory guide Follow the XPath! for help with constructing your expressions.

With the Georg Forster file open in oXygen and using the XPath 3.1 browser window in oXygen, construct XPath expressions that will do the following. Be sure to give the FULL XPath expression you used in your answer, and don’t just report your results. This way, if the answer is incorrect, we can help explain what went wrong.

  1. Like most of the long voyage publications, Georg Forster’s voyage account is produced in multiple books, and inside each books we find multiple chapters. Both books and chapters are coded with <div> elements. Take a look at the outline view of the document before you begin to familiarize yourself with the structure of this file, and answer the following:
  2. Look at the outline structure of the document to help you with these: What’s the XPath to identify the <head> element inside a chapter <div>? How would we locate a <l> (or line) element inside a chapter <div>?
  3. Georg Forster used a lot of footnotes in his document: These are coded inside <ref> elements throughout the body paragraphs of the text. What’s the XPath to locate all the notes in the document?
  4. We’ve encoded lots of <placeName> elements in this document to mark names of places, and these may occur in lots of positions. Sometimes they’re in the <head> elements that start the book or chapter divs, positioned inside lines of texts (coded with <l>). Most often they’re nested in the body paragraphs (<p>), and they’re frequently coded in Forsters notes, which you’ve just located.