(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"]
- uses the "abbreviated syntax of XPath"
- borrows the document() function from XSLT
- introduces the dereference operator and the range predicate
- result of a path expression is a deep copy of selected nodes
|