Yeah that all is very specific to your workflow and not generally useful/reusable I'm afraid.
If it was me in that situation I would just write a specific plugin to do that task, including the stylesheet replacement etc and get it all done in one hit. I imagine it wouldn't have to be a GUI plugin either, IIRC the conversion pipeline has provision for a "File type" plugin to run either pre or in your case post processing to manipulate the results, which would probably be the ideal place for something like this.
|