working doc conditions xpath