I'd ask a local trans shop if the swap is possible. They are different generations.
Search Mazda B-Series Questions
Mazda B-Series Experts
Related Models For Sale