One of the textbooks, according to the BBC program, prescribed execution as the penalty for gay sex, and outlined differing viewpoints as to whether death should be by stoning, immolation by fire or throwing offenders off a cliff. Another set out the punishments prescribed by Shariah law for theft, including amputation of hands and feet. A BBC video accompanying an article on the program’s Web site showed a textbook illustration of a hand and a foot marked to show where amputations should be made.

Michael Gove, the education minister in the government of Prime Minister David Cameron, said on the program that the government would not tolerate “anti-Semitic material of any kind in English schools.” He elaborated in interviews with British newspapers, saying there was also no place in British schools for teachings against gay men and lesbians. But Mr. Gove appeared to be at pains not to allow the issue to develop into a confrontation with Saudi Arabia.

“Saudi Arabia is a sovereign country,” he said in a statement issued as the program was broadcast. “We have no desire or wish to intervene in the decisions that the Saudi government makes in its own education system. But we are clear that we cannot have any anti-Semitic material of any kind being used in English schools.”

Mr. Gove added that Ofsted, the government-appointed agency with oversight of education and children’s services, would be “reporting to us shortly” on measures to tighten oversight of part-time schools, whose teaching is currently free of the controls imposed on full-time schools.