-- introducing stack behaviour for xpath parsing