Changed rl code to handle conjunctive tests in id element.