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


    following-sibling::Author


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


    ancestor::*


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


    ancestor::*/@id


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


   ancestor::*[@id]


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


   following-sibling::Chapter/Title


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.


   following-sibling::Chapter/child::Title


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


   preceding-sibling::Chapter/child::Title


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


   /child::Book/child::Contents/child::Chapter[2]/following::*


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


   /child::Book/child::Contents/child::Chapter[2]/preceding::*


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


   descendent-or-self::*