fix constraint parsing in xpath