Download it, and open it in Oxygen, then use the XPath text box to answer the questions.
In the places.xml file, use XPath to find out the @xml:id of the <place> whose <placeName> contains the word "T'sakis".
tsakis
fort_simpson
fort_rupert
walla
In answering the previous question, you could have used many different XPath expressions. This is one of them, but part of it is missing. Can you supply the missing part?
Using XPath, find out how many place entries refer to the source <title level="m">British Columbia Place Names</title>?
4
14
24
34
In answering the previous question, you could have used many different XPath expressions. This is one of them, but part of it is missing. Can you supply the missing part?
count(//place[____________bibl[title[contains(., "British Columbia Place Names")]]])
child::
listBibl
text()
descendant::
Here's a difficult one:
In all the descriptions of places, how many different names are used to refer to Victoria (@xml:id = 'victoria')?
Hint: you'll need to look for <name> tags, and you'll need to use normalize-space().
1
2
3
4
In answering the previous question, you could have used many different XPath expressions. This is one of them, but two parts of it are missing. Can you supply the missing parts?
count(____________(//name[____________='place' and @key='victoria']/normalize-space()))
distinct-values, @type
normalize-space, place
//place, distinct-values
max, @type
What is the average number of <geo> tags in the <place> elements? Round your answer to the nearest integer.
Hint: you'll need to use one of the XPath Operators to do this calculation.
15
20
25
30
In answering the previous question, you could have used many different XPath expressions. This is one of them, but three parts of it are missing. Can you supply the missing parts?
What is the largest number of <geo> tags in a single <place>?
24
124
224
324
In answering the previous question, you could have used many different XPath expressions. This is one of them, but two parts of it are missing. Can you supply the missing parts?
What is the @xml:id of the <place> which has the largest number of <geo> tags?
Hint: Find the <place> whose count of <geo> tags is equal to the maximum value you calculated in the last question.
alexander_archipelago
moresby_island
queen_charlotte_sound
portage_inlet
In answering the previous question, you could have used many different XPath expressions. This is one of them, but three parts of it are missing. Can you supply the missing parts?