Hi Chris
If i understand correctly there are two ways of doing this.
For clarity lets call the transit AS 30.
1) You can do a redistribute connected on your EBGP router in AS 30 so that the link between AS 30 and AS 20 is propogated into the AS 30 domains IGP.
2) You can add an addtional line in the config on the EBGP peer in the transit AS that connects to AS 20 :
neighbor "IBGP peer in AS 30" next-hop-self.
This will mean that when the EBGP router in AS 30 that peers with AS 20 sends routes to IBGP peers within AS 30 it sets the next hop as itself and there should be a route to this in the IGP.
Generally speaking option 2 is the way to go in the real world.
Hope i have understood and this makes sense.
Jon