Two completely different engines there. The one that was fitted in that link is the SOHC VG30E, which would be an excellent engine to swap in there in my opinion. Its very compact, relatively light for what you get, and very strong.
The DOHC VG30DE and VG30DETT will likely be a bit more difficult to fit. I have seen both swapped into one so its definitely possible. The DETT might be a little tougher with the turbos. You'll likely have some clearance issues with the steering linkage but with some work you should be able to get around it.
Here's a 510 with the DETT engine:
http://www.datsuns.com/red/