conditional for lxml