Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XPath Developer's Guide
Filtering XML Data Using XPath Predicates
This section contains the following topics.
Introduction to Filtering with XPath Predicates
Testing within a Predicate by Using Boolean Operators
Testing the Context Position by Using a Numeric Shortcut
Specifying Multiple Predicates in a Single XPath Step