There are plenty of resources regarding XPath Expressions. I'm using the following links when I need to use XPath:
https://www.stylusstudio.com/xsllist/200404/post90920.html
https://www.tizag.com/xmlTutorial/xpathbar.php
https://www.stylusstudio.com/docs/v60/d_xpath34.html