WARNING: This page is about a different car, the 2004 Volvo S40, 2003 Volvo S40, 2002 Volvo S40, 2001 Volvo S40, and 2000 Volvo S40. However, it is still accessible from the selected car via links, so may be relevant.
Fig 1: Gearbox Removed
Courtesy of VOLVO CARS OF NORTH AMERICA.
Remove the oil pipe with the hose from the gearbox.
Flush the pipe and hose using Dexron III ATF oil.
Install the oil pipe on the new gearbox.
Install a new O-ring on the quick-release connector.