A terrorist inspired by Lee Rigby's murder who launched a bladed attack on a prison officer was motivated by "extremist Islamic ideology", a court heard.

Brusthom Ziamani, 24, who was jailed in 2015 for his plot to behead a soldier in south east London, and Baz Hockton, 26, attacked prison officer Neil Trundle at HMP Whitemoor turned after they asked him for a spoon from a cupboard, the Old Bailey was told.

Using make-shift "shanks", and wearing "hoax" suicide belts, the duo "rained down" blows on Mr Mr Trundle, slashing at his chest, neck, and face.

The Old Bailey heard how the attack was "carefully planned", using several makeshift weapons including lumps of twisted metal with fabric grips, and two improvised knives painstakingly made using odds and ends found in the jail.

A nurse, Jayne Cowles, and a prison officer, Georgina Ibbotson, ran to help their colleague, but were also attacked by 23-year-old Ziamani, before he turned back to Mr Trundle to resume his assault, prosecutor Annabel Darlow QC told jurors.

Hockton tried to fend off a male guard and take his baton before being restrained, she continued.

She added the pair were "cold and focused" - wearing fake suicide belts made from underwear elastic and wires, with Ziamani shouting "Allah Akbar" and "I have a bomb".

After they were overpowered by guards detained, officers found a four-page hand-written note in Ziamani's pocket which revealed his hope of becoming a martyr, the court heard.

News Shopper:

Other documents found in both men's cells also made repeated references to martyrdom, and "the slaying of the enemies of Allah", Ms Darlow QC told jurors.

Later, after both men were taken to cells to be transferred to different prisons but when officers came to transfer Ziamani he barricaded himself into his cell with furniture and threatened them with a chair.

Ms Darlow, QC, said: "It is the case for the Crown that, on January 9 2020, Brusthom Ziamani and Baz Macaulay Hockton attempted to murder Neil Trundle, a prison officer at HMP Whitemoor.

"They committed the attack for terrorist purposes.

"The attack was carefully planned and executed using a number of makeshift weapons constructed from the limited materials available to the two men being held in prison, including a homemade shank, lumps of twisted metal covered in fabric to form grips and two makeshift metal stabbing implements."

After they were overpowered by guards detained, officers found a four-page hand-written note in Ziamani's pocket which revealed his hope of becoming a martyr, the court heard.

Other documents found in both men's cells also made repeated references to martyrdom, and "the slaying of the enemies of Allah", Ms Darlow QC told jurors.

In 2015, Ziamani was arrested on an east London street carrying a 12in (30.5cm) knife and a hammer in a rucksack, having earlier researched the location of Army cadet bases in the south east London.

Earlier he had shown his ex-girlfriend weapons, described Fusilier Rigby's killer Michael Adebolajo as a "legend" and told her he would "kill soldiers".

Ziamani, formerly of Camberwell, and Hockton, formerly of Ramsgate, Kent, each deny attempted murder.

The trial continues.