Prosecutors have demanded six years in jail for an ISIS-obsessed Muslim schoolgirl who slit the throat of a German policewoman when she was stopped in a routine check.

The officer nearly died after being attacked by the 16-year-old, who has Moroccan parents.

The girl, identified only as Safia S, was convicted this week of attempted murder and supporting a foreign terrorist organisation.

Safia S (pictured) was said to be furious and frustrated that she could not join ISIS in Syria and took out her anger on a German policewoman

A second suspect, identified as Mohamad Hasan K, 19, was charged with failing to report the planned assault which left the police officer fighting for her life.

Prosecutors are demanding three years behind bars for the German-Syrian national, when sentences are handed down next Friday.

Safia was 15 when she pulled a knife from her clothing in February last year when she was stopped during a routine police check at Hannover main railway station.

Police said later the teenager was 'frustrated' because she could not get to Syria to fight with her jihadist idols.

Prosecutors said at the trial - which was held behind closed doors because she is a juvenile - she was 'motivated by members of ISIS in Syria to commit this act'.

Police said at the time: 'As she was politely pulled to one side to confirm her identity a knife appeared lightning quick in her hand and our colleagues had little chance to defend themselves. This was an Islamic attack against our officers.'

One officer suffered a huge knife wound to her throat and was only saved by an emergency operation lasting several hours.

The police spokesman said: 'It is a miracle that she survived at all.

The attacker was ice cold. Her only worry was that her headscarf was rumpled and she wanted to put it straight German police spokesman

'The attacker was ice cold. Her only worry was that her headscarf was rumpled and she wanted to put it straight. It was nothing to her if the police officer lived or died.'

Police said she was radicalised into jihadism in Germany in November 2015 and admitted under questioning she wanted to travel to the Middle East to fight with ISIS.

Although she made it to Turkey, her mother brought her back to Germany.

But ISIS ordered her to carry out an 'act of martyrdom' when she arrived home.

She told Mohamad Hasan K, who was already aware of her trip to Istanbul, about her plans to kill the policewoman but he did not inform the authorities.

Germany endured four attacks within a week in July, including two assaults claimed by ISIS, provoking a furious debate about security and asylum seekers.

Prosecutors say Safia belonged to a network of young followers of ISIS in Hannover.