A long time ago I wrote an application using VIPP to create an MRDF workflow.
How reprints are handled should also be considered when developing a solution - ideally this should be automated
Using VIPP was relatively straight forward however you could use plain Postscript if you wanted.
Many composition applications will use Pre or Post Processing in their workflows - some creating intermediate file formats.
Pre or Post Processing both have pros and cons really depends on the Data - post process is probably more flexible IMHO
XMPie's media feature is a great to drive the behaviour.
If you have Postscript knowledge its worth considering a Postscript to PDF workflow.
Regards,
Wayne