para
with attribute type set to main, select the third one:
type
main
para[@type="main"][3]
employee
have both secretary and assistant attributes set:
secretary
assistant
employee[@secretary and @assistant]