A man charged with committing a terrorist act and attempted murder after allegedly stabbing a man in Sydney was inspired by the Islamic State group, police said.
Wayne Greenhalgh, 59, was stabbed several times while walking through a park in suburban Minto in south-west Sydney on Saturday afternoon and is in a critical condition, police said in a statement.
The suspect, Ihsas Khan, 22, also attempted to stab a police officer before he was arrested, police said. He was charged on Sunday and faces a potential life prison sentence if convicted.
Khan was refused bail in the Parramatta Bail Court and his case was adjourned until Wednesday. He did not enter pleas.
Prime minister Malcolm Turnbull noted that the attack came on the eve of the 15th anniversary of the al Qaida attacks on the United States.
"Connecting them both is a violent Islamist ideology," Turnbull said.
Khan and Greenhalgh did not know each other, and New South Wales deputy police commissioner Catherine Burn described the attack as planned and deliberate.
"This was clearly a very volatile, a very violent situation that police and the members of the community were confronted with," she said.
Khan shouted words at the scene, which led police to believe he was inspired by the IS group, she added.
"We know that this person has strong religious beliefs inspired by Isis. What made him act yesterday we don't know," she said.
The victim's wife, Bronwyn Greenhalgh, said her husband had a punctured lung and had lost several fingers.
She said her husband was attacked with a machete.