Lab 2: Getting Practice using XPath Axes

In this folder you will find:

   - Book.xml

Open Book.xml and see how this XML document is organized.

Drag and drop Book.xml into Oxygen XML.

In Oxygen, create the XPath expressions to:

1. Establish the Title element within Book to be the context node.
   Navigate to its siblings and select the authors of the book.


2. Establish the first Section within the first Chapter as the context node. 
   Select all of its ancestors.


3. Establish the same context node as in (2).
   Select the id attribute for each ancestor.


4. Establish the same context node as in (2).
   Select all ancestors that have an id attribute.


5. Establish the second Chapter as the context node. 
   Select the Titles of all the following Chapters.


6. In your XPath expression for (5) did you used the abbreviated notation
   in any part of the XPath? Modify the XPath to use entirely the expanded
   notation.


7. Repeat (5), but this time select the Title of the preceding Chapter.
   Use entirely the expanded notation.


8. Select everything that follows the second Chapter.
   Use an absolute XPath expression. Use entirely the expanded notation.


9. Select everything that precedes the second Chapter.
   Use an absolute XPath expression. Use entirely the expanded notation.


10. Establish the second Chapter as the context node. 
   Select it and everything under it. (I mean "under it," not "following it")
