dynamic urls for channel/structure that's linked to the main structure
I'm not sure to understand what you're trying to solve but... have you tried using the getElementRoute hook to bypass the default Craft routing and apply any custom processing/routing you need?