In addition to what Reg mentioned you will also need the engine hangers from the CX frame; The engine block is the same so the TI engine will attach to either TI type hangers or CDI type hangers but the places where the engine hangers attach to the frame are different so you need the ones that match the frame. Also, the rad is bolted to the hangers so you will probably have to modify the lugs on the E rad or find a rad from a CDI CX.
The earlier frame may look a bit more elegant but the later frame is stronger, enough so that Honda decided it did not need to attach the engine to attach to the frame in as many places to produce adequate stiffness so the TI engine's rear cover does not stick up between the carb manifolds to attach to the frame like the CDI engine does. People have used engines without the extra mounting point in frames that are designed to have it but I am not convinced that the handling would be as good.
All of this adds up to: Yes, you can put the engine from a CX500E in an earlier frame but if you want the monoshock and rear disc I would also recommend starting with the frame that was designed for that.