Predicates


Filters the current set of nodes defined by the node test

From the para nodes that are children of the context node with attribute type set to main, select the third one:

  para[@type="main"][3]

Select all the employee children of the context node that have both secretary and assistant attributes set:

  employee[@secretary and @assistant]