Well, I looked up the engine codes, and the gear ratio's, and the gear ratio's and compression is the same with the DX and HX except for final drive. I'm actually gonna try this tranny swap cause they are so similar, but I'll let you all know who are interested in case this ever happens to you if this works or not.
http://www.leecao.com/honda/civic/1998cspec.html