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.
<ref>
elements throughout the body paragraphs of the text.
What’s the XPath to locate all the notes in the document?<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. <head>
elements, and not in the rest of the
document? (Notice where these are located in the heads). count()
function to your expression to return only a number in the results window. Record your expression.