A Taiwan court has released on bond the manager of a construction site whose truck authorities believe caused a train accident that killed at least 50 people, but prosecutors vowed to appeal, as family members mourned the dead at the crash site.
Friday's crash was Taiwan's worst rail accident in seven decades, when an express train hit the truck that had slid down a bank beside the track from the building site. The site's manager is suspected of having failed to properly engage the brake.
The train, with almost 500 people aboard, was travelling from Taipei, the capital, to Taitung on the east coast when it derailed in a tunnel just north of the city of Hualien. Forty people are in hospital, from among the 178 reported injured.
Prosecutors had applied to a court to detain the manager on charges of causing death by negligence. But a court in Hualien released the manager, Lee Yi-hsiang, on a bond of $T500,000 ($A23,000), although it restricted him from leaving Taiwan for eight months and said he had to stay in Hualien.
The court said while the truck's fall into the path of the train was possibly due to negligence, there was "no possibility of conspiracy".
Yu Hsiu-duan, head of the Hualien prosecutors' office, said it would appeal.
"The court said there was no reason to keep him in custody," she told reporters. "The court changed it to a surety of $T500,000."
Family members visited the site on Saturday afternoon to mourn the dead, some crying out "Come back!", and bringing personal belongings with them like dolls.
The youngest person confirmed dead was a six-year- old girl, the oldest a 79-year-old man.
Workers have begun moving the train's rear portion, which was relatively unscathed as it had stopped outside the tunnel away from the accident spot. Other mangled sections remained in the tunnel, where more bodies are likely to be found.
President Tsai Ing-wen visited hospitals in Hualien to speak to family members and survivors, thanking ordinary people and non-government groups for efforts to help.
The government has ordered flags flown at half-mast for three days in mourning, while the de facto French embassy in Taipei confirmed one of its citizens had died in the crash.
Taiwan's foreign ministry said one US citizen was among the dead and another was missing.
Australia's foreign ministry said two Australians suffered minor injuries.
In a rare sign of goodwill from China, which claims Taiwan as its own territory, President Xi Jinping expressed his condolences over the crash, state news agency Xinhua said.
The accident happened at the start of a long holiday weekend. The train was packed with tourists and residents going home for Tomb Sweeping Day to clean the graves of ancestors.
Taiwan's worst train crash was in 1948, when 64 people are estimated to have died when a train caught fire.