Marwa Sherbini is being hailed as the shahida, or martyr, of the Hijab

The body of a Muslim woman, killed in a German courtroom by a man convicted of insulting her religion, has been taken back to her native Egypt for burial.

Marwa Sherbini, 31, was stabbed 18 times by Alex W, who is now under arrest in Dresden for suspected murder.

Husband Elwi Okaz is also in a critical condition in hospital, after being injured as he tried to save his wife.

Ms Sherbini had sued her killer after he called her a "terrorist" because of her headscarf.

The case has attracted much attention in Egypt and the Muslim world.

German prosecutors have said the 28-year-old attacker, identified only as Alex W, was driven by a deep hatred of foreigners and Muslims.

'Martyr'

Medics were unable to save Ms Sherbini who was three months pregnant with her second child. Her three-year-old son was with the family in court when she was killed.

Alex W and Ms Sherbini and family were in court for his appeal against a fine of 750 euros ($1,050) for insulting her in 2008, apparently because she was wearing the Muslim headscarf or Hijab.

Newspapers in Egypt have expressed outrage at the case, asking how it was allowed to happen and dubbing Ms Sherbini "the martyr of the Hijab".

Senior Egyptian officials and German diplomatic staff attended the funeral in Alexandria along with hundreds of mourners.

Media reports say Mr Okaz was injured both by the attacker and when a policeman opened fire in the courtroom.