Tilt compensating a HMC5883 compass with a MMA7455 Accelerometer

Why do you think that would work?