A man who repeatedly stabbed a Syrian refugee in a racist knife attack has been jailed for almost eight years.

Shabaz Ali was left critically injured after the assault at a hostel on Upper Gilmour Place in Edinburgh.

His attacker, Sean Gorman, had taken ecstasy, cocaine and drank most of a bottle of vodka beforehand.

He carried out the attack on Mr Ali, stabbing him six times in the torso, after he complained about noise coming from Gorman's room.

Passing sentence, judge Lord Woolman told Gorman he had carried out a "frenzied attack" which had left his victim unable to work.

"The attack has caused Mr Ali serious physical and psychological harm," he said.

"He cannot work. He can only take short walks with the aid of a walking stick. He awaits further surgery."

Gorman, 18, was given an extended sentence of 11 years and nine months at the High Court in Edinburgh on Friday.

Police Scotland detective chief inspector Paul Grainger said: "Gorman used appalling racist language before perpetrating significant violence against the victim, who was left fighting for his life.

"I cannot condemn the circumstances of this case strongly enough. Edinburgh thrives on diversity and Gorman's actions do not in any way reflect the values of our city.

"Significant support has been shown across the capital for the victim and his family, which is far more representative of the strength of inclusivity across our communities.

"We welcome a custodial sentence and our thoughts remain with the victim and his family as they continue to try and move forward with their lives."

Gorman's sentence involves detention for seven years and nine months, followed by four years of supervision upon his release from custody.

He was ordered to begin that sentence after he has finished serving 169 days of a previous sentence from 2017 for assault to severe injury and the danger of life.