(inspired by this)
/- rootx- element named "x"x/y- all children of "x" named "y"*any elementancestor::x- any ancestor named "x"x[3]- numbered predicate (third element in a collection of "x" elements)x[@color='red']- boolean predicate
(inspired by this)
/ - rootx - element named "x"x/y - all children of "x" named "y"* any elementancestor::x - any ancestor named "x"x[3] - numbered predicate (third element in a collection of "x" elements)x[@color='red'] - boolean predicate