(Q1) In the second chapter of the document named "zoo.xml", find the figure(s) with caption "Tree Frogs".

document("zoo.xml")/chapter[2]//figure[caption = "Tree Frogs"]

XSLT equivalent to (Q1)

document("zoo.xml")/chapter[2]//figure[caption = "Tree Frogs"]
<<<  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15    >>>